Displaying and resetting QETH performance statistics

SUSE Linux Enterprise Server 15 SP5 LPAR mode z/VM guest

Use the ethtool to display the QETH performance statistics and the performance_stats sysfs attribute to reset the statistic values.

About this task

SUSE Linux® Enterprise Server continuously gathers QETH performance data.

Procedure

  1. Use the ethtool command to display the statistics. For details, see the ethtool man page.
  2. Optional: Reset the statistic values to 0 by writing 1 to the performance_stats sysfs attribute of the QETH device.
    For example:
    # chzdev -a <device_bus_id> performance_stats=1 
    or, using sysfs:
    echo 1 > /sys/bus/ccwgroup/drivers/qeth/<device_bus_id>/performance_stats

Example

The following example shows statistic and device driver information:
 # ethtool -S eth0
NIC statistics:
     rx skbs: 86
     rx buffers: 85
     tx skbs: 86
     tx buffers: 86
     tx skbs no packing: 86
     tx buffers no packing: 86
     tx skbs packing: 0
     tx buffers packing: 0
     tx sg skbs: 0
     tx sg frags: 0
     rx sg skbs: 0
     rx sg frags: 0
     rx sg page allocs: 0
     tx large kbytes: 0
     tx large count: 0
     tx pk state ch n->p: 0
     tx pk state ch p->n: 0
     tx pk watermark low: 2
     tx pk watermark high: 5
     queue 0 buffer usage: 0
     queue 1 buffer usage: 0
     queue 2 buffer usage: 0
     queue 3 buffer usage: 0
     rx handler time: 856
     rx handler count: 84
     rx do_QDIO time: 16
     rx do_QDIO count: 11
     tx handler time: 330
     tx handler count: 87
     tx time: 1236
     tx count: 86
     tx do_QDIO time: 997
     tx do_QDIO count: 86
     tx csum: 0 
     tx lin: 0 
     cq handler count: 0 
     cq handler time: 0
     rx csum: 9
# ethtool -i eth0
driver: qeth_l3
version: 1.0
firmware-version: 087a
bus-info: 0.0.f5f0/0.0.f5f1/0.0.f5f2
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no