[squid-users] Failed to open swap log for reading

From: <harald@dont-contact.us>
Date: Tue, 11 May 2004 11:37:41 +0200

Hi

We're experiencing problems with squid apparently opening too many
files. However, the OS limit's configured at 32768 fds.

Does anybody have an idea what might be the cause for this?

We're using squid25STABLE5 snapshot 20040511 (we've had the same
problems with snapshot 20040414 and with stable5 release).

The operating system is Solaris 8. We're using squid with Websense as an
URL filter and Samba for NTLM authentication. Details are given below.

The problem disappears when starting fewer redirectors or authentication
helpers (however, we need this many). The problem appears to be
independent of the cache directory configuration.

Cheers - Harry

# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) 0
nofiles(descriptors) 16384
vmemory(kbytes) unlimited
#
# /var/squid25STABLE520040511/sbin/squid -N -D -d 5
2004/05/11 11:17:14| Starting Squid Cache version 2.5.STABLE5-20040511
for sparc-sun-solaris2.8...
2004/05/11 11:17:14| Process ID 25445
2004/05/11 11:17:14| With 32768 file descriptors available
2004/05/11 11:17:14| DNS Socket created at 0.0.0.0, port 47552, FD 4
2004/05/11 11:17:14| Adding nameserver 127.0.0.1 from squid.conf
2004/05/11 11:17:14| helperOpenServers: Starting 125 'WsRedtor'
processes
2004/05/11 11:17:26| helperStatefulOpenServers: Starting 250 'ntlm_auth'
processes
2004/05/11 11:17:40| Unlinkd pipe opened on FD 384
2004/05/11 11:17:40| Swap maxSize 1024000 KB, estimated 78769 objects
2004/05/11 11:17:40| Target number of buckets: 3938
2004/05/11 11:17:40| Using 8192 Store buckets
2004/05/11 11:17:40| Max Mem size: 10240 KB
2004/05/11 11:17:40| Max Swap size: 1024000 KB
2004/05/11 11:17:40| Store logging disabled
2004/05/11 11:17:40| /dump/squid25STABLE520040414/cache/swap.state: (24)
Too many open files
May 11 11:17:40 umbria squid[25445]: [ID 702911 user.alert] Failed to
open swap log for reading
FATAL: Failed to open swap log for reading
Abort
#

squid.conf:
# cat /var/squid25STABLE520040511/etc/squid.conf
http_port 8089
cache_peer 10.0.0.146 parent 8080 3130 default no-query
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 10 MB
maximum_object_size 10000 KB
cache_dir aufs /dump/squid25STABLE520040414/cache 1000 16 128
emulate_httpd_log on
dns_nameservers 127.0.0.1
redirect_program /opt/Websense/EIM/bin/WsRedtor
redirect_children 125
auth_param ntlm program /var/squid25STABLE520040511/libexec/ntlm_auth
jbcobia/umbria
auth_param ntlm children 250
auth_param ntlm max_challenge_reuses 50
auth_param ntlm max_challenge_lifetime 2 minutes
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl februa src 10.0.0.146/255.255.255.255
acl umbria src 10.0.0.147/32
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 3000
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access allow manager umbria
http_access allow manager februa
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl blade1 src 192.168.7.51/32
acl blade2 src 192.168.7.52/32
acl blade3 src 192.168.7.53/32
acl blade4 src 192.168.7.54/32
acl blade5 src 192.168.7.55/32
acl blade6 src 192.168.7.56/32
acl blade7 src 192.168.7.57/32
acl blade8 src 192.168.7.58/32
acl dc2 src 192.168.7.68/32
acl u_users proxy_auth "/var/squid25STABLE3/etc/allowed.users"
acl technical_users proxy_auth "/var/squid25STABLE3/etc/allowed.users.technical"
acl WDAY time MTWHF 06:00-20:00
http_access allow blade2
http_access allow dc2
http_access allow umbria
http_access allow localhost
http_access allow u_users
http_access allow u_users WDAY
http_access allow technical_users
http_access deny all
http_reply_access allow all
icp_access allow all
cache_effective_user proxy
cache_effective_group proxy
visible_hostname proxy
never_direct allow all
coredump_dir /dump/squid25STABLE50511/cache
redirector_bypass off
cache_access_log /var/squid25STABLE3/var/logs/access.log
cache_store_log none
Received on Tue May 11 2004 - 03:37:57 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Jun 01 2004 - 12:00:01 MDT