Re: [squid-users] top reports twice memory as much as Total in mgr:mem

From: Kaiwang Chen <kaiwang.chen_at_gmail.com>
Date: Mon, 25 Oct 2010 19:03:20 +0800

The patch for bug 3068,
http://bugs.squid-cache.org/attachment.cgi?id=2291&action=diff
is not against 3.1.6?

2010/10/25 Amos Jeffries <squid3_at_treenet.co.nz>:
> On 25/10/10 03:39, Kaiwang Chen wrote:
>>
>> The cache dir is around 40GB, much less than the limit 128GB, looks
>> like bug 3068 is a different problem? We are storing small files,
>> average size being around 80KB.
>
> Bug 3068 is about both the max and current size values being stored in
> 32-bit integers and the resulting math problems when either becomes
> negative. Your cache_mem display making this clear.
>
>
> One extra though comes back to memory. In the last round of fixes for this
> 2x sizing complaint it was uncovered that memory pools were broken for
> 64-bit math in 3.1/3.2. You may try turning them off and see if that alters
> anything for the better.
>
>>
>> 2010/10/23 Amos Jeffries<squid3_at_treenet.co.nz>:
>>>
>>> On 22/10/10 04:07, Kaiwang Chen wrote:
>>>>
>>>> Amos,
>>>>
>>>> The cache size is configured around 128GB, as reported by mgr:config:
>>>> cache_dir aufs /export/squid/cache 131072 32 256 IOEngine=DiskThreads
>>>> cache_swap_low 90
>>>> cache_swap_high 95
>>>> cache_mem -1073741824 bytes
>>>> memory_replacement_policy lru
>>>> cache_replacement_policy lru
>>>> memory_pools on
>>>> memory_pools_limit 5242880 bytes
>>>
>>> You have probably hit bug
>>> http://bugs.squid-cache.org/show_bug.cgi?id=3068
>>>
>>> There is a patch in the report waiting feedback. If you can test it and
>>> see
>>> if it fixes your problem please
>
> Amos
> --
> Please be using
> �Current Stable Squid 2.7.STABLE9 or 3.1.8
> �Beta testers wanted for 3.2.0.2
>
Received on Mon Oct 25 2010 - 11:03:22 MDT

This archive was generated by hypermail 2.2.0 : Mon Oct 25 2010 - 12:00:02 MDT