1

我有一个带有各种分区的 slurm 设置。在我的 slurm.conf 中,我有一个可以为我的分区运行作业的计算机列表,例如。

PartitionName=hi Nodes=rack[0-4],pc1,pc2 MaxTime=INFINITE State=UP Priority=1000 PreemptMode=off

pc1 和 pc2 有 3 个内核可用,机架每个有 4 个内核。如果我一次提交 4 个作业,它将分配 3 个给 pc1 和 1 个给 pc2。我想更改这些分配的顺序。具体来说,我希望他们先上机架,然后是 pc2,然后是 pc1。

有什么想法吗?

塔,詹姆斯

4

1 回答 1

1

Use the weight parameter in slurm.conf when defining your nodes

From the manpage:

Weight The priority of the node for scheduling purposes. All things being equal, jobs will be allocated the nodes with the lowest weight which satisfies their requirements.

So for instance set weight=1000 for pc4, weight=100 for pc3 and weight=10 for the racks.

于 2015-01-26T20:38:02.163 回答