Configuring custom cgroup settings in AWS PCS - AWS PCS

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.

Configuring cgroup settings

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
  1. Choose Add new setting.

  2. Select a Parameter name from the dropdown (which includes brief parameter descriptions).

  3. Provide the corresponding value.

To unset a custom setting
  1. Choose Remove next to the relevant parameter/value pair.

  2. 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: