[squid-users] HDD/RAM Capacity vs store_avg_object_size
Amos Jeffries
squid3 at treenet.co.nz
Mon Jul 17 14:12:28 UTC 2017
On 18/07/17 00:01, bugreporter wrote:
> Hi,
>
> Thank you for this clarification. Can you please tell me what is the best
> method to measure the RAM used by Squid? Can I trust *top* and/or *ps* and
> look at the RSS? Or you suggest another method (maybe using the manager)?
>
> For instance on a 64x when I start squid without cache_dir and a cache_mem
> of 0MB, the "*top*" command gives me the following:
>
> /PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 10996 root 0 -20 70436 3504 1000 S 0.0 0.2 0:00.00 squid
> 10999 squid 0 -20 624472 144052 6152 S 0.0 7.0 0:03.34 squid/
>
> But the output of "squidclient -h localhost -p 3128 mgr:info' gives me this:
>
> /Resource usage for squid:
> ...
> Maximum Resident Size: 576208 KB
> /
> Can you please give me advice about that?
Thats is maximum under the highest peak this Squid has apparently
encountered. The value comes directly from the getrusage() syscall,
Squid is not maintaining that value itself.
HTH
Amos
More information about the squid-users
mailing list