Re: 1.2 Cache Size (again)

From: Dancer <dancer@dont-contact.us>
Date: Fri, 29 May 1998 13:30:02 +1000

Does the swap_log count against the cache_dir size? I don't _think_ it
does, but it's worth asking to find out for sure.

D

Duane Wessels wrote:
>
> Mark Cooke writes:
>
> >/dev/hda5 247871 216025 31846 87% /usr/squid/cache
>
> ...
>
> >1998/05/26 17:32:11| WARNING: Disk space over limit: 157363 KB > 153600 KB
>
> Hi Mark,
>
> I just thought of something you can try. Squid-1.2 will rebuild
> the cache state by reading the directories if your swap.state
> file is lost. So, you could
>
> 1. shutdown squid
> 2. rm /usr/squid/cache/swap.state
> 3. restart squid
>
> After it finishes reading the directories, it will report something
> like this:
>
> 1998/05/28 17:12:09| storeRebuildFromDirectory: DIR #0 done!
> 1998/05/28 17:12:10| Finished rebuilding storage disk.
> 1998/05/28 17:12:10| 0 Entries read from previous logfile.
> 1998/05/28 17:12:10| 4873 Entries scanned from swap files.
> 1998/05/28 17:12:10| 0 Invalid entries.
> 1998/05/28 17:12:10| 0 With invalid flags.
> 1998/05/28 17:12:10| 4776 Objects loaded.
> 1998/05/28 17:12:10| 0 Objects expired.
> 1998/05/28 17:12:10| 0 Objects cancelled.
> 1998/05/28 17:12:10| 282 Duplicate URLs purged.
> 1998/05/28 17:12:10| 0 Swapfile clashes avoided.
> 1998/05/28 17:12:10| Took 140 seconds ( 34.1 objects/sec).
> 1998/05/28 17:12:10| Beginning Validation Procedure
> 1998/05/28 17:12:20| Completed Validation Procedure
> 1998/05/28 17:12:20| Validated 4591 Entries
> 1998/05/28 17:12:20| store_swap_size = 44260k
>
> I'd be curious to see what yours says.
>
> Duane W.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT d- s++: a C++++$ UL++++B+++S+++C++H++U++V+++$ P+++$ L+++ E-
W+++(--)$ N++ w++$>--- t+ 5++ X+() R+ tv b++++ DI+++ e- h-@ 
------END GEEK CODE BLOCK------
Received on Thu May 28 1998 - 20:36:24 MDT

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