Kernel Timeslice
Cameron Simpson
cs at zip.com.au
Tue Nov 18 04:54:17 UTC 2008
On 17Nov2008 21:24, Wayne Feick <waf at brunz.org> wrote:
| If you're trying to service 1000's of sockets, you should at least take
| a look at select(2)
Select() should be replaced with epoll() on modern linux. Select() has
O(n) performance with the number of filedescriptors (because the bitmap
must be scanned for bits.
| / asynchronous I/O as a way to cut down on the
| number of threads and avoid the overhead or many context switches.
I seem to recall that lots of threads (up to the point of "too many")
beats asynch I/O these days.
But this may well be too low level for Steve's task.
Steve, do a bit of load testing and see where things start to get bad.
Cheers,
--
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/
Support Darwinian evolution -- Squash a weakling today.
- David Wren-Hardin <bdh4 at quads.uchicago.edu>
More information about the fedora-list
mailing list