Hi,
Further to all of this, I've spent a small amount of time specificially
investigating this problem of file descriptors & linux, and have the
"complete" solution to the Linux 2.2.1 FD problem. (if there can be :-)
The solution is detailed at:
http://wwwcache.ja.net/FAQ/FAQ-2.html
Essentially, you grab 2.2.1, & Alan Cox's ac patches, change
__FD_SETSIZE
in *both* locations in the source trees, and INR_OPEN to however many
filedescriptors you want. If this figure is greater than 8192, then you
need to make sure that NR_FILE is at least half whatever value you set
__FD_SETSIZE, or else you're system is likely to bomb at some point.
Recompile your kernel as normal & reboot.
Once you've done that you need never worry about ulimit, etc again.
NOTE: You must recompile Squid to take full advantage of this!
I'm also assuming that you only run a cache on the Linux box
in question.
Fuller details on the web page :-)
Michael.
-- National & Local Web Cache Support R: G95c Manchester Computing E: Michael.Sparks@mcc.ac.uk University of Manchester T: 0161 275 7195 Manchester UK M13 9PL F: 0161 275 6040Received on Tue Feb 23 1999 - 09:50:51 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:44:40 MST