Re: [squid-users] negative values in mgr:info

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 17 Feb 2014 23:29:55 +1300

On 17/02/2014 11:15 p.m., Niki Gorchilov wrote:
> Hello,
>
> While using Squid 3.4.3 on 64bit Ubuntu 12.04.3 with 64GB cache mem
> and I see negative values in some memory-related statistics:
>
> ===[cut]===
> Memory usage for squid via mallinfo():
> Total space in arena: -972092 KB
> Ordinary blocks: -974454 KB 4472 blks
> Small blocks: 0 KB 0 blks
> Holding blocks: 740328 KB 19 blks
> Free Small blocks: 0 KB
> Free Ordinary blocks: 2362 KB
> Total in use: 2362 KB -1%
> Total free: 2362 KB -1%
> Total size: -231764 KB
> Memory accounted for:
> Total accounted: 1834725 KB -792%
> memPool accounted: 77332197 KB -33367%
> memPool unaccounted: -77563961 KB -0%
> memPoolAlloc calls: 13874752170
> memPoolFree calls: 13959152640
> ===[cut]===
>
> Are these result of integer overflow or using signed integers?

32-bit overflows in the mallinfo() internals and/or data structures.
These are well-known old flaws in mallinfo().

On 64-bit Squid you can disregard the memory sections of the report. The
only reliable display is the "calls" counters and the "memPool
accounted" size value. Display of everything else is corrupted in some
way by mallinfo() .

Amos
Received on Mon Feb 17 2014 - 10:30:06 MST

This archive was generated by hypermail 2.2.0 : Mon Feb 17 2014 - 12:00:05 MST