Re: [squid-users] Re: running out of filedescriptors in squid-2.5.PRE*

From: Jack <sa_jill@dont-contact.us>
Date: Sat, 6 Apr 2002 08:38:51 +0530

Hello Joe and Henrik,

My cache.log shows squid has taken only 1024 fds
 Process ID 608
 With 1024 file descriptors available

How can i set max_fd as 16384 in boot time as i made squid to start in boot
time itself.

What i done to increase fd in boottime itself as
#vi /usr/include/bits/types.h
        #define__FD_SET SIZE 16384

#/etc/security/limits.conf
        squid soft nofile 16384
        squid hard nofile 16384

#/etc/bashrc
       ulimit -HSn 16384 > /dev/null 2>&1

Is it correct or i missed somethink.

Thanks
Jack

> Also, is there any hint as to why it is running out of filedescriptors if
you
> look into the filedescriptor usage of Squid?
>
> client mgr:filedescriptors
>
> Regards
> Henrik
>
>
> Joe Cooper wrote:
> > How many available file descriptors does Squid tell you it has?
> >
> > client mgr:info
> >
> > Will tell you.
> >
> > What request rate?
> >
> > Jack wrote:
> > > Hello Joe,
> > > I installed squid in Redhat linux-7.1 kernel-2.4.17 in p-III 600 MHz
with
> > > 762 MB RAM.
> > > I test squid-2.5.PRE5 with polygraph
> > > I get error as
> > > WARNING! Your cache is running out of filedescriptors
> > > in cache log.
> > >
> > > I configured squid with aufs 20 threads.
> > > My cache_dir entry as
> > > cache_dir aufs /cache0 6000 14 256
> > > cache_dir aufs /cache1 6000 14 256
> > >
> > > ulimit -a shows
> > > core file size (blocks) 1000000
> > > data seg size (kbytes) unlimited
> > > file size (blocks) unlimited
> > > max locked memory (kbytes) unlimited
> > > max memory size (kbytes) unlimited
> > > open files 16384
> > > pipe size (512 bytes) 8
> > > stack size (kbytes) 16384
> > > cpu time (seconds) unlimited
> > > max user processes 6143
> > > virtual memory (kbytes) unlimited
> > >
> > > i checked config.status in squid
> > >
${ac_dA}DEFAULT_FD_SETSIZE${ac_dB}DEFAULT_FD_SETSIZE${ac_dC}16384${ac_dD}
> > >
${ac_uA}DEFAULT_FD_SETSIZE${ac_uB}DEFAULT_FD_SETSIZE${ac_uC}16384${ac_uD}
> > >
${ac_eA}DEFAULT_FD_SETSIZE${ac_eB}DEFAULT_FD_SETSIZE${ac_eC}16384${ac_eD}
> > > ${ac_dA}SQUID_MAXFD${ac_dB}SQUID_MAXFD${ac_dC}16384${ac_dD}
> > > ${ac_uA}SQUID_MAXFD${ac_uB}SQUID_MAXFD${ac_uC}16384${ac_uD}
> > > ${ac_eA}SQUID_MAXFD${ac_eB}SQUID_MAXFD${ac_eC}16384${ac_eD}
> > >
> > > i tried with all squid-2.5.PRE* versions.
> > >
> > > I want to use tcp_outgoing option to specifiy acl which is only in
> > > squid-2.5.PRE thats why i went to PRE version.
> > >
> > > What configuration should i want to change
> > >
> > > Thanks
> > > Jack


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Received on Fri Apr 05 2002 - 20:04:39 MST

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