Bug 976815
Summary: | file descriptors are hard coded to 16384 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Zing <zing> |
Component: | squid | Assignee: | Michal Luscon <mluscon> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 18 | CC: | henrik, jonathansteffan, mluscon, thozza |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-09-13 11:20:51 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Zing
2013-06-21 14:16:56 UTC
It would make sense to compile squid without the file descriptors limit and treat systemd LimitNOFILE as a boundary for config value, but there is an issue when squid.conf value is higher than LimitNOFILE. In this case squid logs and probably also uses max_filedescriptor value instead of current fd limit. I will initiate discussion with upstream on the theme of systemd and squid. Yes. From my testing (with a squid built without the --with-filedescriptors option), if max_filedescriptors is not set, squid will just inherit the current rlimit setting of nofile (I made an error in my comment 0, it does not come from the build environment). If max_filedescriptors is set, then that is what squid will use, regardless of the nofile rlimit. Is that necessarily an issue? That seems "ok" to me and the effect I'd want (being able to "override" the rlimit in the squid config). The only kind of maybe unexpected thing here is if one doesn't use systemd to start squid, the default squid configuration is probably going to inherit a filedescriptor limit much smaller (1024) than the systemd LimitNOFILE specified 16384. You can find the newest Squid build without "--with-filedescriptors" option in rawhide. |