squid ---file decriptors

Rudolf Amirjanyan rudik at zydact.com
Fri Jan 7 21:43:01 UTC 2005


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 :)

Thanks again for the answers

Rudolf




----- Original Message -----
From: "Ow Mun Heng" <Ow.Mun.Heng at wdc.com>
To: "For users of Fedora Core releases" <fedora-list at redhat.com>
Sent: Thursday, January 06, 2005 7:12 PM
Subject: Re: squid ---file decriptors


> On Thu, 2005-01-06 at 21:31, Rudlof Amirjanyan wrote:
> > Hello list.
> >
> > I have recompiled my squid for supporting more than 1024 file
descriptors,
> > but after that this strange behavior.
> >
> > In my squid startup script when I put ulimit -HSn NNN (NNN is any number
> > less than 960) it is working well, i.e. in
> > /usr/local/squid/var/logs/cache.log I get the following (With NNN file
> > descriptors available).
> >
> > But when I put for example ulimit -HSn 1024 in and restart the squid in
the
> > cache.log it comes "With 960 file descriptors available"
>
> Which kernel are you running in? 2,4 or 2.6? It makes a difference. I've
> managed to run at 4096 without much effort.
> >
> > So it is not supporting more than 960 file descriptors ?  But Why ?
> >
> > BTW in the /usr/include/bits/typesizes.h  -------- I have "#define
> > __FD_SETSIZE            1024"
> > I changed it to 4096 but did not help.
>
> This isn't needed for 2.6.
>
> Are you somehow limited based on your overall system ulimit??
>
> --
> Ow Mun Heng
> Gentoo/Linux on DELL D600 1.4Ghz
> 98% Microsoft(tm) Free!!
> Neuromancer 11:11:36 up 2:13, 6 users,
> load average: 0.85, 0.63, 0.50
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list





More information about the fedora-list mailing list