[Varnish] #1183: n_wrk_max has a random initial value

Varnish varnish-bugs at varnish-cache.org
Wed Aug 8 08:54:55 CEST 2012


#1183: n_wrk_max has a random initial value
----------------------+--------------------
 Reporter:  dlec      |       Owner:
     Type:  defect    |      Status:  new
 Priority:  low       |   Milestone:
Component:  varnishd  |     Version:  3.0.2
 Severity:  minor     |  Resolution:
 Keywords:            |
----------------------+--------------------
Description changed by phk:

Old description:

> I seem to get a random initial value for n_wrk_max with varnishstat,
> while I expect a value of zero.
>
> # /etc/init.d/varnish restart
> # varnishstat -1 | grep max
> n_wrk_max               349675     17483.75 N worker threads limited
> # /etc/init.d/varnish restart
> # varnishstat -1 | grep max
> n_wrk_max               314399    314399.00 N worker threads limited
> # /etc/init.d/varnish restart
> # varnishstat -1 | grep max
> n_wrk_max                 2384          inf N worker threads limited
> # /etc/init.d/varnish restart
> # varnishstat -1 | grep max
> n_wrk_max                 2146       357.67 N worker threads limited
> # /etc/init.d/varnish restart
> # varnishstat -1 | grep max
> n_wrk_max               281910          inf N worker threads limited
> # /etc/init.d/varnish restart
> # varnishstat -1 | grep max
> n_wrk_max               254622          inf N worker threads limited
> # /etc/init.d/varnish restart
> # varnishstat -1 | grep max
> n_wrk_max               354177          inf N worker threads limited
> # /etc/init.d/varnish restart
> # varnishstat -1 | grep max
> n_wrk_max                    0         0.00 N worker threads limited
>

> command: /usr/sbin/varnishd -P /var/run/varnish.pid -a :80 -f
> /etc/varnish/varnish.vcl -T 127.0.0.1:6082 -t 120 -w 1250,1500,120 -p
> thread_pool_add_delay 1 -p thread_pools 4 -p sess_timeout 5 -u varnish -g
> varnish -s Transient=malloc,200M -s malloc,8G
>
> source: http://repo.varnish-
> cache.org/source/varnish-3.0.2-streaming.tar.gz
>
> os: CentOS 5.8 x86_64
>
> hw: vm (VMware ESX 4.1), 10 GB, 4 vCPU

New description:

 I seem to get a random initial value for n_wrk_max with varnishstat, while
 I expect a value of zero.
 {{{
 # /etc/init.d/varnish restart
 # varnishstat -1 | grep max
 n_wrk_max               349675     17483.75 N worker threads limited
 # /etc/init.d/varnish restart
 # varnishstat -1 | grep max
 n_wrk_max               314399    314399.00 N worker threads limited
 # /etc/init.d/varnish restart
 # varnishstat -1 | grep max
 n_wrk_max                 2384          inf N worker threads limited
 # /etc/init.d/varnish restart
 # varnishstat -1 | grep max
 n_wrk_max                 2146       357.67 N worker threads limited
 # /etc/init.d/varnish restart
 # varnishstat -1 | grep max
 n_wrk_max               281910          inf N worker threads limited
 # /etc/init.d/varnish restart
 # varnishstat -1 | grep max
 n_wrk_max               254622          inf N worker threads limited
 # /etc/init.d/varnish restart
 # varnishstat -1 | grep max
 n_wrk_max               354177          inf N worker threads limited
 # /etc/init.d/varnish restart
 # varnishstat -1 | grep max
 n_wrk_max                    0         0.00 N worker threads limited
 }}}

 command: /usr/sbin/varnishd -P /var/run/varnish.pid -a :80 -f
 /etc/varnish/varnish.vcl -T 127.0.0.1:6082 -t 120 -w 1250,1500,120 -p
 thread_pool_add_delay 1 -p thread_pools 4 -p sess_timeout 5 -u varnish -g
 varnish -s Transient=malloc,200M -s malloc,8G

 source: http://repo.varnish-
 cache.org/source/varnish-3.0.2-streaming.tar.gz

 os: CentOS 5.8 x86_64

 hw: vm (VMware ESX 4.1), 10 GB, 4 vCPU

--

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1183#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list