Re: [squid-users] Setting ulimit for Filedescriptors.

From: Joe Cooper <[email protected]>
Date: Tue, 20 Nov 2001 06:37:46 -0600

Don't forget to set it in the shell where the squid process is started
(i.e. put it into the shell script that start Squid each time the system
boots). Squid is limited by the shell where it is started, as well as
the shell where it was compiled.

Squid@Visolve.com wrote:

> Hello Palmer J.D.F,
>
> You can change the value of #define __FD_SET SIZE 1024 to 8192 in the
> file /usr/include/bits/types.h .
> Next you need to raise the user limit in the shell so the configure script
> will see the added descriptors.
> #ulimit -HSn 8192
> #pwd
> #/usr/local/squid-2.4STABLE1
> #./configure
> #make
> #make install
>
>
>
> Thanks and Regards,
> -Kanchana
> squid@visolve.com
> www.visolve.com
>
>
>
> ----- Original Message -----
> From: "Palmer J.D.F." <J.D.F.Palmer@Swansea.ac.uk>
> To: <squid-users@squid-cache.org>
> Sent: Tuesday, November 20, 2001 3:31 PM
> Subject: [squid-users] Setting ulimit for Filedescriptors.
>
>
>
>>Hi,
>>
>>I have squid running with 8192 filesdescriptors, however when squid runs
>>from boot up it reverts back to 1024.
>>
>>I have established that this must be something to do with the ulimit -HSn
>>8192 command not being ran correctly.
>>
>>I have these two lines in my /etc/rc.d/rc.local file...
>>
>>ulimit -HSn 8192
>>/usr/local/squid/bin -s
>>
>>
>>If I stop squid, run the ulimit command then restart squid from the
>>
> console
>
>>it's fine. I guess this is something to do with the ulimit command
>>belonging to the session/console that squid is running in.
>>
>>Does anyone have a way round this?

-- 
Joe Cooper <joe@swelltech.com>
http://www.swelltech.com
Web Caching Appliances and Support
Received on Tue Nov 20 2001 - 05:34:50 MST

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