Re: [squid-users] mantainance for swap.state

From: Gaetano Mendola <[email protected]>
Date: Mon, 26 Apr 2004 23:23:38 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gaetano Mendola wrote:

| Henrik Nordstrom wrote:
|
| | On Sun, 25 Apr 2004, Gaetano Mendola wrote:
| |
| |
| |>I wish to know what I have to do for mantainance for
| |>this file that is growing each day till reach the maximum
| |>size for the FS ( 2 GB ), is it safe delete it regulary
| |>without stop squid ?
| |
| |
| | You need to set up proper log rotation calling "squid -k rotate".
| |
| | The swap.state file should never be touched manually. It is not a log
| | file, it is the index of what you have in the cache.
| |
| | Each time you call "squid -k rotate" squid compacts this file, pruning
| out
| | all old stuff no longer in the cache.
|
| I did:
|
| /usr/local/squid/sbin/squid -f /usr/local/squid/etc/squid.conf -k rotate
|
| and now I have a file swap.state.last-clean
| of 0 bytes and the swap.state is still growing.

Forget what I wrote, the -k rotate was working well, I didn't notice
that swap.state passed from ~200MB to ~20MB.

Regards
Gaetano Mendola
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAjX3Z7UpzwH2SGd4RAoXtAKD93Ry4kfKctnu/aEfAP0rI8Iu10ACgg/3w
l6hIhDI0T4G5H+R2k2+x+Vg=
=JDr3
-----END PGP SIGNATURE-----
Received on Mon Apr 26 2004 - 15:23:48 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Apr 30 2004 - 12:00:02 MDT