Re: [PATCH - RFC] [1/5] 64-bit network statistics - generic net

From: Jeff Sipek (
Date: Sat Jul 05 2003 - 13:49:20 EST

Hash: SHA1

On Thursday 03 July 2003 23:08, you wrote:
> Please do this in user space. The "overflow every 2^32 packets" thing is
> _not_ a problem, if you just gather the statistics at any kind of
> reasonable interval.

While discussing this patch on IRC, an interesting idea came up: why not make
the counters count something different from bytes? "Less granular stats are
every bit (bad pun intended) as useful." This would break userspace, but
that's what everyone has to expect during odd releases (i.e. the modules in

To avoid having to change all the code, we could have (in addition to what we
currently have) something like tx_kbytes or tx_mbytes which would be updated
via a timer every x milliseconds (I'd say maybe 350-500). The sysfs and
procfs interfaces would have to be modified, however those are just couple of
lines of code.

Using KB would give us additional 10 bits (making the overflow at 4 TB.) I
don't really like the idea of using MB, but the underlying idea is the same -
20 more bits, making the limit 4 PB.

What is the consensus on this way of solving the problem?


- --
Failure is not an option,
It comes bundled with your Microsoft product.
Version: GnuPG v1.2.2 (GNU/Linux)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:25 EST