[squid-users] filedescriptors on debian/systemd

Amos Jeffries squid3 at treenet.co.nz
Wed Aug 3 02:31:00 UTC 2022


On 3/08/22 01:54, Matus UHLAR - fantomas wrote:
> Hello,
> 
> I have encountered Debian bug 934208:
> 
> 2022/07/28 16:40:53 kid1| With 1024 file descriptors available
> 2022/07/29 06:50:18 kid1| WARNING! Your cache is running out of 
> filedescriptors
> 
> according to the bug report:
> 
> "Under systemd the default is not to have any limitation at all."
> 

To clarify, what that means is that *systemd* does not impose any limit 
by default. Squid when it cannot find a limit sets 1024 as default.



Under systemd the "correct" way to set such a limit is for the admin to 
decide on a limit and configure it. You can do this is two ways:

  1) set the systemd local config like you did:

> 
> # cat /etc/systemd/system/squid.service.d/override.conf
> [Service]
> LimitNOFILE=65536
> 
> and after reloading systemd:
> 
> # systemctl daemon-reload
> 

or, 2)

   set max_filedescriptors in squid.conf


HTH
Amos


More information about the squid-users mailing list