Configuring custom cgroup settings in AWS PCS
Slurm uses the Linux cgroup subsystem to manage and constrain resources for jobs, including
memory, CPU cores, devices, and swap space. AWS PCS lets you customize cgroup.conf
settings at the cluster level through the CgroupCustomSettings
property of SlurmConfiguration during cluster creation or update.
Cgroup custom settings can be configured through the AWS Console, CLI, or SDKs during
cluster creation or modified later through update operations.
- AWS Management Console
-
Navigate to Additional scheduler settings in the create
or edit page for a cluster resource.
To add a new setting
-
Choose Add new setting.
-
Select a Parameter name from the dropdown (which includes brief parameter descriptions).
-
Provide the corresponding value.
To unset a custom setting
-
Choose Remove next to the relevant parameter/value pair.
-
Create or update the resource.
- AWS CLI
-
For programmatic management of cgroup settings, use the
CgroupCustomSettings field in create or update cluster operations.
Example– Setting ConstrainRAMSpace on a cluster
aws pcs update-cluster --cluster-identifier my-cluster \
--slurm-configuration \
'CgroupCustomSettings=[{parameterName=ConstrainRAMSpace,parameterValue="yes"}]'
Supported cgroup settings for clusters
The following custom cgroup settings are supported at the cluster level: