Hi there,
check if you have a swap.state file and a sile swap.state.new.
The second file occours when you have 2 squids running at the same
time or due to misconfiguration. Remove the swap.state.new file
, empty the swap state ( > swap.state ) and restart the squid.
When the error still appears you must have a problem with the
cache mem. We experienced that strange error, too, on one of
our machines when using a machine with 2 Gig left on the harddisk.
The Cache already needed 2 Gig. When there was less then 2 Gig left
FREE on the device it stopped the process.
Hope this helps
Stefan
-----Ursprüngliche Nachricht-----
Von: DANNY KHALIL [mailto:danny.khalil@ftml.com.lb]
Gesendet am: Montag, 27. März 2000 15:30
An: squid-users@ircache.net
Betreff: Max cache size reached --> squid shuts down!!! help me
Okkay folks... I am running into this problem once every month or so!
I am looking for a solution!
I have configured squid to use 3 cache directories with different
size limit for each:
cache_dir /usr/local/squid/cache 100 16 256
cache_dir /data/squid/cache 2100 32 256
cache_dir /data1/squid/cache 7300 32 256
now... suddenly I notice that squid isnt running and users getting pissed
off... so I look in the cache.log and find the following:
2000/03/27 15:16:55| Starting Squid Cache version 2.2.STABLE2 for
alpha-dec-osf4.0...
2000/03/27 15:16:55| Process ID 22085
2000/03/27 15:16:55| With 4096 file descriptors available
2000/03/27 15:16:55| Performing DNS Tests...
2000/03/27 15:16:55| Successful DNS name lookup tests...
2000/03/27 15:16:55| helperOpenServers: Starting 5 'dnsserver' processes
2000/03/27 15:16:55| Unlinkd pipe opened on FD 12
2000/03/27 15:16:55| Swap maxSize 9728000 KB, estimated 748307 objects
2000/03/27 15:16:55| Target number of buckets: 14966
2000/03/27 15:16:55| Using 16384 Store buckets, replacement runs every 5
seconds
2000/03/27 15:16:55| Max Mem size: 8192 KB
2000/03/27 15:16:55| Max Swap size: 9728000 KB
2000/03/27 15:16:55| Store logging disabled
2000/03/27 15:16:55| Rebuilding storage in Cache Dir #0 (DIRTY)
2000/03/27 15:16:55| /data/squid/cache/swap.state.new: (28) No space
left on device <<<<<<<<<<------------------------------------------------
FATAL: storeDirOpenTmpSwapLog: Failed to open swap log.
Squid Cache (Version 2.2.STABLE2): Terminated abnormally.
CPU Usage: 0.053 seconds
Maximum Resident Size: 6344 KB
Page faults with physical i/o: 0
so I do a du on the cache dir and find out it is near the limit I set
in the etc/squid.conf
file:
spider# du -sk /data/squid/
2043150 /data/squid/ <<<<<<<<<<<<<<-----------------
so I remove remove a small dir from the cache... just enough to
start squid again and
see the what the cachemgr.cgi has:
checking the cachemgr.cgi
Store Directory Statistics:
Store Entries : 615282
Maximum Swap Size : 9728000 KB
Current Store Swap Size: 5645565 KB
Current Capacity : 58% used, 42% free
Store Directory #0: /usr/local/squid/cache
First level subdirectories: 16
Second level subdirectories: 256
Maximum Size: 102400 KB
Current Size: 96637 KB
Percent Used: 94.37%
Filemap bits in use: 4906 of 15753 (31%)
Filesystem Space in use: 1497434/2097152 KB (71%)
Filesystem Inodes in use: 76489/2020449 (4%)
Flags: SELECTED
Store Directory #1: /data/squid/cache <<<<<------------
First level subdirectories: 32
Second level subdirectories: 256
Maximum Size: 2150400 KB
Current Size: 1957593 KB
Percent Used: 91.03% <<<<<<<<-------------------
Filemap bits in use: 211024 of 330830 (64%)
Filesystem Space in use: 2039949/2600520 KB (78%)
Filesystem Inodes in use: 223046/1855110 (12%)
Flags: SELECTED
Store Directory #2: /data1/squid/cache
First level subdirectories: 32
Second level subdirectories: 256
Maximum Size: 7475200 KB
Current Size: 3591335 KB
Percent Used: 48.04%
Filemap bits in use: 381053 of 1150030 (33%)
Filesystem Space in use: 4194147/8200832 KB (51%)
Filesystem Inodes in use: 447791/13555461 (3%)
Flags:
Indeed you can see that my /data/squid/cache is getting full!!!
Now I know that squid is supposed to do something when it reaches
the limit like overwrite certain old data... why isn't it doing
so?!?!?!?!why is it shutting down when the cache reaches the
maximum size I specified in the etc/squid.conf file?
this behavior is getting me frustrated.
any clues, help I appreciate it!!!
thanx,
-Danny-
Received on Mon Mar 27 2000 - 06:55:15 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:52:25 MST