Alexander Vorobyev
Например, данные можно брать отсюда
"
4.1.8 Reading Port Counters Statistics
It is possible to read port statistics in the same way it is done for regular InfiniBand ports. The information is available from the sysfs at /sys/class/infiniband/<device>/ports/
<port number>/counters, and the supported counters are port_rcv_packets, port_xmit_packets, port_rcv_data and port_xmit_data. These counters count InfiniBand data only, and do not account for Ethernet traffic.
"
нашёл perfquery - то что надо!