SLURM: see how many cores per node, and how many cores per job

蓝咒 提交于 2020-11-25 08:25:47

问题


I have searched google and read the documentation.

My local cluster is using SLURM. I want to check the following things: How many cores does each node have? How many cores has each job in the queue reserved?

Any advice would be much appreciated!


回答1:


in order to see the details of all the nodes you can use:

scontrol show node

For an specific node:

scontrol show node "nodename"

And for the cores of job you can use the format mark %C, for instance:

squeue -o"%.7i %.9P %.8j %.8u %.2t %.10M %.6D %C"

More info about format.




回答2:


You can get most information about the nodes in the cluster with the sinfo command, for instance with:

sinfo --Node --long

you will get condensed information about, a.o., the partition, node state, number of sockets, cores, threads, memory, disk and features. It is slightly easier to read than the output of scontrol show nodes.

As for the number of CPUs for each job, see @Sergio Iserte's answer.

See the manpage here.



来源:https://stackoverflow.com/questions/41299911/slurm-see-how-many-cores-per-node-and-how-many-cores-per-job

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!