Discrepancy between procfs bond and slave rx/tx packet counters
Issue
- Discrepancy between procfs bond and slave rx/tx packet counters
- There is a discrepancy between Slave Transmit and Bond transmit, the bond has sent more than the slaves:
$ cat /proc/net/dev
Inter-| Receive | Transmit
face | bytes packets | bytes packets
bond0: 362118196 3188672 10411203834917377 7666669246229
eth0: 107719062 1086936 2607296394047834 1919977823222
eth1: 88649706 754956 2606879916193339 1919670731563
eth2: 82216376 663037 2601439867098371 1915664800495
eth3: 83871064 686688 2606562988312737 1919437352870
- Addition of slave counters:
$ python
>>> 1919977823222 + 1919670731563 + 1915664800495 + 1919437352870
7674750708150
- Bond packet counter:
7666669246229
- ethtool values are also different to the procfs value:
$ egrep tx_packets sos_commands/networking/ethtool_-S_eth[0123]
sos_commands/networking/ethtool_-S_eth0: tx_packets: 1919978021087
sos_commands/networking/ethtool_-S_eth1: tx_packets: 1919670926384
sos_commands/networking/ethtool_-S_eth2: tx_packets: 1915664953184
sos_commands/networking/ethtool_-S_eth3: tx_packets: 1919437484658
Environment
- Red Hat Enterprise Linux 7.2 or earlier
- Bonding
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.