Hi Robert,

On 2/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
>
> This is maybe a suitable thread for me to discuss some of the performance
> analysis that I've just started doing.

<snip/>

> I have also implemented an "AIOSocketIoProcessor" using the IBM alphaworks
> aio package (which is not open source but useful nonetheless to determine
> whether it is worth building an AIO library). Even using the naive
> threadpool that comes by default with the IBM library, latency was improved
> significantly on win32. I was going to do further testing with the IBM AIO
> library but unfortunately it doesn't support the linux version we run on
> our larger boxes (RHEL 3). Does anyone know of any other AIO libraries for
> Java?

Seems like the IBM aio4j is the only true aio library out there. 
Really unfortunate that they dont have an open source license for that
inspite of many repeated requests.  My personal findings with java nio
are that there is significant room for improvement.  The current nio
implementation is a cpu hog, even when it gets to a huge number (over
10K) of idle connections.  I dont think they have implemented epoll
support as yet in the jdk - something that blackdown had done with
theirs.

Also the aio4j library doesn't support SSL/TLS :(

An open source aio implementation is something that is begging to be
done, and is on my long term agenda.

> Minimising Copying:
>
> One of the operations our servers do is take in data and retransmit it
> unmodified to a number of subscribers as quickly as possible. Therefore
> minimising copying of data is important for us.

zero data copy is the holy grail for network servers.  It would be
great if we can minimize all the data copies that are happening. 
Would increase performance by many a magnitude.  Would be eagerly
waiting for your proposed changes.

<snip/>

> We are going to be doing performance testing with larger numbers of
> connections (e.g. 500) later this month and I will report on my findings.

I'm looking at testing for much higher numbers (100K+), but
unfortunately its always been put on the back burner.  Someday!

Regards,
Vinod.

Reply via email to