net_device_stat 32-bit environment limitations

From: kaldaien@nothing-inc.com
Date: Wed Mar 05 2003 - 06:26:00 EST


Surely I'm not the only person to have encountered this issue by now;
When the kernel records the tx/rx packet counts and their respective
sizes, they rollover very quickly on 32-bit hardware. To put this in
better perspective - After roughly 4 Gb worth of network traffic, the
Kernel tends to restart at 0 for the rx/tx stats in net_device_stat.

Could/should it be changed such that net_device_stat uses larger types
for these fields? 4 Gb is not a whole lot of traffic, its discouraging
to check ifconfig only a few hours later to find out the kernel has
rolled-over several times since you last checked. 32-bit servers with
large volumes of traffic are simply swamped with rollovers, rendering
any practical use for net_device_stat's rx/tx byte count out of the
question.

I'm not capable of patching this myself, so it's more along the
lines of a comment/suggestion... <smirks>

Any insight would be appreciated,
 - Andon M. Coleman
 <CodeMaster@nothing-inc.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html



This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 22:00:01 EST