giovtorres / docker-centos7-slurm

Slurm Docker Container on CentOS 7
MIT License
85 stars 56 forks source link

How can I run multiple jobs at the same time? #48

Open avatar-lavventura opened 2 years ago

avatar-lavventura commented 2 years ago

I have submitted 2 jobs but they don't run at the same time:

[root@slurmctl /]# sbatch -n1 --wrap="sleep 10"
Submitted batch job 1
[root@slurmctl /]# sbatch -n1 --wrap="sleep 10"
Submitted batch job 2
[root@slurmctl /]# squeue
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)
                 2    normal     wrap     root PD       0:00      1 (Resources)
                 1    normal     wrap     root  R       0:09      1 c1

Job-2 should wait till Job-1 completed. Is there any way to let them run at the same time? Since there is 4 free node I though we could run 4 processes at the same time.

yarikoptic commented 8 months ago

I wonder if #49 would provide remedy for this one? @asmacdo -- could you please check: reproduce in original container, and then in the patched with #49 ?