Re: [squid-users] With Rock storage, it seems an object can not be copied from disk cache to memory cache after a restart

2017-10-31 Thread duanyao
在 2017/11/1 上午11:27, Alex Rousskov 写道: On 10/31/2017 08:03 PM, duanyao wrote: it seems an object can never be copied from disk cache to memory cache after a restart. Is this normal? No, I do not think this is "normal". I do not remember intentionally disabling such functionali

[squid-users] With Rock storage, it seems an object can not be copied from disk cache to memory cache after a restart

2017-10-31 Thread duanyao
ess deny all http_port 3128 cache_dir rock /home/duanyao/project/proxy/squid-root/var/cache/squid/rock 10 cache_effective_user duanyao ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users

Re: [squid-users] Unable to get TCP_MEM_HIT (just TCP_HIT) with rock storage

2017-10-19 Thread duanyao
-5-28704261 Email: elie...@ngtech.co.il -Original Message- From: squid-users [mailto:squid-users-boun...@lists.squid-cache.org] On Behalf Of duanyao Sent: Tuesday, October 17, 2017 07:31 To: squid-users@lists.squid-cache.org Subject: [squid-users] Unable to get TCP_MEM_HIT (just TCP_HI

Re: [squid-users] Unable to get TCP_MEM_HIT (just TCP_HIT) with rock storage

2017-10-18 Thread duanyao
在 2017/10/19 上午11:59, Alex Rousskov 写道: On 10/18/2017 09:37 PM, duanyao wrote: Maybe I can implement ignoring "Vary: Accept-Encoding" as an option, it looks relatively simple. It is probably simple indeed. One caveat: If you want your changes to be officially accepted, then you m

Re: [squid-users] Unable to get TCP_MEM_HIT (just TCP_HIT) with rock storage

2017-10-18 Thread duanyao
在 2017/10/18 下午11:17, Alex Rousskov 写道: On 10/17/2017 11:48 PM, duanyao wrote: 在 2017/10/18 上午12:23, Alex Rousskov 写道: The shared memory cache does not support caching of Vary-controlled responses yet. I guess this issue will unlikely be fixed any time soon. The timing of adding Vary caching

Re: [squid-users] Unable to get TCP_MEM_HIT (just TCP_HIT) with rock storage

2017-10-17 Thread duanyao
在 2017/10/18 上午12:23, Alex Rousskov 写道: On 10/16/2017 10:30 PM, duanyao wrote: When I test squid with rock storage, I have never got a TCP_MEM_HIT (just TCP_HIT) in access.log. Is this normal, or something is mis-configured? Neither :-). You are testing with a Vary-controlled response. The

Re: [squid-users] Is it safe to resize a rock storage file?

2017-10-17 Thread duanyao
在 2017/10/16 下午10:59, Alex Rousskov 写道: On 10/16/2017 06:26 AM, duanyao wrote: Is it safe to resize a rock storage file as follow (while squid is not running)? 1) Increase a rock storage file by increasing the size specified in the configuration file; I would recommend running truncate after

Re: [squid-users] Unable to get TCP_MEM_HIT (just TCP_HIT) with rock storage

2017-10-17 Thread duanyao
在 2017/10/18 上午12:23, Alex Rousskov 写道: On 10/16/2017 10:30 PM, duanyao wrote: When I test squid with rock storage, I have never got a TCP_MEM_HIT (just TCP_HIT) in access.log. Is this normal, or something is mis-configured? Neither :-). You are testing with a Vary-controlled response. The

[squid-users] Is it safe to resize a rock storage file?

2017-10-16 Thread duanyao
Hi, Is it safe to resize a rock storage file as follow (while squid is not running)? 1) Increase a rock storage file by increasing the size specified in the configuration file; 2) Decrease a rock storage file by decreasing the size specified in the configuration file and run `truncate --si

[squid-users] Is it a good idea to use Linux swap partition/file with rock storage?

2017-09-18 Thread duanyao
Hi, I notice that squid's rock storage uses large (and fixed) amount of shared memory even if it is not accessed. It's estimated as 110byte/slot, so for a 256GB rock storage with 16KB slot, the memory requirement is about 1.7GB, which is quite large. So my questions are: 1. Is there a way t