<div><div style>Hi</div><div style><br></div><div style>here you can see outputs  from  top, and varnishstat -1</div><div style><br></div><div style>top:</div><div style><div>12792 nobody    20   0 5639m 3.6g 3.4g S   13<font color="#ff0000">  94.3 </font>  2:01.63 varnishd                                                  </div>
<div>      </div></div><div style><br></div><div style><br></div><div style><br></div><div style><div>root@varnish:~# varnishstat -1 </div><div>client_conn            259312       158.89 Client connections accepted</div><div>
client_drop                 0         0.00 Connection dropped, no sess/wrk</div><div>client_req             259212       158.83 Client requests received</div><div>cache_hit               33921        20.78 Cache hits</div>
<div>cache_hitpass               0         0.00 Cache hits for pass</div><div>cache_miss             225291       138.05 Cache misses</div><div>backend_conn            43774        26.82 Backend conn. success</div><div>backend_unhealthy            0         0.00 Backend conn. not attempted</div>
<div>backend_busy                0         0.00 Backend conn. too many</div><div>backend_fail                0         0.00 Backend conn. failures</div><div>backend_reuse          181617       111.28 Backend conn. reuses</div>
<div>backend_toolate             0         0.00 Backend conn. was closed</div><div>backend_recycle        181617       111.28 Backend conn. recycles</div><div>backend_unused              0         0.00 Backend conn. unused</div>
<div>fetch_head                  0         0.00 Fetch head</div><div>fetch_length           225291       138.05 Fetch with Length</div><div>fetch_chunked               0         0.00 Fetch chunked</div><div>fetch_eof                   0         0.00 Fetch EOF</div>
<div>fetch_bad                   0         0.00 Fetch had bad headers</div><div>fetch_close                 0         0.00 Fetch wanted close</div><div>fetch_oldhttp               0         0.00 Fetch pre HTTP/1.1 closed</div>
<div>fetch_zero                  0         0.00 Fetch zero len</div><div>fetch_failed                0         0.00 Fetch failed</div><div>n_sess_mem                351          .   N struct sess_mem</div><div>n_sess                    102          .   N struct sess</div>
<div>n_object               220554          .   N struct object</div><div>n_vampireobject             0          .   N unresurrected objects</div><div>n_objectcore           220557          .   N struct objectcore</div><div>
n_objecthead           216397          .   N struct objecthead</div><div>n_smf                  441172          .   N struct smf</div><div>n_smf_frag                  0          .   N small free smf</div><div>n_smf_large                 2          .   N large free smf</div>
<div>n_vbe_conn                100          .   N struct vbe_conn</div><div>n_wrk                     121          .   N worker threads</div><div>n_wrk_create              169         0.10 N worker threads created</div><div>
n_wrk_failed                0         0.00 N worker threads not created</div><div>n_wrk_max              951160       582.82 N worker threads limited</div><div>n_wrk_queue                 0         0.00 N queued work requests</div>
<div>n_wrk_overflow           2082         1.28 N overflowed work requests</div><div>n_wrk_drop                  0         0.00 N dropped work requests</div><div>n_backend                   1          .   N backends</div>
<div>n_expired                4737          .   N expired objects</div><div>n_lru_nuked                 0          .   N LRU nuked objects</div><div>n_lru_saved                 0          .   N LRU saved objects</div><div>
n_lru_moved             26276          .   N LRU moved objects</div><div>n_deathrow                  0          .   N objects on deathrow</div><div>losthdr                     0         0.00 HTTP header overflows</div><div>
n_objsendfile               0         0.00 Objects sent with sendfile</div><div>n_objwrite             259207       158.83 Objects sent with write</div><div>n_objoverflow               0         0.00 Objects overflowing workspace</div>
<div>s_sess                 259212       158.83 Total Sessions</div><div>s_req                  259212       158.83 Total Requests</div><div>s_pipe                      0         0.00 Total pipe</div><div>s_pass                      0         0.00 Total pass</div>
<div>s_fetch                225291       138.05 Total fetch</div><div>s_hdrbytes          119525246     73238.51 Total header bytes</div><div>s_bodybytes        2748370979   1684050.84 Total body bytes</div><div>sess_closed            259212       158.83 Session Closed</div>
<div>sess_pipeline               0         0.00 Session Pipeline</div><div>sess_readahead              0         0.00 Session Read Ahead</div><div>sess_linger                 0         0.00 Session Linger</div><div>sess_herd                   0         0.00 Session herd</div>
<div>shm_records          21397311     13111.10 SHM records</div><div>shm_writes            1445766       885.89 SHM writes</div><div>shm_flushes                27         0.02 SHM flushes due to overflow</div><div>shm_cont                 9812         6.01 SHM MTX contention</div>
<div>shm_cycles                  9         0.01 SHM cycles through buffer</div><div>sm_nreq                450644       276.13 allocator requests</div><div>sm_nobj                441170          .   outstanding allocations</div>
<div>sm_balloc          3777261568          .   bytes allocated</div><div>sm_bfree            743198720          .   bytes free</div><div>sma_nreq                    0         0.00 SMA allocator requests</div><div>sma_nobj                    0          .   SMA outstanding allocations</div>
<div>sma_nbytes                  0          .   SMA outstanding bytes</div><div>sma_balloc                  0          .   SMA bytes allocated</div><div>sma_bfree                   0          .   SMA bytes free</div><div>
sms_nreq                    0         0.00 SMS allocator requests</div><div>sms_nobj                    0          .   SMS outstanding allocations</div><div>sms_nbytes                  0          .   SMS outstanding bytes</div>
<div>sms_balloc                  0          .   SMS bytes allocated</div><div>sms_bfree                   0          .   SMS bytes freed</div><div>backend_req            225390       138.11 Backend requests made</div><div>
n_vcl                       1         0.00 N vcl total</div><div>n_vcl_avail                 1         0.00 N vcl available</div><div>n_vcl_discard               0         0.00 N vcl discarded</div><div>n_purge                     1          .   N total active purges</div>
<div>n_purge_add                 2         0.00 N new purges added</div><div>n_purge_retire              1         0.00 N old purges deleted</div><div>n_purge_obj_test            0         0.00 N objects tested</div><div>
n_purge_re_test             0         0.00 N regexps tested against</div><div>n_purge_dups                0         0.00 N duplicate purges removed</div><div>hcb_nolock             259312       158.89 HCB Lookups without lock</div>
<div>hcb_lock               217430       133.23 HCB Lookups with lock</div><div>hcb_insert             217428       133.23 HCB Inserts</div><div>esi_parse                   0         0.00 Objects ESI parsed (unlock)</div>
<div>esi_errors                  0         0.00 ESI parse errors (unlock)</div><div>accept_fail                 0         0.00 Accept failures</div><div>client_drop_late            0         0.00 Connection dropped late</div>
<div>uptime                   1632         1.00 Client uptime</div></div></div><div><br></div><br><br><div class="gmail_quote">On 2 May 2012 12:31, Tollef Fog Heen <span dir="ltr"><<a href="mailto:tfheen@varnish-software.com" target="_blank">tfheen@varnish-software.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">]] shahab bakhtiyari<br>
<br>
Hi,<br>
<div class="im"><br>
> what am I doing wrong? is there a way prohibit that or at least tell<br>
> varnish not to use the whole cache?<br>
<br>
</div>Please provide the output of varnishstat -1 when it's using more than<br>
the allocated amount of resources and we might be able to figure out<br>
what's wrong.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Tollef Fog Heen<br>
Technical lead, Varnish Software<br>
t: <a href="tel:%2B47%2021%2098%2092%2064" value="+4721989264">+47 21 98 92 64</a><br>
</font></span></blockquote></div><br>