Difference between n_object, n_objectcore & n_objecthead

Guillaume Quintard guillaume at varnish-software.com
Wed Feb 3 09:49:06 CET 2016

>From bin/varnishd/cache/cache_hash.c:

 * We have two kinds of structures, objecthead and object.  An objecthead
 * corresponds to a given (Host:, URL) tupple, and the objects hung from
 * the objecthead may represent various variations (ie: Vary: header,
 * different TTL etc) instances of that web-entity.

And from bin/varnishd/cache/cache.h:

/* Object core structure ---------------------------------------------

 * Objects have sideways references in the binary heap and the LRU list

 * and we want to avoid paging in a lot of objects just to move them up

 * or down the binheap or to move a unrelated object on the LRU list.

 * To avoid this we use a proxy object, objcore, to hold the relevant

 * housekeeping fields parts of an object.


Guillaume Quintard

On Fri, Jan 22, 2016 at 8:41 PM, Debraj Manna <subharaj.manna at gmail.com>

> Can someone point me to some doc where these stats are explained?
> On Jan 22, 2016 5:37 PM, "Debraj Manna" <subharaj.manna at gmail.com> wrote:
>> Hi,
>>    - What is the difference between n_object, n_objectcore &
>>    n_objecthead?
>>    - When the objects get expired (or the value of MAIN.n_expired changes)
>>    will the value of these counters reduce?
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20160203/715d30f9/attachment.html>

More information about the varnish-misc mailing list