Re: [squid-users] memory eat

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 24 Oct 2003 10:51:00 +0200 (CEST)

On Fri, 24 Oct 2003, Benjamín Vayá wrote:

> Hi Henrik:
>
> The 'top' exit is :
>
> Mem: 2064424k av, 1928044k used, 136380k free, 0k shrd, 346912k buff
> 1483804k actv, 84376k in_d, 42148k in_c
> Swap: 4096564k av, 22324k used, 4074240k free 1007124k cached
>
> PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
> 2497 squid 15 0 381M 367M 604 S 0.0 18.2 44:26 0 squid

Ok. some simple math on the above figures:

1928044k - 346912k - 367M = 1178M used by something else than Squid and
the OS buffers... I would suggest you start looking who is using all this
memory as it is not your Squid.

> Actually, the squid is running but dont receives any queries because I stopped
> it. In spite of that, squid still spends 18,2% of memory.

See the Squid FAQ chapter on memory usage. This explains well how and why
Squid uses memory.

As I have very recently said on the suqid-users mailinglist the size of
Squid should basically never ever decrease, or increase over a long time.
The size should stabilize at a certain size after some use at peak
workload.

Regards
Henrik
Received on Fri Oct 24 2003 - 02:51:03 MDT

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