[squid-users] Storage mem in 3.5.4, not sure what is happening
Sebastian Goicochea
sebag at vianetcon.com.ar
Thu May 21 15:07:55 UTC 2015
We've found the problem:
As we are only using just one worker, memory_cache_shared has to be off
when rock is enabled.
It wasn't clear at first because I interpreted that memory_cache_shared
could be on no matter how many workers you had or what fs were you using.
Thanks for your time,
Sebastian
El 20/05/15 a las 11:50, Sebastian Goicochea escribió:
> Hello Amos,
>
> Here's up time
> Start Time: Wed, 20 May 2015 14:33:02 GMT
> Current Time: Wed, 20 May 2015 14:41:46 GMT
>
> It's a short period of time because we've been restariting it.
>
> /var/run/squid and /dev/shm exist
>
> # ls /var/run/squid -1
> squid-coordinator.ipc
> squid-kid-1.ipc
> squid-kid-2.ipc
>
> # ls /dev/shm -1
> squid-cache1.p1.rock_map_anchors.shm
> squid-cache1.p1.rock_map_slices.shm
> squid-cache1.p1.rock_spaces.shm
> squid-cache_mem_ex.shm
> squid-cache_mem_map_anchors.shm
> squid-cache_mem_map_slices.shm
> squid-cache_mem_space.shm
> squid-cf__metadata.shm
> squid-cf__queues.shm
> squid-cf__readers.shm
> squid-io_file__metadata.shm
> squid-io_file__queues.shm
> squid-io_file__readers.shm
> squid-squid-page-pool.shm
>
> We've found something interesting: disabling rock gets hot objets out
> of 0 and we get MEM_HITs right away.
>
> Cache information for squid:
> Hits as % of all requests: 5min: 5.0%, 60min: 4.6%
> Hits as % of bytes sent: 5min: 10.7%, 60min: 8.8%
> Memory hits as % of hit requests: 5min: 36.6%, 60min: 36.9%
> Disk hits as % of hit requests: 5min: 38.3%, 60min: 40.7%
> Storage Swap size: 173674816 KB
> Storage Swap capacity: 19.7% used, 80.3% free
> Storage Mem size: 115528 KB
> Storage Mem capacity: 11.0% used, 89.0% free
> Mean Object Size: 526.13 KB
> Requests given to unlinkd: 0
>
> Internal Data Structures:
> 337773 StoreEntries
> 8536 StoreEntries with MemObjects
> 8382 Hot Object Cache Items
> 330097 on-disk objects
>
>
>
> Is there any relation between rock beeing active and storage mem?
>
>
> Thanks a lot,
> Sebastian
>
>
> El 20/05/15 a las 01:53, Amos Jeffries escribió:
>> On 20/05/2015 3:41 a.m., Sebastian Goicochea wrote:
>>> Hello everyone, we're having a problem, we updated from squid 3.5.3 to
>>> 3.5.4 (bellow are the configuration options) and enabled rock fs.
>>>
>>> The problem that arose is that I don't know if objects are being stored
>>> in RAM, but what I do know is that there are no MEM_HITs in the
>>> access.log file
>>>
>>>
>>> This is how I enabled rock:
>>> cache_dir rock /cache/rock 512 max-size=32768
>>>
>>>
>>> This is what I get from squidclient:
>> Whats the "Start Time" information displayed at the top of that report?
>> and does it remain unchanged across many minutes?
>>
>> I suspect that with no memory hits and sine 5min == 60min hits your
>> Squid may be in a cycle of crashes or assertions.
>>
>> NOTE: to enable rock and other SMP features you need /var/run/squid and
>> /dev/shm to exist. Some OS seem not to create or mount them by default.
>>
>> Amos
>>
>> _______________________________________________
>> squid-users mailing list
>> squid-users at lists.squid-cache.org
>> http://lists.squid-cache.org/listinfo/squid-users
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
More information about the squid-users
mailing list