Re: [squid-users] Squid eating all memory

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Wed, 11 Oct 2006 02:44:46 +0200

tis 2006-10-10 klockan 21:25 -0300 skrev Charles Regan:
> I am using 2.6STABLE3 on kernel 2.6.8-2
> After a couple of hours Squid took all mem available.

It didn't.

It's just a matter of how to read the amount of free memory in Linux.
It's not easy as the OS uses any free memory as buffer/cache for the
filesystem.

Under normal operation there should be around 5-12MB "free" memory, if
not there is something wrong..

> What is causing this ? I had the same problem when using 2.5.
>
> Mem: 906752k total, 902464k used, 4288k free, 32168k buffers
> Swap: 3911816k total, 4k used, 3911812k free, 637096k cached

You have 657 MB free. Plenty free memory there.

"free -t"

> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 2781 proxy 15 0 174m 168m 2616 S 1.0 19.0 1:31.55 squid

And Squid is using 168 MB.

So everything is just in order. It's just that Linux does not have a
simple "free memory" value. The best approximation is the "Free +/-
buffers/cache".

Regards
Henrik

Received on Tue Oct 10 2006 - 18:44:56 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Nov 01 2006 - 12:00:04 MST