Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slurm 3.0.1 dynamic partition gres.conf uses entire core allotment #119

Closed
themorey opened this issue Apr 20, 2023 · 1 comment
Closed

Comments

@themorey
Copy link
Contributor

CC = 8.4.0
Slurm Cluster-init = 3.0.1
Slurm version = 22.05.8-1

ISSUE
using a dynamic partition with multiple VM types, including GPU, will result in gres.conf built using the entire allotment of cores for the nodearray even if the defined GPU is a subset of the total.

STEPS TO REPRODUCE

  1. create a custom cluster with dynamic nodearray limited to 100 cores and Config.Multiselect = true
  2. select multiple VM types for the dynamic partition and start the cluster
  3. run scontrol create nodename.. for autoscaling the nodes in Slurm...for example:
scontrol create NodeName=jm-slurm-multi-low-[1-10] CPUs=2 Boards=1 SocketsPerBoard=1 CoresPerSocket=2 ThreadsPerCore=1 RealMemory=3072 Feature=dyn,Standard_F2s_v2 State=CLOUD
scontrol create NodeName=jm-slurm-multi-mid-[1-10] CPUs=2 Boards=1 SocketsPerBoard=1 CoresPerSocket=2 ThreadsPerCore=1 RealMemory=7168 Feature=dyn,Standard_D2ds_v4 State=CLOUD
scontrol create NodeName=jm-slurm-multi-high-[1-15] CPUs=2 Boards=1 SocketsPerBoard=1 CoresPerSocket=2 ThreadsPerCore=1 RealMemory=15360 Feature=dyn,Standard_E2ds_v4 State=CLOUD
scontrol create NodeName=jm-slurm-multi-gpu-[1-5] CPUs=6 Boards=1 SocketsPerBoard=1 CoresPerSocket=6 ThreadsPerCore=1 RealMemory=54476 Gres=gpu:1 Feature=dyn,Standard_NC6_Promo State=CLOUD
  1. run azslurm scale to build the gres.conf
  2. view /etc/slurm/gres.conf
root@jm-slurm-multi-hn:~# cat /etc/slurm/gres.conf

Nodename=jm-slurm-mutli-dynamic-[1-16] Name=gpu Count=1 File=/dev/nvidia0

WORKAROUND
Manually update the gres.conf for both hostname and quantity

@ryanhamel
Copy link
Collaborator

Fixed in 3.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants