[Bug 580590] [NEW] Squid no longer uses $SQUID_MAXFD
Ian Redfern
ian.redfern at logica.com
Fri May 14 17:32:15 BST 2010
Public bug reported:
Binary package hint: squid
After upgrading to lucid, squid ignores the setting of SQUID_MAXFD in
/etc/default/squid and always uses 1024 file descriptors, which is too
few for a busy proxy.
The old /etc/init.d/squid used to contain:
maxfds () {
[ -n "$SQUID_MAXFD" ] || return
[ -f /proc/sys/fs/file-max ] || return 0
global_file_max=`cat /proc/sys/fs/file-max`
minimal_file_max=$(($SQUID_MAXFD + 4096))
if [ "$global_file_max" -lt $minimal_file_max ]
then
echo $minimal_file_max > /proc/sys/fs/file-max
fi
ulimit -n $SQUID_MAXFD
}
Could we have it back in the new /etc/init/squid.conf?
** Affects: squid (Ubuntu)
Importance: Undecided
Status: New
--
Squid no longer uses $SQUID_MAXFD
https://bugs.launchpad.net/bugs/580590
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid in ubuntu.
More information about the Ubuntu-server-bugs
mailing list