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