Sane Number of Threads

Michael.Newcomb at gdc4s.com Michael.Newcomb at gdc4s.com
Thu May 19 09:25:51 EDT 2011


I have a dual 4-core machine and when I use the default number of
threads (2 * cores = 16) the cpu load is very high without any real
throughput increase. When I set it to 2, I saw much more tame cpu usage
with the same throughput. I was only using a small number of connections
(< 20) so this may not scale with the number of connections.


-----Original Message-----
From: netty-users-bounces at lists.jboss.org
[mailto:netty-users-bounces at lists.jboss.org] On Behalf Of Dustin
Norlander
Sent: Wednesday, May 18, 2011 6:27 PM
To: Netty Users
Subject: Sane Number of Threads

Wondering how big to make the I/O threadpool.  I am currently using an
Execution handler so my code should all be executed in a separate
thread, just wondering how many threads to assign to the IO pool?

Seems with asynch i/o the number of io threads should be very small
since it should not ever block, is this correct?  any reason to ever
assign more threads then the # of cores?

thanks for any advice,
Dustin
_______________________________________________
netty-users mailing list
netty-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/netty-users



More information about the netty-users mailing list