Skip to main content
Asked a question last year

How do I share resources in Slurm?

Where am I?

In Bright Computing, Inc. you can ask and answer questions and share your experience with others!

How do I share resources in Slurm?

By default, Slurm is configured such that it allocates an entire node to a job which requests a subset of the resources. 
You need to configure the partition to be shared.

In slurm.conf on the headnode, you'll need to add the following lines outside of the autogenerated section and restart the slurmctld service:

SelectType=select/cons_res SelectTypeParameters=CR_Core

Please note, changing the SelectType plugin and restarting the slurmctld service may result in terminating all the running jobs.

You may also need to run the scontrol command on the headnode to inform the compute nodes of the change.

scontrol reconfigure