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

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 12 Dec 2001 13:27:18 +0000 (GMT)


> 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/