lkml.org 
[lkml]   [1998]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.054 / U:0.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site