Re: [PATCH] /proc/net/dev counter fix, linux-2.5.0

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Wed Dec 12 2001 - 08:27:18 EST


> I have made a patch to fix the counter values in /proc/net/dev. The
> problem was that the tx_bytes and rx_bytes will reset when ~4GB is
> transferred. This patch has been tested to work with linux-2.5.0 but it
> should work on all 2.4.* kernels. Also it should work with most of the
> interface cards but not all yet.

It's something we've always avoided doing. A long long is expensive to
update and not an atomic type on things like the x86. The firewalling
facilities let you collect 64bit accounting data if you need it
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 15 2001 - 21:00:23 EST