[Varnish] #114: Interger overflow in varnishstat

Varnish varnish-bugs at projects.linpro.no
Mon Jun 11 23:28:18 CEST 2007


#114: Interger overflow in varnishstat
-------------------------+--------------------------------------------------
 Reporter:  AndreasR     |       Owner:  phk  
     Type:  defect       |      Status:  new  
 Priority:  normal       |   Milestone:       
Component:  varnishstat  |     Version:  1.0.4
 Severity:  minor        |    Keywords:       
-------------------------+--------------------------------------------------
 I have a question about measuring bandwith usage with varnishstat.
 I would expect 'Total header bytes' and 'Total header bytes' to be
 the total number of bytes sent to clients since varnishd was started?
 Measuring these numbers at different points in time could therefore be
 used to calculate the bandwith usage. So here are my measurements:

 * Initial values:
 556874988  Total header bytes
 20238688347  Total body bytes

 * 75 minutes later:
 848969031  Total header bytes
 30800272652  Total body bytes

 The problem is that the correct values are 40 times larger
 than what I get from varnishstat. So is this a bug in varnishstat?
 I notice that the total body bytes is larger than 2^32, perhaps there is
 an integer overflow somewhere?

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/114>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list