Download User`s Guide
Transcript
Chapter 2. Interacting With the System Using the command option bpstat -P (with an uppercase "P" instead of a lowercase "p") tells bpstat to take the output of the ps and reformat it, pre-pending a column showing the node number. The following two examples show the difference in the outputs from ps and from bpstat -P. Example output from ps: [user@cluster user] $ ps xf PID 6503 6665 6471 6538 6553 6654 6655 6656 6658 6657 6660 6659 6662 6661 6663 TTY pts/2 pts/2 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 STAT S R S S S R S RW SW RW SW RW SW SW SW TIME 0:00 0:00 0:00 0:00 0:00 0:03 0:00 0:01 0:00 0:01 0:00 0:01 0:00 0:00 0:00 COMMAND bash ps xf bash /bin/sh /usr/bin/linpack \_ /bin/sh /usr/bin/mpirun -np 5 /tmp/xhpl \_ /tmp/xhpl -p4pg /tmp/PI6553 -p4wd /tmp \_ /tmp/xhpl -p4pg /tmp/PI6553 -p4wd /tmp \_ [xhpl] | \_ [xhpl] \_ [xhpl] | \_ [xhpl] \_ [xhpl] | \_ [xhpl] \_ [xhpl] \_ [xhpl] Example of the same ps output when run through bpstat -P instead: [user@cluster user] $ ps xf | bpstat -P NODE 0 0 1 1 2 2 3 3 PID 6503 6666 6667 6471 6538 6553 6654 6655 6656 6658 6657 6660 6659 6662 6661 6663 TTY pts/2 pts/2 pts/2 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 pts/3 STAT S R R S S S R S RW SW RW SW RW SW SW SW TIME 0:00 0:00 0:00 0:00 0:00 0:00 0:06 0:00 0:06 0:00 0:06 0:00 0:06 0:00 0:00 0:00 COMMAND bash ps xf bpstat -P bash /bin/sh /usr/bin/linpack \_ /bin/sh /usr/bin/mpirun -np 5 /tmp/xhpl \_ /tmp/xhpl -p4pg /tmp/PI6553 -p4wd /tmp \_ /tmp/xhpl -p4pg /tmp/PI6553 -p4wd /tmp \_ [xhpl] | \_ [xhpl] \_ [xhpl] | \_ [xhpl] \_ [xhpl] | \_ [xhpl] \_ [xhpl] \_ [xhpl] For additional information on bpstat, see the section on monitoring node status earlier in this chapter. For information on the bpstat command line options, see the Reference Guide. 19