RE: [squid-users] why squid not use swap file?

From: Hermann Strassner <[email protected]>
Date: Tue, 4 Feb 2003 14:15:40 +0100

> I've 2GB RAM on my squid box, 4GB swap file and 145GB
> cache dir. The squid use ALL of 2GB RAM,
> I think it would be great if I could use the 4GB swap
> file (it is totaly unused). Is it possible to
> configure squid to use swap file?

Squid uses swap automatically, if there is not enough memory.
But you SHOULD NOT use swap with squid!
Squid needs all of its memory as index for the cache_dir. For every request
it hast to look through the whole index. So if your squid uses only 1 kB of
swap its main work is swapping.

Hermann
Received on Tue Feb 04 2003 - 06:15:46 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:14 MST