码迷,mamicode.com
首页 > 其他好文 > 详细

Test SLURM

时间:2019-01-16 00:22:17      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:jobs   resource   span   form   conf   diff   amp   minimum   sources   

Q: Where is slurm.conf?

A: in /etc/slurm-llnl/slurm.conf

Q: Why can‘t I run 2 "srun" on the same node at the same time?

A: We should use "--mem-per-cup=<sth in MB>"

Q: How to get resource usage for a job?

A: Let me give some examples. First run the job:

srun -w minion01 -p minion_superfast --ntasks=1 --nodes=1 --cpus-per-task=1 --mem-per-cpu=10 ping www.google.com

note: --mem-per-cpu=10 means 10 MB

Tasks and Nodes allocated to the job:

pduan@gru ~ % squeue -n ping  --Format=numnodes
NODES               
1                   
pduan@gru ~ % squeue -n ping  --Format=numtasks
TASKS               
1  

 CPU number used by the job:

Number of CPUs requested by the job or allocated to it if already running. As a job is completing this number will reflect the current number of CPUs allocated. (Valid for jobs only)

pduan@gru ~ % squeue -n ping  --format="%C"
CPUS
2

or

pduan@gru ~ % squeue -n ping  --Format=numcpus
CPUS                
2  

Min memories requested by the job:

Minimum size of memory (in MB) requested by the job. (Valid for jobs only)

pduan@gru ~ % squeue -n ping  --format="%m"
MIN_MEMORY
10M

or

pduan@gru ~ % squeue -n ping  --Format=minmemory
MIN_MEMORY          
10M 

Tracble resource usage:

Print the trackable resources allocated to the job.

pduan@gru ~ % squeue -n ping  --Format=tres   
TRES                
cpu=2,mem=20M,node=1

Note: I found that "--cpus-per-task=<>" makes no difference because when I remove "--cpus-per-task=1" for the above job, the resource usage shows the same

 

Test SLURM

标签:jobs   resource   span   form   conf   diff   amp   minimum   sources   

原文地址:https://www.cnblogs.com/chaseblack/p/10274868.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!