Henrik Nordstrom wrote:
> 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
>
Hi,
Henrik what do you think from these memory values?
[root@proxy root]# free -t
total used free shared buffers cached
Mem: 2075036 2068700 6336 0 475280 595452
-/+ buffers/cache: 997968 1077068
Swap: 4194256 248 4194008
Total: 6269292 2068948 4200344
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
2424 squid 15 0 1122M 864M 1440 S 3.9 42.6 1999m 0 squid
Thanks
Emilio C.
Received on Fri Oct 13 2006 - 07:02:57 MDT
This archive was generated by hypermail pre-2.1.9 : Wed Nov 01 2006 - 12:00:04 MST