Hi,
        I was recently doing some throughput tests with the Apache webserver
on FreeBSD-4.0. It seems that the recently introduced (after FreeBSD-2) zone
allocator limits the maximum number of socket structures to about 8000 (I 
configured my kernel with 256 MAXUSERS). A busy webserver can have about
50000 connections primarily due to TCP's TIME-WAIT state (see 
http://cs-tr.cs.rice.edu/Dienst/UI/2.0/Describe/ncstrl.rice_cs/TR99-335/). 
A limit of 8000 on socket descriptors would thus prevent a webserver from
achieving full throughput. Perhaps the maxsockets variable defined in
sys/uipc_socket2.c should be increased.



- Mohit


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to