Search squid archive

query about --with-filedescriptors and ulimit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have a query about how --with-filedescriptors and ulimit.

Every 2-3 days I keep getting WARNING that system is running out of descriptors.


I compiled squid using --with-filedescriptors=16384.

So do I still need to set ulimit before starting squid?

Or does squid automatically set ulimit? (as it starts as root)


I am using Fedora 16 with systemd squid.service (standard fedora file, no change)

Cache.log says:

2013/02/14 10:28:52 kid1| With 16384 file descriptors available


which is as expected.


squidclient gives this:

[root@localhost ]# squidclient -h 127.0.0.1 mgr:info |grep -i desc
File descriptor usage for squid:
        Maximum number of file descriptors:   16384
        Largest file desc currently in use:    888
        Number of file desc currently in use:  774
        Available number of file descriptors: 15610
        Reserved number of file descriptors:   100

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?


Thanks 


Amm.




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux