Re: Threads question

David S. Miller (
Fri, 25 Apr 1997 18:35:41 -0400

Date: Fri, 25 Apr 1997 18:23:29 -0400 (EDT)
From: Todd Graham Lewis <>

Still, though, there are legitimate applications wherein having
multiple thousands of threads necessary. The most active IRC
server on the net, from what I understand, is a FreeBSD Pentium
which can accept ~1500 (this is from memory) connections.

Why do you need 1500 threads to service 1500 connections? The answer
is you don't, you create more threads to bound the problem not to get
your load factor down to one, this applies to searching and lookup
algorithms as well which is pretty much CS 101 ;-), unless you have
1500 cpu's and a 10 or so gigs of ram, then 1500 threads aren't going
to buy you much, and even if you have that mammoth of a machine I'd
bet you wouldn't be running and IRC server on it. 8-)

Perhaps 30 threads or so to get some extra parallelism in there, but
really not much more before you start hanging yourself.

Yow! 11.26 MB/s remote host TCP bandwidth & ////
199 usec remote TCP latency over 100Mb/s ////
ethernet. Beat that! ////
-----------------------------------------////__________ o
David S. Miller, /_____________/ / // /_/ ><