Messages in this thread | | | Date | Wed, 8 Jul 1998 16:48:07 +1200 | From | Chris Wedgwood <> | Subject | Re: File-descriptors - large quantities |
| |
On Wed, Jul 08, 1998 at 02:29:13PM +1000, Dancer wrote:
> My math says I should need a max of about 6000fds to have the server > keep up with requests. I figured that if the performance hit was not > _too_ extreme that 12000 should be relatively future-proof. > > The particular bit of software (squid 1.1) I think has poll(2) as an > option. I've not looked at that part of the source closely of late.
squid only uses poll(2) for certain OSs - and linux I don't think is one of them. I think there have been patches submitted for squid-1.2.23 (not yet released) to detect and use poll(2) if it exists.
poll(2) will work with old kernel, because libc will emulate it, but if its not supported by the kernel, performance will suffer badly.
If you really need this many FDs and can't spread the load over multiple squids, you might want to look at the newer kernels with Bill Hawes patches to support gobs of FDs and also poll(2).
All this assume, select(2) will suck for 12k FDs, which I've not tested.
-Chris
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |