NIO one-to-one connection read threads?

sirsoren soren.caspersen at nordea.com
Tue Aug 9 05:22:50 EDT 2011


I made an interesting observation. On my server I increased the connection
count to 1000 and the one-to-one relationship was broken at exactly 128 IO
threads. Our server has 64 cores while my windows box which assigned 8
threads has 4 cores. So it seems that there is a preference for 2 threads
per core. I guess this is fine...except if I limit my thread pool to less
than 2*ncores and use a synchronous queue (that hands off jobs off to the
threadpool directly), then new connections will actually be denied?!? On my
64 core server a thread pool of up to 127 will only be able to handle no
more than 127 connections but with a a threadpool of up to 128 it will
handle 1000 connections and way more?


--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/NIO-one-to-one-connection-read-threads-tp6663856p6667469.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list