Re: Implementation PrevaylerEight

Klaus Wuestefeld <[email protected]> Sat, 18 Oct 2014 11:44:27 -0300
Newsgroups gmane.comp.java.prevayler
Message-ID <CAMAooZHXPjhHCOddcU9exStPTn_ScRQ13-f1gtJfU_V9-NYg8Q@mail.gmail.com>
Hi Christian,

Very nice results. I don't know what PrevaylerEight provides in terms
of ACID guarantees. How do you compare PrevaylerEight to Prevayler in
that regard?

I believe 2s for a test run is way too little. Your numbers vary
greatly because of GC interference between runs.

The Prevayler results are still growing almost linearly with 8
threads. You have to increase the number of threads until the result
peaks out, possibly with hundreds or even thousands of threads.

Klaus

On Thu, Oct 16, 2014 at 7:13 AM, Christian Stein <[email protected]> wrote:
> Hi folks,
>
> I recently found some spare time and made the scalability test use the
> PrevaylerEight implementation. See [0] for the outline of its source. A
> single-system-wide lock facade prevayler implementation is used for
> synchronization, at the moment.
>
> The initial results are promising in terms of performance and consistency:
>
> Default Prevayler: 1511,00 operations/second (8 threads)
> PrevaylerEight implementation: 89189,50 operations/second (2 threads)
>
>
> These microbenchmarks are, especially when the consistency checks kicks in,
> very garbage collection dependent. I had to set the
> TransactionTestCheckConsistency to NO, because replaying more the 1.000.000
> transactions into the prevalent system would still be running... Ran the
> benchmark with -verbose:gc and saw after an hour that every 10 deserialized
> transactions a full GC.
>
> So, I had to lower the round duration from 20 to 2 seconds. This change
> makes the results even more dependent on the gc, jit, et al. But, now some
> results are shown. See console output at [0] and [1]. Query runs and JDBC
> runs are switched off.
>
> Next time, I'll integrate Caliper[3] to show more details.
>
> Cheers,
> Christian
>
> [0] PrevaylerEight.java
> https://gist.github.com/sormuras/3fea6f6ade327b2a4249
> [1] Result PrevaylerImpl
> https://gist.github.com/sormuras/ef279705d5838a757964
> [2] Result PrevaylerEight
> https://gist.github.com/sormuras/6f61c6af2066d5f8bf87
> [3] Caliper https://code.google.com/p/caliper/
>
> ------------------------------------------------------------------------------
> 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
>



-- 
Valeu, Klaus.

------------------------------------------------------------------------------
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