[Varnish] #63: Overflow in varnishstat

Varnish varnish-bugs at projects.linpro.no
Mon Aug 13 21:40:40 CEST 2007


#63: Overflow in varnishstat
----------------------+-----------------------------------------------------
 Reporter:  ay        |        Owner:  des      
     Type:  defect    |       Status:  closed   
 Priority:  normal    |    Milestone:           
Component:  build     |      Version:           
 Severity:  normal    |   Resolution:  duplicate
 Keywords:  overflow  |  
----------------------+-----------------------------------------------------
Changes (by des):

  * status:  new => closed
  * resolution:  => duplicate

Old description:

> We have a varnish (svn as of 2006-11-01). Varnishstat sometimes displays
> the following.
>
> 00:00:21
> Hitrate ratio:       10      100      172
> Hitrate avg:     0.6604   0.7549   0.7820
>
>          172         1.98         8.19 Client connections accepted
>          548         2.97        26.10 Client requests received
>          369         0.99        17.57 Cache hits
>           10         0.99         0.48 Cache hits for pass
>          168         0.99         8.00 Cache misses
>          179         1.98         8.52 Backend connections initiated
>          166         5.94         7.90 Backend connections recycles
>            0         0.00         0.00 Backend connections unused
>           56         0.00         2.67 N struct srcaddr
>           17        -4.95         0.81 N active struct srcaddr
>           39         0.00         1.86 N struct sess_mem
>           26        -5.94         1.24 N struct sess
>          175         1.98         8.33 N struct object
>          175         1.98         8.33 N struct objecthead
>          165         2.97         7.86 N struct smf
>            2         0.00         0.10 N small free smf
>            2         0.00         0.10 N large free smf
>           13         0.00         0.62 N struct vbe_conn
>           16         0.00         0.76 N worker threads
>           16         0.00         0.76 N worker threads created
>            0         0.00         0.00 N worker threads not created
>            0         0.00         0.00 N worker threads limited
>            0         0.00         0.00 N queued work requests
>           16         0.00         0.76 N overflowed work requests
>            0         0.00         0.00 N dropped work requests
>            0         0.00         0.00 N expired objects
>            0         0.00         0.00 N objects on deathrow
>            0         0.00         0.00 HTTP header overflows
>          152         1.98         7.24 Objects sent with sendfile
>          200         1.98         9.52 Objects sent with write
> 12961350068190840473 -5431088062805240832.00 -261209238358033856.00 Total
> Sessions
> 12961349728888425753 -5431088398748528640.00 -261209254515291712.00 Total
> Requests
> 12961349728888426744 -5431088398748527616.00 -261209254515291648.00 Total
> pipe
> 12961349728888425316 -5431088398748528640.00 -261209254515291744.00 Total
> pass
> 12961350703846000415 -5431087433443130368.00 -261209208088740544.00 Total
> fetch
> 12961349728888564487 -5431088398748525568.00 -261209254515285088.00 Total
> header bytes
>
>     10715740    831115.60    510273.33 Total body bytes
>           37         1.98         1.76 Session Closed
>            0         0.00         0.00 Session Pipeline
>            0         0.00         0.00 Session Read Ahead
>          501         5.94        23.86 Session herd
>        23144       475.25      1102.10 SHM records
>         1125        31.68        53.57 SHM writes
>            0         0.00         0.00 SHM MTX contention
>
> That looks like an integer overflow
>
> Runing CentOS release 4.4 on Xen 3.0

New description:

 We have a varnish (svn as of 2006-11-01). Varnishstat sometimes displays
 the following.

 {{{
 00:00:21
 Hitrate ratio:       10      100      172
 Hitrate avg:     0.6604   0.7549   0.7820

          172         1.98         8.19 Client connections accepted
          548         2.97        26.10 Client requests received
          369         0.99        17.57 Cache hits
           10         0.99         0.48 Cache hits for pass
          168         0.99         8.00 Cache misses
          179         1.98         8.52 Backend connections initiated
          166         5.94         7.90 Backend connections recycles
            0         0.00         0.00 Backend connections unused
           56         0.00         2.67 N struct srcaddr
           17        -4.95         0.81 N active struct srcaddr
           39         0.00         1.86 N struct sess_mem
           26        -5.94         1.24 N struct sess
          175         1.98         8.33 N struct object
          175         1.98         8.33 N struct objecthead
          165         2.97         7.86 N struct smf
            2         0.00         0.10 N small free smf
            2         0.00         0.10 N large free smf
           13         0.00         0.62 N struct vbe_conn
           16         0.00         0.76 N worker threads
           16         0.00         0.76 N worker threads created
            0         0.00         0.00 N worker threads not created
            0         0.00         0.00 N worker threads limited
            0         0.00         0.00 N queued work requests
           16         0.00         0.76 N overflowed work requests
            0         0.00         0.00 N dropped work requests
            0         0.00         0.00 N expired objects
            0         0.00         0.00 N objects on deathrow
            0         0.00         0.00 HTTP header overflows
          152         1.98         7.24 Objects sent with sendfile
          200         1.98         9.52 Objects sent with write
 12961350068190840473 -5431088062805240832.00 -261209238358033856.00 Total
 Sessions
 12961349728888425753 -5431088398748528640.00 -261209254515291712.00 Total
 Requests
 12961349728888426744 -5431088398748527616.00 -261209254515291648.00 Total
 pipe
 12961349728888425316 -5431088398748528640.00 -261209254515291744.00 Total
 pass
 12961350703846000415 -5431087433443130368.00 -261209208088740544.00 Total
 fetch
 12961349728888564487 -5431088398748525568.00 -261209254515285088.00 Total
 header bytes

     10715740    831115.60    510273.33 Total body bytes
           37         1.98         1.76 Session Closed
            0         0.00         0.00 Session Pipeline
            0         0.00         0.00 Session Read Ahead
          501         5.94        23.86 Session herd
        23144       475.25      1102.10 SHM records
         1125        31.68        53.57 SHM writes
            0         0.00         0.00 SHM MTX contention
 }}}

 That looks like an integer overflow

 Runing CentOS release 4.4 on Xen 3.0

Comment:

 Duplicate of #54.

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


More information about the varnish-bugs mailing list