pass uses higher cpu than hit

Per Buer perbu at varnish-software.com
Thu May 21 08:48:03 CEST 2015


On Wed, May 20, 2015 at 7:20 PM, kioto mitsubisi <reader_1000 at hotmail.com>
wrote:

> (the worst email quoting I've even seen :-)
>


The reason why Varnish uses more CPU when pass'ing requests is because it
is a lot more work. A cache hit is delivered directly from (virtual) memory
- in most cases physical memory. So, a cache hit is just a writev() and
that is it, more or less.

With a pass you have to fetch it over the network and that involves another
TCP connection, talking to a remote server, parsing stuff, storing it
memory and then dumping it onto the connection.

So this behavior is expected.

-- 
*Per Buer*
CTO | Varnish Software AS
Cell: +47 95839117
We Make Websites Fly!
www.varnish-software.com
[image: Register now]
<http://info.varnish-software.com/varnish-summits-autumn-2014-registration>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20150521/e76f32b2/attachment.html>


More information about the varnish-misc mailing list