Move obj.hits to the objcore?

Federico Schwindt fgsch at lodoss.net
Wed Oct 22 18:34:49 CEST 2014


+1

Current behaviour is rather broken.
On 22 Oct 2014 17:28, "Dag Haavi Finstad" <daghf at varnish-software.com>
wrote:

> Hi
>
> At the Varnish Summit in Paris last week, we got some feedback from a
> few early adopters of Varnish 4.0, who were very surprised with the
> new behavior of obj.hits.
>
> To understand obj.hits in its current form, we need to understand the
> concept of an objhead, which is fairly esoteric knowledge, and
> something most users aren't familiar with. Also, I find that obj.hits
> currently simply is not very useful.
>
> I have attached a patch that moves the obj.hits counter to struct
> objcore. This should give the old 3.0 functionality, where obj.hits is
> separate for each object. The cost of this turns out to be (on my
> computer) and extra 8 bytes per OC (and 8 less per OH), which IMO is
> manageable.
>
> Regards,
> Dag
>
> --
> Dag Haavi Finstad
> Software Developer | Varnish Software
> Mobile: +47 476 64 134
> We Make Websites Fly!
>
> _______________________________________________
> varnish-dev mailing list
> varnish-dev at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20141022/2caaa21c/attachment.html>


More information about the varnish-dev mailing list