Test SLURM
Posted chaseblack
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Test SLURM相关的知识,希望对你有一定的参考价值。
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:
[email protected] ~ % squeue -n ping --Format=numnodes NODES 1 [email protected] ~ % 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)
[email protected] ~ % squeue -n ping --format="%C" CPUS 2
or
[email protected] ~ % 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)
[email protected] ~ % squeue -n ping --format="%m" MIN_MEMORY 10M
or
[email protected] ~ % squeue -n ping --Format=minmemory MIN_MEMORY 10M
Tracble resource usage:
Print the trackable resources allocated to the job.
[email protected] ~ % 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的主要内容,如果未能解决你的问题,请参考以下文章
[React Testing] Use Generated Data in Tests with tests-data-bot to Improve Test Maintainability(代码片段