Kernel idle data: -pid 0, Kernel idle data per cpu – HP XC System 3.x Software User Manual
Page 66
Alternatively, you can use the sleep 99999 command and manually terminate the sleep
process when you are done taking measurements. For example:
% hpcpictl label all -pid -1 -not sleep 99999
You can also use this selector with the srun utility in a cluster environment to capture data for
all processes on the local system for the duration of the srun execution. This would include the
daemon started by srun and any user processes that srun launches on the local system. It does
not include data for processes that are launched on remote systems because labels do not cross
machine boundaries. For example:
% hpcpictl label all_srun -pid -1 -not srun myMPI
Kernel Idle Data: -pid 0
On Linux systems, PID 0 is the kernel idle process. The following command selects data for the
idle kernel for 20 seconds (the duration of the sleep 20 command) and associates it with the
label idle20:
% hpcpictl label idle20 -pid 0 sleep 20
Kernel Idle Data Per CPU
The following commands enable you to distinguish kernel idle data for CPU 0 from idle kernel
data for other CPUs:
% hpcpictl label idleCPU0 -pid 0 -cpu 0 -and sleep 20 &
% hpcpictl label idleCPUn -pid 0 -cpu 0 -not -and sleep 20 &
% wait
You can also chain hpcpictl label commands by executing an hpcpictl label command
from another hpcpictl label command. The following command is equivalent to the three
commands in the previous example:
% hpcpictl label idleCPU0 -pid 0 -cpu 0 -and \
hpcpictl label idleCPUn -pid 0 -cpu 0 -not -and \
sleep 20
66
Using HPCPI Labels