Re: SMP cache memory

From: Marcos A. Dzieva <dzieva_at_gmail.com>
Date: Wed, 25 Sep 2013 21:49:57 -0300

>FYI: The shared memory cache cannot store objects exceeding 32KB in
>size. The pending Large Rock changes will remove that limitation.
When LargeRockStore be ready?

It seems that when using workers and cache_dir aufs ... objects larger than
32K had not been in cache memory, remained only on hard disk.
And the objects larger than 32K being written by cache_dir aufs ... not
share the memory cache?

>What do two cache manager mgr:storedir queries, sent a few hours apart,
>show? Does the memory cache grow? Does Squid think the shared memory
>cache is full?

mgr:storedir
Shared Memory Cache
Maximum Size: 26214400 KB
Maximum entries: 819200
Current entries: 477472 58.29%

HTH,
Dzieva.

-----Mensagem Original-----
From: Alex Rousskov
Sent: Wednesday, September 25, 2013 4:42 PM
To: squid-dev_at_squid-cache.org
Cc: Marcos A. Dzieva
Subject: Re: SMP cache memory

On 09/25/2013 08:56 AM, Marcos A. Dzieva wrote:

> Because my machine squid does not use the entire memory (cache_mem 25600
> MB), + - 3GB is used?

This sounds like a squid-users@ question rather than a squid-dev@ one,
but is it possible that your traffic just does not have enough objects
between 1KB and 32KB in size to fill 25GB of RAM cache? One way to test
that theory is to study access logs. Another is to start Squid without
workers but lower the maximum_object_size_in_memory limit to 32KB to
mimic the shared memory cache limitation.

> memory_replacement_policy heap GDSF

FYI: The above has no effect on shared memory cache.

> maximum_object_size_in_memory 10240 KB

FYI: The shared memory cache cannot store objects exceeding 32KB in
size. The pending Large Rock changes will remove that limitation.

What do two cache manager mgr:storedir queries, sent a few hours apart,
show? Does the memory cache grow? Does Squid think the shared memory
cache is full?

HTH,

Alex.
Received on Thu Sep 26 2013 - 00:50:01 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 26 2013 - 12:00:10 MDT