[slurm-users] [External] Re: Is there a way to get the real-time cpu/memory usage of job processes by using slurm command. (Chaofeng Zhang)

Ole Holm Nielsen Ole.H.Nielsen at fysik.dtu.dk
Mon Oct 26 06:30:30 UTC 2020


On 10/26/20 6:42 AM, Chaofeng Zhang wrote:
> I  can see some cpu usage information from command sstat and sacct, but 
> that is not what I want. I want to see the real-time cpu usage like the 
> linux top command.

The "pestat" script gives you CPU load information and other data for each 
node in the cluster.  Download pestat from 
https://github.com/OleHolmNielsen/Slurm_tools/tree/master/pestat

I have written other Slurm scripts to print, for example, the user 
processes on the nodes.  Look for "psnode" in 
https://github.com/OleHolmNielsen/Slurm_tools/tree/master/nodes

See https://github.com/OleHolmNielsen/Slurm_tools for my collection of tools.

-- 
Ole Holm Nielsen
PhD, Senior HPC Officer
Department of Physics, Technical University of Denmark



More information about the slurm-users mailing list