squeue-with-context-switches
Augments squeue
with context switches per second in the last column. Because context switching stats are node local, the script must be run on a node.
The intent is to help with investigating context switching caused by specific jobs, and as a proof-of-concept. Any statistic that is attached to a PID could be added to the output of this script, or have its own script.
To use
-
ssh $nodename
for any node on the system. Hopefully you are able to get in! -
./scontext.sh
to see context switching information.