Skip to main content

Per-Partition CPU Pinning

fsched supports CPU pinning by partition. When a job is submitted to the corresponding partition, pinning is applied automatically. The approach is to disable global CPU pinning, but enable thread pinning for specific partitions. Configure it as follows.

Notes

  • This configuration requires restarting slurmd. It does not affect running jobs and only applies to new jobs.
  • It is recommended to drain all machines before applying the change so that no jobs are scheduled during the modification.

Global Configuration

Use the following configuration to enable task/affinity and disable global CPU pinning.

TaskPlugin = task/affinity
TaskPluginParam = None

Partition Configuration

For the partitions where you want pinning, set partition-level pinning.

CpuBind = Thread

Apply

Restart slurmd and slurmctld.