[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-misc
Subject:    Re: Question about srcbody in VCL_conf
From:       Gordon Schmidt <gordon.schmidt () unister-gmbh ! de>
Date:       2012-07-31 13:07:31
Message-ID: 5017D893.9050306 () unister-gmbh ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 31.07.2012 11:37, Poul-Henning Kamp wrote:
> In message <5017A456.7090905@unister-gmbh.de>, Gordon Schmidt writes:
>
>>> It sounds really strange that this should have the performance
>>> effect you claim...
>> I didn't get the 8%-10% by minifying - the performance gain with
>> minified vcls is lower.
>> Just for testing, I removed the part in the vcc_compile.c responsable
>> for adding scrbody to the compiled object to get the full performance
>> improvement.
> The only thing you have done is remove the memory footprint by a
> few kilobytes.
>
> If that radically changes your performance it can only be because
> it allows you to operate entirely inside the L1/L2/L3 cache of your
> CPU.
>
> That would indicate that your benchmark is so trivially simple that
> it is invalid for any realistisk workload with more than one URL.
I haven't said anything different. The test is simple as i already 
stated in my very first post.

Still - an option to reduce the memory footprint, when the additional 
data is not needed, would be nice.

Btw. the situation becomes relevant, when you have one or only few 
resources that are not cachable and will hit much more frequently than 
all the other resources.

Regards
Gordon

-- 
E-Mail-Signatur

*Gordon Schmidt*
Softwareentwickler - QA

Unister GmbH
Barfußgässchen 11 | 04109 Leipzig

Telefon: +49 (0)341 65050 - 25757
gordon.schmidt@unister.de <mailto:gordon.schmidt@unister.de>
www.unister.de <http://www.unister.de>

Vertretungsberechtigter Geschäftsführer: Thomas Wagner
Amtsgericht Leipzig, HRB: 19056


[Attachment #5 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 31.07.2012 11:37, Poul-Henning Kamp
      wrote:<br>
    </div>
    <blockquote cite="mid:7085.1343727436@critter.freebsd.dk"
      type="cite">
      <pre wrap="">In message <a class="moz-txt-link-rfc2396E" \
href="mailto:5017A456.7090905@unister-gmbh.de">&lt;5017A456.7090905@unister-gmbh.de&gt;</a>, \
Gordon Schmidt writes:

</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">It sounds really strange that this should have the performance
effect you claim...
</pre>
        </blockquote>
        <pre wrap="">I didn't get the 8%-10% by minifying - the performance gain with \
 minified vcls is lower.
Just for testing, I removed the part in the vcc_compile.c responsable 
for adding scrbody to the compiled object to get the full performance 
improvement.
</pre>
      </blockquote>
      <pre wrap="">
The only thing you have done is remove the memory footprint by a
few kilobytes.

If that radically changes your performance it can only be because
it allows you to operate entirely inside the L1/L2/L3 cache of your
CPU.

That would indicate that your benchmark is so trivially simple that
it is invalid for any realistisk workload with more than one URL.
</pre>
    </blockquote>
    I haven't said anything different. The test is simple as i already
    stated in my very first post.<br>
    <br>
    Still - an option to reduce the memory footprint, when the
    additional data is not needed, would be nice.<br>
    <br>
    Btw. the situation becomes relevant, when you have one or only few
    resources that are not cachable and will hit much more frequently
    than all the other resources.<br>
    <br>
    Regards<br>
    Gordon<br>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <title>E-Mail-Signatur</title>
      <style type="text/css">
            body {background:#FFF; font:11px/15px Arial, Helvetica, sans-serif;}
            p {margin-bottom:10px;}
            a {text-decoration:none; color:#00c;}
        </style>
      <p> <b>Gordon Schmidt</b><br>
        Softwareentwickler - QA </p>
      <p> Unister GmbH<br>
        Barfu&szlig;g&auml;sschen 11 | 04109 Leipzig </p>
      <p> Telefon: +49 (0)341 65050 - 25757<br>
        <a href="mailto:gordon.schmidt@unister.de">gordon.schmidt@unister.de</a><br>
        <a href="http://www.unister.de">www.unister.de</a> </p>
      <p> Vertretungsberechtigter Gesch&auml;ftsf&uuml;hrer: Thomas Wagner<br>
        Amtsgericht Leipzig, HRB: 19056 </p>
    </div>
  </body>
</html>



_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic