NIO.2 and GC activity

Leon Finker leonfin at optonline.net
Wed May 20 05:48:40 PDT 2009


SO_RCVBUF is default of 8192 in all cases. SO_SNDBUF I've set to 0 in all
cases because of the pausing issue on Vista and preventing me to do the
tests.

-----Original Message-----
From: Alan.Bateman at Sun.COM [mailto:Alan.Bateman at Sun.COM] 
Sent: Wednesday, May 20, 2009 3:23 AM
To: Leon Finker
Cc: nio-dev at openjdk.java.net
Subject: Re: NIO.2 and GC activity

Leon Finker wrote:
> FYI, I did some performance testing across two machines (Windows Vista
over
> Wi-Fi connection) with single outstanding read and multiple outstanding
> reads and writes on a socket. For single case I did this in Java NIO2 and
> .NET. The code between the two is basically identical. The performance is
> about the same. For multiple case I only did this in .NET since Java NIO2
> prevents me from doing this. I see ~25% increase in data throughput in
> multiple reads and writes case. And I did not even try to optimize the
code
> for re-sequencing multiple outstanding receives (just took a coarse
grained
> lock to protect shared state). This is with single client connection to a
> server. I don't know if there will be any gains in Java NIO2, but it would
> be nice to test it. If there is, then I would vote for removing the check
> for multiple outstanding reads.
>   
Do you know the size of send/receive buffer in both cases?

-Alan.




More information about the nio-dev mailing list