[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#601723: linux-image-2.6.32-5-686: /proc/net/dev report incorrect bytes number (both TX and RX)



On Fri, 2010-10-29 at 11:20 +0200, Vincent-Xavier JUMEL wrote:
> Yes, here's a copy of /proc/net/dev
> 
> Inter-|   Receive                                                |  Transmit
>  face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
>     lo:   39347     427    0    0    0     0          0         0    39347     427    0    0    0     0       0          0
>   eth0:4118428167 559277053    0    0    0     0          0         0 3253821981 359669720    0    0    0     0       0          0

The problem is that network device statistics are limited to the native
word size i.e. 32 bits on i386.  Linux 2.6.36 allows drivers to provide
64-bit statistics all architectures, but this has not yet been
implemented for all drivers.

If you want to get accurate statistics then you need to run a monitoring
program which will poll these statistics often enough that it can detect
wrap-around.  With a link speed of 1 Gbit/s the byte counter can wrap
around after about 35 seconds.

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: