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 > > [EMAIL PROTECTED]:/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? > _______________________________________________ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
