Ignore:
Timestamp:
2008-03-07 12:36:52 (6 years ago)
Author:
Poul-Henning Kamp <phk@…>
Branches:
2.0, 2.1, tags/varnish-2.0, tags/varnish-2.0-beta1, tags/varnish-2.0-beta1@3141, tags/varnish-2.0-beta2, tags/varnish-2.0-beta2@3221, tags/varnish-2.0-rc1, tags/varnish-2.0-rc1@3266, tags/varnish-2.0-tp1, tags/varnish-2.0-tp1@2734, tags/varnish-2.0-tp2, tags/varnish-2.0-tp2@2803, tags/varnish-2.0.1, tags/varnish-2.0.2, tags/varnish-2.0.3, tags/varnish-2.0.4, tags/varnish-2.0.5, tags/varnish-2.0.6, tags/varnish-2.1.0, tags/varnish-2.1.1, tags/varnish-2.1.2, tags/varnish-2.1.3, tags/varnish-2.1.4
Children:
907083c
Parents:
aae429
git-author:
Poul-Henning Kamp <phk@…> (2008-03-07 12:36:52)
git-committer:
Poul-Henning Kamp <phk@…> (2008-03-07 12:36:52)
Message:

Add diagnostic features to keep track of object workspace usage.

git-svn-id:  http://www.varnish-cache.org/svn/trunk@2560 d4fa192b-c00b-0410-8231-f00ffab90ce4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/varnishd/cache_hash.c

    raae429 r7b8b18f  
    286286 
    287287void 
    288 HSH_Unbusy(struct object *o) 
    289 { 
     288HSH_Unbusy(struct sess *sp) 
     289{ 
     290        struct object *o; 
    290291        struct objhead *oh; 
    291292        struct object *parent; 
    292293 
     294        CHECK_OBJ_NOTNULL(sp, SESS_MAGIC); 
     295        o = sp->obj; 
    293296        CHECK_OBJ_NOTNULL(o, OBJECT_MAGIC); 
    294297        assert(o->busy); 
    295298        assert(o->refcnt > 0); 
     299        if (o->ws_o->overflow) 
     300                VSL_stats->n_objoverflow++; 
     301        if (params->diag_bitmap & 0x40) 
     302                WSP(sp, SLT_Debug,  
     303                    "Object workspace used %u", WS_Used(o->ws_o)); 
     304         
    296305        oh = o->objhead; 
    297306        if (oh != NULL) { 
     
    356365        if (r != 0) 
    357366                return; 
     367 
     368        if (params->diag_bitmap & 0x40) 
     369                VSL(SLT_Debug, 0,  
     370                    "Object workspace max used %u", WS_Used(o->ws_o)); 
    358371 
    359372        if (o->vary != NULL) 
Note: See TracChangeset for help on using the changeset viewer.