Cannot change the maximum number of filedescriptors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
squid3 (Fedora) |
Fix Released
|
Undecided
|
|||
squid3 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The max_filedescriptors configuration directive is being ignored on Trusty.
To reproduce the problem, set max_filedescriptors in squid.conf and run the following command:
squid3 -k parse 2>&1|grep max_filedescriptors
The following output should result.
2014/11/06 15:21:15| WARNING: max_filedescriptors disabled. Operating System setrlimit(
Indeed, regardless of the max_filedescriptors value specified in squid.conf, squid will run with a maximum of 65536 file descriptors available. This can be verified with:
grep 'file descriptor' /var/log/
2014/11/06 15:30:45| With 65536 file descriptors available
The reason for this is that squid has been built with --with-
Rebuilding the package without --with-
Fedora also had a similar problem:
https:/
Thanks,
Emanuele
apt-cache policy squid3 | grep Installed
Installed: 3.3.8-1ubuntu6.1
lsb_release -rd
Description: Ubuntu 14.04 LTS
Release: 14.04
Changed in squid3 (Fedora): | |
importance: | Unknown → Undecided |
status: | Unknown → Fix Released |
Version-Release number of selected component (if applicable): 2.9-1.fc18. x86_64
squid-3.
It's not possible to change the number of file descriptors available to squid at runtime with either the "max_filedescri ptors" option or by specifying the open files limit in systemd squid unit file.
Attempting to use max_filedescriptors option gets an error: RLIMIT_ NOFILE) is missing.
WARNING: max_filedescriptors disabled. Operating System setrlimit(
Rebuilding squid without the "--with- filedescriptors =16384" option in the spec file causes squid to inherit the build environments open files limit as its default (i.e. 1024 as a user), but the squid unit file option "LimitNOFILE=16384" is now obeyed and set if systemd is used to start squid. The max_filedescriptor option also starts working at this point.
Can we get squid built without the "--with- filedescriptors =16384" build option. Thank you.