linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Net device byte statistics
@ 2003-07-24 23:56 Fredrik Tolf
  2003-07-25  0:22 ` Bernd Eckenfels
  0 siblings, 1 reply; 16+ messages in thread
From: Fredrik Tolf @ 2003-07-24 23:56 UTC (permalink / raw)
  To: linux-kernel

I have set up a network statistics gathering script, which is based on the 
byte statistics from /proc/net/dev, but it has always been reporting too 
little.
Yesterday, I discovered that the cause was that these statistics are defined 
as unsigned longs in include/linux/netdevice.h. Surely, this must be strange? 
They overflow at least once a day for me.
On the other hand, I cannot imagine that noone would have thought of it. What 
is the reason for this? Is there another interface that I should use instead 
of /proc/net/dev to gather byte statistics for interfaces?
Shouldn't they be changed to unsigned long longs in any case?

Fredrik Tolf


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2003-07-26  0:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-24 23:56 Net device byte statistics Fredrik Tolf
2003-07-25  0:22 ` Bernd Eckenfels
2003-07-25  2:37   ` Fredrik Tolf
2003-07-25  3:26     ` Bernd Eckenfels
2003-07-25  3:49       ` Jeff Sipek
2003-07-25  3:54     ` Jeff Sipek
2003-07-25  7:03   ` Denis Vlasenko
2003-07-25  7:01     ` Andre Hedrick
2003-07-25 16:23     ` Jeff Sipek
2003-07-25 17:20       ` Randy.Dunlap
2003-07-25 17:55         ` Jeff Sipek
2003-07-25 17:58           ` Randy.Dunlap
2003-07-25 21:55             ` jw schultz
2003-07-25 22:51               ` Jeff Sipek
2003-07-26  0:08                 ` Ben Greear
2003-07-26  0:44                   ` jw schultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).