Re: [squid-users] How often should I restart Squid?

From: Kinkie <[email protected]>
Date: Mon, 28 Jun 2004 11:19:13 +0200

Matus UHLAR - fantomas <uhlar@fantomas.sk> writes:

> On 22.06 22:47, Hendrik Voigtl�nder wrote:
>> With "growing" I mean the squid process increasing over the time. If I
>> read the FAQ correctly this could be caused e.g. if more and more
>> objects go in the the cache_dirs thus increasing the space needed for
>> the index, i.e. if squid starts with a clean cache_dir.
>> However, my squid is no longer increasing in process size, cache dirs
>> are full & the load is the same all day.
>>
>> Snapshot from top (idle squid at night).
>> 21603 proxy 9 0 1017M 1.0G 1180 S 0.0 50.3 1:46 squid
>>
>> It uses roughly 50% of the RAM (machine has 2GB) , the rest is used by
>> other processes and buffers/cache.
>>
>> I just think it is dangerous to disable swap, if one doesn't know how
>> large the squid process will get, i.e. probably larger than the physical
>> memory and this causing the OS to kill processes randomly (I had this
>> problem with java-stuff eating up all memory).
>
> I do not think so. The same can happen if you have swap or not - it's
> always used as virtual memory. Having more VM just delays running machina
> out of it, which only happens if there's some memory leak in squid,
> libraries or other applications running on that machine.

A small memory leak is almost unavoidable due to the phenomenon if heap
fragmentation. Squid si very good at trying to avoid it (mempools) and is
getting even better in version 3.0.

-- 
	kinkie (kinkie-squid [at] kinkie [dot] it)
	Random fortune, unrelated to the message:
A Smith & Wesson beats four aces.
Received on Mon Jun 28 2004 - 03:19:17 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jul 01 2004 - 12:00:03 MDT