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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

F–Troubleshooting<br />

Performance Issues<br />

Next, find the IRQ number and bind it to a CPU. The IRQ number can be found in<br />

one of two ways, depending on the system used. Both methods are described in<br />

the following paragraphs.<br />

NOTE:<br />

Take care when cutting and pasting commands from PDF documents, as<br />

quotes are special characters and may not be translated correctly.<br />

Method 1<br />

Check to see if the IRQ number is found in /proc/irq/xxx, where xxx is the<br />

IRQ number in /sys/class/infiniband/ipath*/device/irq. Do this as a<br />

root user. For example:<br />

# my_irq=‘cat /sys/class/infiniband/ipath*/device/irq‘<br />

# ls /proc/irq<br />

If $my_irq can be found under /proc/irq/, then type:<br />

# echo 01 > /proc/irq/$my_irq/smp_affinity<br />

Method 2<br />

If command from Method 1, ls /proc/irq, cannot find $my_irq, then use the<br />

following commands instead:<br />

# my_irq=‘cat /proc/interrupts|grep ib_qib|awk \<br />

’{print $1}’|sed -e ’s/://’‘<br />

# echo 01 > /proc/irq/$my_irq/smp_affinity<br />

This method is not the first choice because, on some systems, there may be two<br />

rows of ib_qib output, and you will not know which one of the two numbers to<br />

choose. However, if you cannot find $my_irq listed under /proc/irq<br />

(Method 1), this type of system most likely has only one line for ib_qib listed in<br />

/proc/interrupts, so you can use Method 2.<br />

Here is an example:<br />

# cat /sys/class/infiniband/ipath*/device/irq<br />

98<br />

# ls /proc/irq<br />

0 10 11 13 15 233 4 50 7 8 90<br />

1 106 12 14 2 3 5 58 66 74 9<br />

(Note that you cannot find 98.)<br />

# cat /proc/interrupts|grep ib_qib|awk \<br />

’{print $1}’|sed -e ’s/://’<br />

106<br />

# echo 01 > /proc/irq/106/smp_affinity<br />

Using the echo command immediately changes the processor affinity of an IRQ.<br />

F-10 D000046-005 B

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

Saved successfully!

Ooh no, something went wrong!