[Varnish] #275: Varnish child stops responding

Varnish varnish-bugs at projects.linpro.no
Sat Jul 19 16:54:06 CEST 2008


#275: Varnish child  stops responding
---------------------------------+------------------------------------------
 Reporter:  chenxy               |        Owner:  phk                      
     Type:  defect               |       Status:  new                      
 Priority:  high                 |    Milestone:  Varnish 2.0 code complete
Component:  varnishd             |      Version:  trunk                    
 Severity:  normal               |   Resolution:                           
 Keywords:  Varnish child stuck  |  
---------------------------------+------------------------------------------
Comment (by chenxy):

 I changed the running's parameters
 {{{
         varnishd -F -a 0.0.0.0:80 -f /usr/local/etc/vcl.conf \
               -u nobody -g nobody \
               -T 10.71.5.25:8080 \
               -s file,/data0/varnish/v,16G \
               -s file,/data1/varnish/v,16G \
               -s file,/data2/varnish/v,16G \
               -s file,/data3/varnish/v,16G \
               -w 200,600,600 \
               -h classic,500009 \
               -p thread_pools=4 \
               -p sess_workspace=16384 -p listen_depth=4096 \
               -p lru_interval=3600 \
               -p ping_interval=10 >> $logdir/varnish.out 2>&1
 }}}
 set thread_pool_max=600
 but stops responding again.

 threads are usually around 300

 {{{

 last pid: 38078;  load averages:  0.03,  0.08,  0.11
 up 127+10:26:46 22:48:48
 232 processes: 1 running, 231 sleeping
 CPU states:  3.2% user,  0.0% nice,  2.1% system,  2.1% interrupt, 92.7%
 idle
 Mem: 2897M Active, 348M Inact, 530M Wired, 141M Cache, 214M Buf, 3924K
 Free
 Swap: 8192M Total, 50M Used, 8142M Free

   PID USERNAME    THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU
 COMMAND
 20890 nobody      207  96    0 66092M  3057M ucond  0  96:16  0.78%
 varnishd
   611 root          1  96    0 10600K   752K select 0   2:05  0.00%
 sendmail
 52548 root          1   8    0  6248K   380K wait   0   1:54  0.00% sh
 93614 root          2  -8    0 10844K  1784K piperd 1   1:03  0.00%
 cfexecd
   739 root          1   8    0  5736K   380K nanslp 1   0:35  0.00% cron
   509 root          1  96    0  4684K   384K select 1   0:19  0.00%
 syslogd
   733 smmsp         1  20    0 10600K   584K pause  0   0:02  0.00%
 sendmail
 18982 root          1  96    0 92336K 82908K select 0   0:00  0.00%
 varnishd
 38068 xiaoyong      1  96    0  7692K  2104K CPU1   0   0:00  0.00% top
 ......

 }}}


 Replying to [comment:1 phk]:
 > In all likelyhood 3000 threads is waaay to many and the system is
 probably dyign trying to create that many.
 >
 > check in varnishstat how many threads you have on average, and set the
 max to 150% of that number.

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/275#comment:3>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list