Re: [squid-users] query about --with-filedescriptors and ulimit

From: Eliezer Croitoru <eliezer_at_ngtech.co.il>
Date: Thu, 14 Feb 2013 11:33:35 +0200

On 2/14/2013 11:12 AM, Amm wrote:
> ulimit -H -n gives 4096
> ulimit -n gives 1024
>
> These are standard Fedora settings, I have not made any changes.
>
>
> So back to my question:
> If I am compiling squid with --with-filedescriptors=16384
> do I need to set ulimit before starting squid?
>
> Or does squid automatically set ulimit?
This gives squid the default to 16384 as a limit if available.
In a case the system is limiting to 1\4k the lower limit is being forced
by the OS.

You need to change the limit's in the OS level to this specific
service\user\process.

Many admins prefer to just add a line at the startup script:
ulimit 16384
(or another limit)

It works fine so feel free to use it unless you prefer to do it in the
ways Fedora\linux structure offers the admin.

Regards,
Eliezer

>
>
> Thanks
>
>
> Amm.

-- 
Eliezer Croitoru
http://www1.ngtech.co.il
IT consulting for Nonprofit organizations
eliezer <at> ngtech.co.il
Received on Thu Feb 14 2013 - 09:34:33 MST

This archive was generated by hypermail 2.2.0 : Thu Feb 14 2013 - 12:00:04 MST