[ofa-general] getting network statistics

Pawel Dziekonski pawel.dziekonski at wcss.pl
Thu May 8 07:57:10 PDT 2008


yes, I meant CONTENT of those files.

while true; do cat port_rcv_data; sleep 1; done
223212307
223212307
223212307
223212342
223227022
223227022
223227022
223227022
223227022
223227057
223227265




On Wed, 07 May 2008 at 10:34:58AM +0300, Eli Cohen wrote:
> These files are on a virtual file system and their size does not change.
> You need to read them, e.g. using cat, in order to get the statistics
> data. For example, "cat port_rcv_data" will give you a measure of how
> many bytes of data were received by the port.
> 
> On Tue, 2008-05-06 at 16:10 +0200, Pawel Dziekonski wrote:
> > 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