|
Home > Archive > Squid > April 2004 > [squid-users] mantainance for swap.state
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
[squid-users] mantainance for swap.state
|
|
| Gaetano Mendola 2004-04-29, 6:54 pm |
| -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
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 ?
Regards
Gaetano Mendola
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAi44h7UpzwH2SGd4RAitMAKDoI4GkEoHM
0dkTgcS+DQ+CWQANpwCgmkto
5kzpxd98S56v+c+mds57qBw=
=U9xC
-----END PGP SIGNATURE-----
| |
| Henrik Nordstrom 2004-04-29, 6:54 pm |
| 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.
Regards
Henrik
| |
| Gaetano Mendola 2004-04-29, 6:54 pm |
| -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
Regards
Gaetano Mendola
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAjVFz7UpzwH2SGd4RArK/AKDT8LnFY7Nv3tJwQfApu35OVKV1bQCg9ONd
rtWJfNQO/FFrDDZ4BHVit3E=
=T7Cn
-----END PGP SIGNATURE-----
| |
| Gaetano Mendola 2004-04-29, 6:54 pm |
| -----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
iD8DBQFAjX3Z7UpzwH2SGd4RAoXtAKD93Ry4kfKc
tnu/aEfAP0rI8Iu10ACgg/3w
l6hIhDI0T4G5H+R2k2+x+Vg=
=JDr3
-----END PGP SIGNATURE-----
| |
| Henrik Nordstrom 2004-04-29, 6:54 pm |
| On Mon, 26 Apr 2004, Gaetano Mendola wrote:
> /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.
swap.state is always growing, but each time you run "-k rotate" it shrinks
down to the current minimum size, then grow from that size.
Regards
Henrik
|
|
|
|
|