27.12.2014 Views

QLogic OFED+ Host Software User Guide, Rev. B

QLogic OFED+ Host Software User Guide, Rev. B

QLogic OFED+ Host Software User Guide, Rev. B

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

I–Useful Programs and Files<br />

Summary and Descriptions of Useful Programs<br />

ipathstats<br />

The ipath_pkt_test program runs in either ping-pong mode (send a packet,<br />

wait for a reply, repeat) or in stream mode (send packets as quickly as possible,<br />

receive responses as they come back).<br />

Upon completion, the sending side prints statistics on the packet bandwidth,<br />

showing both the payload bandwidth and the total bandwidth (including InfiniBand<br />

and InfiniPath headers). See the man page for more information.<br />

The ipathstats program is useful for diagnosing InfiniPath problems,<br />

particularly those that are performance related. It is installed from the<br />

infinipath RPM. It displays both driver statistics and hardware counters,<br />

including both performance and "error" (including status) counters.<br />

Running ipathstats -c 10, for example, displays the number of packets and<br />

32-bit words of data being transferred on a node in each 10-second interval. This<br />

output may show differences in traffic patterns on different nodes, or at different<br />

stages of execution. See the man page for more information.<br />

lsmod<br />

When you need to find which InfiniPath and OpenFabrics modules are running,<br />

type the following command:<br />

# lsmod | egrep ’ipath_|ib_|rdma_|findex’<br />

modprobe<br />

Use this program to load/unload the drivers. You can check to see if the driver has<br />

loaded by using this command:<br />

# modprobe -v ib_qib<br />

The -v option typically only prints messages if there are problems.<br />

The configuration file that modprobe uses is /etc/modprobe.conf<br />

(/etc/modprobe.conf.local on SLES). In this file, various options and<br />

naming aliases can be set.<br />

mpirun<br />

mpirun determines whether the program is being run against a <strong>QLogic</strong> or<br />

non-<strong>QLogic</strong> driver. It is installed from the mpi-frontend RPM. Sample<br />

commands and results are shown in the following paragraphs.<br />

<strong>QLogic</strong>-built:<br />

$ mpirun -np 2 -m /tmp/id1 -d0x101 mpi_latency 1 0<br />

asus-01:0.ipath_setaffinity: Set CPU affinity to 1, port 0:2:0<br />

(1 active chips)<br />

asus-01:0.ipath_userinit: Driver is <strong>QLogic</strong>-built<br />

D000046-005 B I-15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!