squid ---file decriptors

Peter Arremann loony at loonybin.org
Sat Jan 8 04:35:30 UTC 2005


On Friday 07 January 2005 22:45, Ow Mun Heng wrote:
> On Sat, 2005-01-08 at 05:43, Rudolf Amirjanyan wrote:
> > OK, let me tell you what is happening when I put "ulimit -Sn 2048" (or
> > any value more than 960) command in  /etc/init.d/squid script
> >
> > I restart the Squid. and then ---
> >
> > tail -f /usr/local/squid/var/logs/cache.log |grep descriptors
> >
> > 2005/01/07 13:37:20| With 960 file descriptors available
> >
> > but form command "ulimit" command shows the following:
> >
> > ulimit -SHn ---- the value is 1024
> > ulimit -n ----- 1024
> >
> > So what is my mistake here ?
> > Why squid cache shows 960 but not 1024 or even 961 :)
>
> What about ulimit -a
>
> Again, 2.4 or 2.6 kernel??
Also, keep in mind, there are more things than just files that use up file 
descriptors. Network sockets, libs, ... So for a program that is so 
file/connection intensive as squid, having 960 fds available for file access 
isn't bad...

Peter.




More information about the fedora-list mailing list