NIO vs OIO

"이희승 (Trustin Lee)" trustin at gmail.com
Wed Jul 28 05:30:35 EDT 2010


Even a simple discard client-server testing shows NIO outperforms OIO
when the number of concurrent connection is greater than 10 in my brand
new Core2Quad i7 laptop.  If the number of connections are small, it's a
known fact that OIO has better throughput, but it never scales up under
serious pressure.

Of course, OIO works just fine if your business logic takes long enough
because raw I/O performance doesn't matter much since it's not a bottleneck.

Anyway, Netty has both OIO and NIO transport, so you can switch to OIO
if you really need to do so. :)

HTH,
Trustin

On 07/28/2010 05:18 PM, Marc-André Laverdière wrote:
> I just had a look at this article:
> http://www.thebuzzmedia.com/java-io-faster-than-nio-old-is-new-again/
> 
> It turns out that OS improvements and multicore processors make it
> faster to use OIO instead of NIO.
> 
> How can Netty users take advantage of those benefits?
> 
> Marc-André LAVERDIÈRE
> "Perseverance must finish its work so that you may be mature and
> complete, not lacking anything." -James 1:4
> mlaverd.theunixplace.com/blog
> 
>  /"\
>  \ /    ASCII Ribbon Campaign
>   X      against HTML e-mail
>  / \
> 
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users

-- 
what we call human nature in actuality is human habit
http://gleamynode.net/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 293 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20100728/6dd4a461/attachment.bin 


More information about the netty-users mailing list