[ofa-general] getting network statistics

Pawel Dziekonski pawel.dziekonski at wcss.pl
Tue May 6 07:10:40 PDT 2008


you mean port_rcv_data and port_xmit_data ?

if so, then I have 2 jobs that are definitelly using IB network, but
those files almost do not change. :o

OFED 1.2.5.5 and kernel 2.6.9-55.0.12.ELsmp

root at wn111:/sys/class/infiniband/mthca0/ports/1/counters # ls -al
total 0
drwxr-xr-x  2 root root    0 May  6 15:45 ./
drwxr-xr-x  5 root root    0 May  6 15:45 ../
-r--r--r--  1 root root 4096 May  6 15:45 VL15_dropped
-r--r--r--  1 root root 4096 May  6 15:45 excessive_buffer_overrun_errors
-r--r--r--  1 root root 4096 May  6 15:45 link_downed
-r--r--r--  1 root root 4096 May  6 15:45 link_error_recovery
-r--r--r--  1 root root 4096 May  6 15:45 local_link_integrity_errors
-r--r--r--  1 root root 4096 May  6 15:45 port_rcv_constraint_errors
-r--r--r--  1 root root 4096 May  6 15:45 port_rcv_data
-r--r--r--  1 root root 4096 May  6 15:45 port_rcv_errors
-r--r--r--  1 root root 4096 May  6 15:45 port_rcv_packets
-r--r--r--  1 root root 4096 May  6 15:45 port_rcv_remote_physical_errors
-r--r--r--  1 root root 4096 May  6 15:45 port_rcv_switch_relay_errors
-r--r--r--  1 root root 4096 May  6 15:45 port_xmit_constraint_errors
-r--r--r--  1 root root 4096 May  6 15:45 port_xmit_data
-r--r--r--  1 root root 4096 May  6 15:45 port_xmit_discards
-r--r--r--  1 root root 4096 May  6 15:45 port_xmit_packets
-r--r--r--  1 root root 4096 May  6 15:45 symbol_error


On Tue, 19 Feb 2008 at 02:29:56PM +0200, Eli Cohen wrote:
> cat /sys/class/infiniband/mlx4_0/ports/1/counters/*
> 
> mlx4_* can be mthca* 
> 
> On Tue, 2008-02-19 at 11:03 +0200, David Minor wrote:
> > Under Linux with Mellanox ofed, how can I get real-time network
> > statistics. e.g. how many bytes are being sent and received over each
> > port at any given time?

-- 
Pawel Dziekonski <pawel.dziekonski at wcss.pl>
Wroclaw Centre for Networking & Supercomputing, HPC Department
Politechnika Wr., pl. Grunwaldzki 9, bud. D2/101, 50-377 Wroclaw, POLAND
phone: +48 71 3202043, fax: +48 71 3225797, http://www.wcss.wroc.pl



More information about the general mailing list