Lines Matching refs:statistics
4 Interface statistics
10 This document is a guide to Linux network interface statistics.
12 There are three main sources of interface statistics in Linux:
14 - standard interface statistics based on
16 - protocol-specific statistics; and
17 - driver-defined statistics available via ethtool.
19 Standard interface statistics
22 There are multiple interfaces to reach the standard statistics.
44 Protocol-specific statistics
48 to report related statistics. For example ethtool interface used
51 $ ethtool --include-statistics -a eth0
60 Driver-defined statistics
63 Driver-defined ethtool statistics can be dumped using `ethtool -S $ifc`, e.g.::
66 NIC statistics:
77 of interfaces as well as their statistics.
86 Each device directory in sysfs contains a `statistics` directory (e.g.
87 `/sys/class/net/lo/statistics/`) with files corresponding to
97 `Documentation/ABI/testing/sysfs-class-net-statistics`.
114 specific statistics. Historically it has also been used to report
115 statistics for which other APIs did not exist, like per-device-queue
116 statistics, or standard-based statistics (e.g. RFC 2863).
121 to retrieve the number of statistics (`.n_stats`).
128 Protocol-related statistics can be requested in get commands by setting
130 statistics are supported in the following commands:
137 Some drivers expose extra statistics via `debugfs`.
148 Drivers should report all statistics which have a matching member in
155 Please note for example that detailed error statistics must be
159 via `/proc/net/dev`. If driver may sleep when retrieving the statistics
162 allows setting the frequency of refreshing statistics, if needed.
164 Retrieving ethtool statistics is a multi-syscall process, drivers are advised
165 to keep the number of statistics constant to avoid race conditions with
176 the statistics they don't report with 0.