Re: Implementation PrevaylerEight
Marcel Oerlemans <[email protected]> Fri, 24 Oct 2014 11:13:55 +0200
| Newsgroups | gmane.comp.java.prevayler |
|---|---|
| Message-ID | <CAKE06200JJzmRPPJGk6KBMK1LohJofO8+XBZ=ubT2-vEjCoZaQ@mail.gmail.com> |
--===============0258741444341194984== Content-Type: multipart/alternative; boundary=001a1138ffdeaf95eb050627993b --001a1138ffdeaf95eb050627993b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Just finished testing Prevayler and p8 code with the Scalability test. Some results: Peak performance with prevayler, disc sync =3D true, 5968 transactions/seco= nd @ 1469 threads Peak performance with prevayler, disc sync =3D false, 55195 transactions/second @ 3 threads Peak performance with p8: 31610 transactions/second @ 1 thread Unfortunately I couldn't get P8 (or PrevaylerEight) to run at more than 1 thread in the scalability test, anything more than 1 thread and I get an Exception. [0] And because I felt like it, here are some results with PostgreSQL: [1] Peak performance with postgresql, file sync =3D true, 2866 transactions/second @ 140 threads Peak performance with postgresql, file sync =3D false, 6184 transactions/second @ 12 threads Best, Marcel [0] It seems every time I run P8 with more than 1 thread I get one of these exceptions: java.io.NotActiveException: not in readObject invocation or fields already read java.io.StreamCorruptedException: invalid type code: 00 java.lang.Error: java.lang.NullPointerException at org.prevayler.contrib.p8.Journal.copy(Journal.java:132) [1] http://imgur.com/vQ0ZzYO On Wed, Oct 22, 2014 at 9:46 AM, Christian Stein <[email protected]> wrote= : > > On Tue, Oct 21, 2014 at 11:01 PM, Flavio W. Brasil <[email protected]> > wrote: > >> Hi Christian, >> >> Thanks for sharing Prevayler8, it looks promising! I tried to implement >> something similar in the past, but didn=E2=80=99t have time to finish. >> >> I think http://databen.ch could be a good tool to test the scalability >> and correctness of the implementation. I can help with it if you want. >> >> > Appreciated! Today I'll cleanup some hacks in the implementation today an= d > share them on github. > After that, I'll fork(?) databen.ch and integrate P8. ;-) > > Thanks and cheers, > Christian > > > -------------------------------------------------------------------------= ----- > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > To unsubscribe go to the end of this page: > http://lists.sourceforge.net/lists/listinfo/prevayler-discussion > _______________________________________________ > "Databases in Memoriam" -- http://www.prevayler.org > > --001a1138ffdeaf95eb050627993b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div><br></div><div>Just finished testing Prevayler and= p8 code with the Scalability test.</div><div>Some results:</div><div>Peak = performance with prevayler, disc sync =3D true, 5968 transactions/second @ = 1469 threads</div><div>Peak performance with prevayler, disc sync =3D false= , 55195 transactions/second @ 3 threads</div><div><br></div><div>Peak perfo= rmance with p8:=C2=A031610 transactions/second @ 1 thread</div><div><br></d= iv><div>Unfortunately I couldn't get P8 (or PrevaylerEight) to run at m= ore than 1 thread in the scalability test, anything more than 1 thread and = I get an Exception. [0]</div><div><br></div><div>And because I felt like it= , here are some results with PostgreSQL: [1]</div><div>Peak performance wit= h postgresql, file sync =3D true, 2866 transactions/second @ 140 threads</d= iv><div>Peak performance with postgresql, file sync =3D false, 6184 transac= tions/second @ 12 threads</div><div><br></div><div>Best,</div><div>Marcel</= div><div><br></div><div>[0] It seems every time I run P8 with more than 1 t= hread I get one of these exceptions:</div><div>java.io.NotActiveException: = not in readObject invocation or fields already read<br></div><div>java.io.S= treamCorruptedException: invalid type code: 00<br></div><div><div>java.lang= .Error: java.lang.NullPointerException at org.prevayler.contrib.p8.Journal.= copy(Journal.java:132)</div></div><div><br></div><div>[1]=C2=A0<a href=3D"h= ttp://imgur.com/vQ0ZzYO">http://imgur.com/vQ0ZzYO</a></div><div><br></div><= div><br></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quot= e">On Wed, Oct 22, 2014 at 9:46 AM, Christian Stein <span dir=3D"ltr"><<= a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</= a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0= 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><di= v class=3D"gmail_extra"><br><div class=3D"gmail_quote"><span class=3D"">On = Tue, Oct 21, 2014 at 11:01 PM, Flavio W. Brasil <span dir=3D"ltr"><<a hr= ef=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&g= t;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0= .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div> Hi Christian, </div><div><br></div><div>Thanks for sharing Prevayler8, it= looks promising! I tried to implement=C2=A0</div><div>something similar in= the past, but didn=E2=80=99t have time to finish.</div><div><br></div><div= >I think <a href=3D"http://databen.ch" target=3D"_blank">http://databen.ch<= /a> could be a good tool to test the scalability=C2=A0</div><div>and correc= tness of the implementation. I can help with it if you want.</div><div><br>= </div></blockquote><div><br></div></span><div>Appreciated! Today I'll c= leanup some hacks in the implementation today and share them on github.</di= v><div>After that, I'll fork(?) <a href=3D"http://databen.ch" target=3D= "_blank">databen.ch</a> and integrate P8. ;-)</div><div><br></div><div>Than= ks and cheers,</div><div>Christian</div></div></div></div> <br>-----------------------------------------------------------------------= -------<br> Comprehensive Server Monitoring with Site24x7.<br> Monitor 10 servers for $9/Month.<br> Get alerted through email, SMS, voice calls or mobile push notifications.<b= r> Take corrective actions from your mobile device.<br> <a href=3D"http://p.sf.net/sfu/Zoho" target=3D"_blank">http://p.sf.net/sfu/= Zoho</a><br>_______________________________________________<br> To unsubscribe go to the end of this page: <a href=3D"http://lists.sourcefo= rge.net/lists/listinfo/prevayler-discussion" target=3D"_blank">http://lists= .sourceforge.net/lists/listinfo/prevayler-discussion</a><br> _______________________________________________<br> "Databases in Memoriam" -- <a href=3D"http://www.prevayler.org" t= arget=3D"_blank">http://www.prevayler.org</a><br> <br></blockquote></div><br></div> --001a1138ffdeaf95eb050627993b-- --===============0258741444341194984== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ --===============0258741444341194984== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion _______________________________________________ "Databases in Memoriam" -- http://www.prevayler.org --===============0258741444341194984==--