On 18/08/11 22:53, Kaiwang Chen wrote:
> 2011/8/18 Amos Jeffries<squid3_at_treenet.co.nz>:
>> On 18/08/11 19:40, Drunkard Zhang wrote:
>>>
>>> 2011/8/18 Chen Bangzhong:
>>>>
<snip>
>>>
>>>> I don't know why there are so many disk writes and there are so many
>>>> objects on disk.
>>
>> All traffic goes through either RAM cache or if its bigger than
>> maximum_object_size_in_memory will go through disks.
>>
>> From that info report ~60% of your traffic bytes are MISS responses. A large
>> portion of that MISS traffic is likely not storable, so will be written to
>> cache then discarded immediately. Squid is overall mostly-write with its
>> disk behaviour.
>
> Will a "cache deny" matching those non-storable objects suppress
> storing them to disk?
> And HTTP header 'Cache-Control: no-store' ?
"no-store" header and "cache deny" directive have the same effect on
your Squid. Both erase existing stored objects and erase the newely
received one _after_ it is finished transfer.
The difference is that the header applies everywhere receiving the
object. The cache access control is limited to that one Squid instance
testing it.
Amos
-- Please be using Current Stable Squid 2.7.STABLE9 or 3.1.14 Beta testers wanted for 3.2.0.10Received on Thu Aug 18 2011 - 13:13:02 MDT
This archive was generated by hypermail 2.2.0 : Thu Aug 18 2011 - 12:00:04 MDT