Re: [squid-users] Ordinal block keeps growing?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 29 Feb 2012 21:06:01 +1300

On 29/02/2012 6:50 p.m., Yucong Sun (叶雨飞) wrote:
> Memory usage for squid via mallinfo():
> Total space in arena: 536788 KB
> Ordinary blocks: 173203 KB 4895 blks
> Small blocks: 0 KB 0 blks
> Holding blocks: 1420 KB 3 blks
> Free Small blocks: 0 KB
> Free Ordinary blocks: 363584 KB
> Total in use: 174623 KB 32%
> Total free: 363585 KB 68%
> Total size: 538208 KB

These are numbers provided by the operating system. Squid is using ~174
MB now and under peak traffic load it used ~538 MB. The difference has
already been free'd.

> Memory accounted for:
> Total accounted: 40844 KB 8%
> memPool accounted: 40843 KB 8%
> memPool unaccounted: 497364 KB 92%
> memPoolAlloc calls: 0
> memPoolFree calls: 841528260

That indicates the extra 500 MB as being temporary objects for
processing client requests as they pass through Squid.

92% unaccounted is strange though. If you have a Squid older than 3.1.19
please try upgrading, it could be one of several memory problems which
we have fixed already.

I'm also aware of a patch which can be tried on top of 3.1.19 as a last
resort. It is untested and a bit risky in 3.1 series.

Amos
Received on Wed Feb 29 2012 - 08:06:08 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 29 2012 - 12:00:06 MST