net_device_stat 32-bit environment limitations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux