MTX_CONTESTS

Artur Bergman sky at crucially.net
Tue Apr 20 22:42:14 CEST 2010


Hey,

I just upgraded to 2.1 and noticed the following, two servers getting  
identical traffic, 2.1 was getting about 3.5x more MTX_CONTESTS than  
2.0.6


2.0.6

time varnishlog | grep -i MTX_CONTEST | head -1000 | cut -c 22- | sort  
| uniq -c | sort -rn
     603 "MTX_CONTEST(smf_alloc,storage_file.c,633,&sc->mtx)"
     135 "MTX_CONTEST(smf_trim,storage_file.c,676,&sc->mtx)"
     125 "MTX_CONTEST(smf_free,storage_file.c,698,&sc->mtx)"
      69 "MTX_CONTEST(BAN_NewObj,cache_ban.c,444,&ban_mtx)"
      38 "MTX_CONTEST(EXP_Insert,cache_expire.c,188,&exp_mtx)"
      13 "MTX_CONTEST(SES_Charge,cache_session.c,242,&stat_mtx)"
       3 "MTX_CONTEST(exp_timer,cache_expire.c,343,&exp_mtx)"
       3 "MTX_CONTEST(BAN_DestroyObj,cache_ban.c,477,&ban_mtx)"
       2 "MTX_CONTEST(wrk_thread,cache_pool.c,314,&wq[u]->mtx)"
       2 "MTX_CONTEST(VBE_new_bereq,cache_backend.c,150,&VBE_mtx)"
       2 "MTX_CONTEST(VBE_free_bereq,cache_backend.c,185,&VBE_mtx)"
       2 "MTX_CONTEST(exp_timer,cache_expire.c,288,&exp_mtx)"
       1 "MTX_CONTEST(VBE_RecycleFd,cache_backend.c,387,&b->mtx)"
       1 "MTX_CONTEST(VBE_GetVbe,cache_backend.c,303,&b->mtx)"
       1 "MTX_CONTEST(EXP_Rearm,cache_expire.c,249,&exp_mtx)"

real	0m24.915s
user	0m5.723s
sys	0m0.051s



2.1.0

root at varnish-s1:~# time varnishlog | grep -i MTX_CONTEST | head -1000  
| cut -c 22- | sort | uniq -c | sort -rn
     418 "MTX_CONTEST(smf_alloc,storage_file.c,469,&sc->mtx)"
     207 "MTX_CONTEST(smf_free,storage_file.c,534,&sc->mtx)"
     170 "MTX_CONTEST(hcb_lookup,hash_critbit.c,454,&hcb_mtx)"
     158 "MTX_CONTEST(smf_trim,storage_file.c,512,&sc->mtx)"
      12 "MTX_CONTEST(BAN_NewObj,cache_ban.c,367,&ban_mtx)"
       8 "MTX_CONTEST(hcb_deref,hash_critbit.c,408,&hcb_mtx)"
       7 "MTX_CONTEST(EXP_Insert,cache_expire.c,138,&exp_mtx)"
       7 "MTX_CONTEST(BAN_DestroyObj,cache_ban.c,401,&ban_mtx)"
       2 "MTX_CONTEST(exp_timer,cache_expire.c,265,&exp_mtx)"
       1 "MTX_CONTEST(wrk_thread_real,cache_pool.c,197,&wq[u]->mtx)"
       1 "MTX_CONTEST(WRK_SumStat,cache_pool.c,112,&wstat_mtx)"
       1 "MTX_CONTEST(WRK_Queue,cache_pool.c,255,&wq[u]->mtx)"
       1 "MTX_CONTEST(VBE_ReleaseConn,cache_backend.c,87,&VBE_mtx)"
       1 "MTX_CONTEST(vbe_Healthy,cache_backend.c,279,&b->mtx)"
       1 "MTX_CONTEST(vbe_GetVbe,cache_backend.c,326,&b->mtx)"
       1 "MTX_CONTEST(VBE_DropRefConn,cache_backend_cfg.c,146,&b->mtx)"
       1 "MTX_CONTEST(HSH_Deref,cache_hash.c,639,&oh->mtx)"
       1 "MTX_CONTEST(hcb_lookup,hash_critbit.c,435,&oh->mtx)"
       1 "MTX_CONTEST(EXP_Rearm,cache_expire.c,224,&exp_mtx)"
       1 "MTX_CONTEST(EXP_NukeOne,cache_expire.c,339,&exp_mtx)"

real	0m7.537s
user	0m1.783s
sys	0m0.040s


Artur







More information about the varnish-dev mailing list