Thanks for Merlin Hartley and Eli V's replay ! This command(sacct -j <jobid> ) can only get the total number of cpus for a history job: However , the command(scontrol show jobs <jobid> --detail)can get the number of cpus of a running job on each node: And I expect to get the cpu number of a certain history job on EACH compute node. It's like a combination of the two above.
祝工作顺利! 姓名 胡梦龙 手机 135-6164-9610 部门 HPC 中科曙光国际信息产业有限公司 青岛市崂山区株洲路78号中科曙光大厦(3号楼) 266000 From: Merlin Hartley Date: 2019-02-15 23:36 To: Slurm User Community List CC: 张涛 Subject: Re: [slurm-users] How to get the CPU usage of history jobs at each compute node? using sacct [1] - assuming you have accounting [2] enabled: sacct -j <jobid> Hope this helps! Merlin [1] https://slurm.schedmd.com/sacct.html [2] https://slurm.schedmd.com/accounting.html -- Merlin Hartley Computer Officer MRC Mitochondrial Biology Unit University of Cambridge Cambridge, CB2 0XY United Kingdom On 15 Feb 2019, at 10:05, hu...@sugon.com wrote: Dear there, How to view the cpu usage of history jobs at each compute node? However, this command(control show jobs jobid --detail) can only get the cpu usage of the currently running job at each compute node : <Catch8520.jpg> Appreciatively, Menglong -- Merlin Hartley Computer Officer MRC Mitochondrial Biology Unit University of Cambridge Cambridge, CB2 0XY United Kingdom