Problem with network statistics reported by sysstat

Solution Verified - Updated -

Issue

The net statistics reported by the sar application
are wrong, more than twice the real traffic.

You can see in the following copy-n-paste the
big difference between the statistic reported from sysstat in the RPM repository:

Average:        IFACE   rxpck/s   txpck/s
Average:        bond0  11342.37  16948.02

and the statistics reported by sysstat compiled from sources:

Average:        IFACE   rxpck/s   txpck/s
Average:        bond0   4028.37   6008.39

The averages obtained by the second sysstat is confirmed
also by the switch counters and by ifconfig with the following
commands:

# ifconfig bond0 | egrep -o 'RX packets:[0-9]+' 
# sleep 5
# ifconfig bond0 | egrep -o 'RX packets:[0-9]+'
RX packets:16831578535
RX packets:16831599072

that produce this result: (16831599072-16831578535)/5 = 4107

Environment

  • Red Hat Enterprise Linux 6
  • sysstat

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.