Subject: Re: select() question
To: Erik Huizing <firstname.lastname@example.org>
From: Wojciech Puchar <email@example.com>
Date: 08/14/2001 21:43:18
> Quick question about select:
> is it better to use select on a large (possibly >5,000) number of
> sockets, or to split the job up amount, say, 10 or 20 threads, where each
> thread has a more manageable list. If it makes any difference, each socket
> sends something ata fairly low rate (>10 seconds between transmissions)
> and the packets are small (<100 bytes).
split. perfect example of first solution is squid in which CPU load isn't
proportional to traffic and even with Ghz processors it can't give more
than few hundreds URLs per second. it can't scale.