[prog] httpd, accept from forked processes
Sam Watkins
swatkins at fastmail.fm
Tue Mar 31 07:42:16 UTC 2009
hi,
I'm writing a webserver, it is working well, it uses select / epoll, and
forks two processes both of which try to accept new connections, the
idea being that it should be able to take advantage of two cpus. However
it seems that almost all of the connections go to one of the processes,
which I think is lowering the performance. Can anyone suggest how to get
the two processes to share the connections fairly evenly between them,
or why it wouldn't already be doing that? Maybe I'm not giving enough
info, anyway..
thanks,
Sam
More information about the Programming
mailing list