RE: [squid-users] Swap usage is constantly increasing

From: Adam Aube <[email protected]>
Date: Tue, 2 Sep 2003 13:06:01 -0400

> The only active serives in use is squid.
> System has 1G RAM. 500MB of SWAP.

Squid seems to only be using about 398 MB of memory total. From the
output of free you provided, your operating system is using about 130
MB of RAM for buffers and 470 MB for caching.

That does not account for all the memory and all the swap that free
reported as being used - about 256 MB is unaccounted for.

> cache_dir diskd /cache 50000 16 256

> 2040502 on-disk objects

Per the FAQ, Squid uses 72 bytes of memory to hold metadata for each
object in the cache. With that many objects in cache, Squid is using
about 140 MB for metatdata alone. I would recommend shriking your
cache size to 5 - 10 GB to reduce the memory usage.

You should also consider shrinking your swap partition with parted (to
about 250 MB), or perhaps turning it off completely - either of these
will force the OS to allocate less memory for caching and buffers.

Adam

Received on Tue Sep 02 2003 - 11:06:05 MDT

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