Since the tests use multiple network interfaces, it is important to make sure that all the network interfaces are not going to the same core. Network interrupts were enabled on one strand and disabled on the remaining three strand of a core using the following script:
allpsr=`/usr/sbin/psrinfo | grep -v off-line | awk '{ print $1 }'` set $allpsr numpsr=$# while [ $numpsr -gt 0 ]; do shift numpsr=`expr $numpsr - 1` tmp=1 while [ $tmp -ne 4 ]; do /usr/sbin/psradm -i $1 shift numpsr=`expr $numpsr - 1` tmp=`expr $tmp + 1` done done |
The following example shows psrinfo output before running the script:
# psrinfo | more 0 on-line since 12/06/2006 14:28:34 1 on-line since 12/06/2006 14:28:35 2 on-line since 12/06/2006 14:28:35 3 on-line since 12/06/2006 14:28:35 4 on-line since 12/06/2006 14:28:35 5 on-line since 12/06/2006 14:28:35 ................. |
The following example shows psrinfo output after running the script:
0 on-line since 12/06/2006 14:28:34 1 no-intr since 12/07/2006 09:17:04 2 no-intr since 12/07/2006 09:17:04 3 no-intr since 12/07/2006 09:17:04 4 on-line since 12/06/2006 14:28:35 5 no-intr since 12/07/2006 09:17:04 ................. |