Re: [squid-users] Caching in forward proxy mode

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 25 Apr 2012 14:56:03 +1200

On 25/04/2012 1:40 a.m., Ahmed Talha Khan wrote:
> On Tue, Apr 24, 2012 at 5:37 PM, Amos Jeffries<squid3_at_treenet.co.nz> wrote:
>> On 24/04/2012 10:32 p.m., Ahmed Talha Khan wrote:
>>> Hey All,
>>>
>>> Does squid cache web-pages when configured in the forward interception
>>> proxy mode i.e http_port x:y intercept.? If so how can it be turned
>>> off.?
>>
>> "cache deny all" does what you ask.
>>
>>
>>> I actually want to bench-mark squid performance in terms of
>>> requests-per-second that squid can support.
>>
>> Disabling caching will not tell you that. It will tell you the average speed
>> of Squid under DoS or worst-case traffic conditions. ie the minimum
>> capacity.
> In a way, i am actually interested in the capacity of squid. I do not
> want to include the cache functionality of the proxy. Not including
> the cache will mean what numbers squid can support when all requests
> are distinct, when the request/response are all new i.e no CACHE_HIT.
> So every time squid has to go to the origin and pull the full body
> data.
>
> Servicing data of the cache is a big advantage of squid. But we need
> to see the performance of squid without cache if we need to see the
> data-path latency(or lower requests/sec) introduced by squid. Cache
> add a negative time factor to improve the latency.
>
> Comments...

Your testing will likely show otherwise. Compare the speed of a config
of "cache deny all" with a config having no cache lines ("cache" or
"cache_dir") but some space for mem_cache. Most people find that much
faster than not caching.

Amos
Received on Wed Apr 25 2012 - 02:56:07 MDT

This archive was generated by hypermail 2.2.0 : Wed Apr 25 2012 - 12:00:03 MDT