Re: [squid-users] running out of file descriptors...

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 28 Aug 2002 20:45:34 +0200

See http://squid.sourceforge.net/hno/linux-lfd.html or try Squid-2.5.

Regards
Henrik

Rick Coloccia wrote:
> Hi Everyone...
>
> I'm looking for some suggestions.
>
> I'm getting these in my /var/log/messages:
> squid[3331]: WARNING! Your cache is running out of filedescriptors
>
> running cachemgr.cgi shows that I am indeed running out... My maximum
> number is 1024, and last night I had a largest in use and number in use
> both over 900.
>
> I did some google searches, read the squid docs, etc, and what I got from
> it all was to go make some changes in my kernel and recompile. I did.
> I followed these URL as best I could for my 2.4.18 kernel:
> http://www.squid-cache.org/linux-tweak.html
> http://www.squid-cache.org/Doc/FAQ/FAQ-11.html
>
>
> Then I began recompiling squid, but when I run ./configure, it still only
> sees 1024, not the 32768 I used.
>
> When I look at include/autoconf.h, I see this:
> /* Default FD_SETSIZE value */
> #define DEFAULT_FD_SETSIZE 1024
>
> /* Maximum number of open filedescriptors */
> #define SQUID_MAXFD 1024
>
> So I changed include.autoconf.h to look like this:
> /* Default FD_SETSIZE value */
> #define DEFAULT_FD_SETSIZE 32768
> /*#define DEFAULT_FD_SETSIZE 1024*/
>
> /* Maximum number of open filedescriptors */
> #define SQUID_MAXFD 32768
> /*#define SQUID_MAXFD 1024*/
>
> and I recompiled and reinstalled and restarted squid.
>
> cachemgr.cgi still reports only 1024 available descriptors.
>
> Is there somewhere else I need to make some changes for Squid to see that
> there are more descriptors?
>
> I get this from /proc:
> coloccia@firewall {500} sys: cat /proc/sys/fs/file-max
> 32768
>
> Suggestions?
>
> Thanks!
> -Rick
Received on Wed Aug 28 2002 - 12:45:39 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:52 MST