Re: Growing RAM usage by SQUID

From: Alex Rousskov <rousskov@dont-contact.us>
Date: Thu, 4 Dec 1997 09:24:24 -0600 (CST)

On Thu, 4 Dec 1997, Bill Petersen wrote:

> I am running Squid 1.1.18 I configure squid to
>
> cache_mem 8
>
> but find that over a week or so, squid uses over 100MB
> of RAM. WHY?

Read the documentation on "cache_mem" please. "cache_mem" does not specify
the total memory requirement. "cache_mem" stands for the amount of RAM
reserved for intransit and "hot" objects only.

> Is there any way to limit how much RAM
> squid will use?

There is only one way, I guess: Limit your cache swap size. Release notes
have a description on how to calculate Squid memory requirement given swap
size.

> Eventually it grows to around 200MB RAM
> and crashes. I have 64MB of RAM in the system with 1GB of swap.

1GB swap / 10K avg_obj_size = 100K objects
100K objects * 100 bytes_per_hash_entry = 10MB RAM

Thus, the hash table will cost you about 10MB of RAM. Other stuff will
probably consume about 10MB more. Plus 8 MB for cache_mem. Thus, the total
would be around 30-35MB. I am not sure why it grows to 200MB.

Alex.
Received on Thu Dec 04 1997 - 07:34:05 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:50 MST