Re: V 1.2 or V 2.0 panics and dumps cache

From: Mark Reynolds <mark@dont-contact.us>
Date: Sun, 11 Oct 1998 09:43:01 +0800

Last nights observations ...

1998/10/10 23:44:38| diskHandleWrite: FD 34: disk write error: (28) No
space left on device
1998/10/10 23:44:38| storeSwapOutHandle: SwapOut failure (err code = -6).
1998/10/10 23:44:38| WARNING: Shrinking cache_dir #0 to 1109393 KB

Then cron job log rotate at midnight, with stats capture ...

 df :
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/hda2 169819 115350 45699 72% /
/dev/sda1 2028862 1189701 734275 62%
/usr/local/squid/cache1
/dev/sdb1 2028862 1161610 762366 60%
/usr/local/squid/cache2

mgr:storedir :

Store Directory Statistics:
Store Entries : 197731
Maximum Swap Size : 2952593 KB
Current Store Swap Size: 2224168 KB
Current Capacity : 75% used, 25% free

Store Directory #0: /usr/local/squid/cache1
First level subdirectories: 16
Second level subdirectories: 256
Maximum Size: 1109393 KB
Current Size: 1109770 KB
Percent Used: 100.03%
Filemap bits in use: 98696 of 335127 (29%)
Flags:

Store Directory #1: /usr/local/squid/cache2
First level subdirectories: 16
Second level subdirectories: 256
Maximum Size: 1843200 KB
Current Size: 1114398 KB
Percent Used: 60.46%
Filemap bits in use: 98909 of 335127 (30%)
Flags: SELECTED

Wake up and check current stats, 10 hours later :

 df
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/hda2 169819 102998 58051 64% /
/dev/sda1 2028862 1245476 678500 65%
/usr/local/squid/cache1
/dev/sdb1 2028862 1158988 764988 60%
/usr/local/squid/cache2

Store Directory Statistics:
Store Entries : 197822
Maximum Swap Size : 2952917 KB
Current Store Swap Size: 2226499 KB
Current Capacity : 75% used, 25% free

Store Directory #0: /usr/local/squid/cache1
First level subdirectories: 16
Second level subdirectories: 256
Maximum Size: 1109717 KB
Current Size: 1109711 KB
Percent Used: 100.00%
Filemap bits in use: 98681 of 335127 (29%)
Flags:

Store Directory #1: /usr/local/squid/cache2
First level subdirectories: 16
Second level subdirectories: 256
Maximum Size: 1843200 KB
Current Size: 1116788 KB
Percent Used: 60.59%
Filemap bits in use: 99099 of 335127 (30%)
Flags: SELECTED

Doesn't make any sense to me ...
Why does squid think cache1 is full, when the OS shows that it isn't?

And to finish off, I'll do a squid restart.
And things return to what I'd expect to see.

 df
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/hda2 169819 103022 58027 64% /
/dev/sda1 2028862 1246035 677941 65%
/usr/local/squid/cache1
/dev/sdb1 2028862 1158932 765044 60%
/usr/local/squid/cache2

Store Directory Statistics:
Store Entries : 197795
Maximum Swap Size : 3686400 KB
Current Store Swap Size: 2224076 KB
Current Capacity : 60% used, 40% free

Store Directory #0: /usr/local/squid/cache1
First level subdirectories: 16
Second level subdirectories: 256
Maximum Size: 1843200 KB
Current Size: 1109465 KB
Percent Used: 60.19%
Filemap bits in use: 98676 of 335127 (29%)
Flags: SELECTED

Store Directory #1: /usr/local/squid/cache2
First level subdirectories: 16
Second level subdirectories: 256
Maximum Size: 1843200 KB
Current Size: 1114611 KB
Percent Used: 60.47%
Filemap bits in use: 99116 of 335127 (30%)
Flags:
Received on Sat Oct 10 1998 - 18:45:14 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:24 MST