[squid-users] Negative value for total memory accounted

Amos Jeffries squid3 at treenet.co.nz
Wed Jul 29 22:04:15 UTC 2015


On 30/07/2015 9:29 a.m., Yuri Voinov wrote:
> 
> Squid is 32 bit? And OS?

Well, technically SNMP used by Squid is 32-bit. Squid itsef may be a
64-bit build and produce the same thing.

> 
> 30.07.15 3:23, Sebastian Goicochea пишет:
>> Hello, I'm having a problem monitoring squid memory usage.
> 
>> Using SNMP:
>> SQUID-MIB::cacheMemUsage.0 = INTEGER: -1355105
> 
>> Using squid-client:
>> Memory accounted for:
>>     Total accounted:       -1369659 KB
>>     memPoolAlloc calls:      1995
>>     memPoolFree calls:  653296188
> 
>> Note that the value is negative (-)
> 
>> The problem arose when I set "cache_mem 2048 MB" (it was 1024 before)
>> I've read about the malloc problem .. just wanted to know if someone
> found a solution other than obtaining it through ps

Not easily. The maths is a bit tricky. But if you know how, convert the
negative it to an unsigned 32-bit value.

Amos


More information about the squid-users mailing list