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

From: Zand, Nooshin <nooshin.zand@dont-contact.us>
Date: Tue, 2 Sep 2003 11:09:26 -0700

Adam,

It seems this is memory leak issue in Linux.
I do not have this issue with BSDI.
It is just happen on Linux box.
I will try your recommendation.

Does any one have the same issue on Redhat Linux 9.0?

Thanks,
Nooshin

-----Original Message-----
From: Adam Aube [mailto:aaube@firstindependent.net]
Sent: Tuesday, September 02, 2003 10:06 AM
To: squid-users@squid-cache.org
Subject: RE: [squid-users] Swap usage is constantly increasing

> 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 - 12:09:34 MDT

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