Re: Sneer code, Async I/O and Vanilla-java

Clebert Suconic <[email protected]>
Newsgroups gmane.comp.java.prevayler
Message-ID <CAKF+bsrDgkdU_GBm=1K8KV6GdC7gTuAsuv3c6epKJcyEMAC14w@mail.gmail.com>
On Wed, Sep 14, 2011 at 11:49 AM, Klaus Wuestefeld <[email protected]> wrote:
>> The Linux Layer will perform a lot of DMA when dealing with writes on
>> the disk. I have been able to perform syncs on HornetQ up to the
>> hardware capacities while  I couldn't achieve that by doing in just a
>> thread through NIO.
>
> Nice. What was the speed difference? A few percent? Double? Orders of magnitude?

I don't remember the exact figures now. But I remember the equivalent
AIO writes being 30% faster than the NIO writes with a thread.


Benchmarking is not an exact science as you know..

If you look at the SpecJMS results (well, they cover a lot more than
just the write itself), you will see that our NIO configuration on
HornetQ 2.0.0. was at 153 while the AIO was at 185. about 25% faster.
What kind of matches the micro-benchmark.


A few caveats to achieve performance on libaio. (I should blog about this):

When I switched context, performance sucked... so, I had to keep all
the calls within an executor.

I still needed to buffer as much as I could: So, I added the TimedBuffer

Non related to AIO itself, but I never block on our server. I use what
I call the OperationContext. I guess you could make something similar.


You should definitely look into cool and modern things for a newer
version. Like Netty and never blocking.


If I was in your shoes, and with time to start a new project, I would
probably start a new prevalyer version while partnering with Node.X.
Tim Fox still a good friend of mine and he's leading a new project
there.


Anyway.. just a few ideas.

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
_______________________________________________
"Databases in Memoriam" -- http://www.prevayler.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.