[squid-users] SNMP queries to squid never go beyond 1 GB

Amos Jeffries squid3 at treenet.co.nz
Fri Mar 20 06:22:48 UTC 2015

On 20/03/2015 7:17 p.m., Amos Jeffries wrote:
> On 20/03/2015 2:55 p.m., Lawrence Pingree wrote:
>> No matter what cache_mem I set it seems that MRTG queries via SNMP never
>> seem to get beyond 1 GB even running the latest 3.5 code. Amos, is the code
>> capable of allocating more than one gig of memory?
> Yes but the SNMPv2 used by Squid only has 32-bit counters.
> We have quite a few 32-bit wrap related bugs waiting somebody who knows
> SNMP to do a library upgrade to SNMPv3.

Forgot to mention the other possibility...

cache_mem is an HTTP data cache and has the same object limits as any
disk cache. None of them may store more than 2^27-1 objects due to
design limits in the indexing. cache_mem also has a much higher rate of
0-byte and small objects than disks usually see.

So its very possible that simply the size of 2^27-1 worth of the small
and most popular objects in your traffic == 1GB.


More information about the squid-users mailing list