Hi Jing, thank you! The following command show us the cpu load of the node,
$ scontrol show node <nodename_of_job> | grep CPULoad but I want the percent cpu of the job, like top or ps. For examplt, a job allocated 10 cpus, but it just use 2, so the percent cpu should be 200%, not be 1000%, I want konw this. Anyway, thank you again, Jing. Best regards, Yalei > -----原始邮件----- > 发件人: "Jing Gong" <gongj...@kth.se> > 发送时间: 2018-11-22 02:04:59 (星期四) > 收件人: "Slurm User Community List" <slurm-users@lists.schedmd.com> > 抄送: > 主题: Re: [slurm-users] How to check the percent cpu of a job? > > Hi, > > > How to check the percent cpu of a job in slurm? > > We use command "scontrol" likes > > $ scontrol show node <nodename_of_job> | grep CPULoad > ... > CPUAlloc=48 CPUErr=0 CPUTot=48 CPULoad=25.32 > ... > > Regards, Jing > > ________________________________________ > From: slurm-users <slurm-users-boun...@lists.schedmd.com> on behalf of 宋亚磊 > <songy...@lzu.edu.cn> > Sent: Wednesday, November 21, 2018 18:51 > To: slurm-users@lists.schedmd.com > Subject: [slurm-users] How to check the percent cpu of a job? > > Hello everyone, > > How to check the percent cpu of a job in slurm? I tried sacct, sstat, squeue, > but I can't find that how to check. > Can someone help me? > > Best regards, > Yalei >