

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# AWS PCS에서 사용자 지정 cgroup 설정 구성
<a name="cgroup-custom-settings"></a>

Slurm은 Linux cgroup 하위 시스템을 사용하여 메모리, CPU 코어, 디바이스 및 스왑 공간을 포함한 작업에 대한 리소스를 관리하고 제한합니다. AWS PCS를 사용하면 클러스터 생성 또는 업데이트 `SlurmConfiguration` 중에의 `CgroupCustomSettings` 속성을 통해 클러스터 수준에서 `cgroup.conf` 설정을 사용자 지정할 수 있습니다.

## cgroup 설정 구성
<a name="cgroup-custom-settings-configure"></a>

Cgroup 사용자 지정 설정은 클러스터 생성 중에 AWS 콘솔, CLI 또는 SDKs를 통해 구성하거나 나중에 업데이트 작업을 통해 수정할 수 있습니다.

------
#### [ AWS Management Console ]

클러스터 리소스의 생성 또는 편집 페이지에서 **추가 스케줄러 설정**으로 이동합니다.

**새 설정을 추가하려면**

1. **새 설정 추가**를 선택합니다.

1. 드롭다운에서 **파라미터** 이름을 선택합니다(간단한 파라미터 설명 포함).

1. 해당 값을 입력합니다.

**사용자 지정 설정을 해제하려면**

1. 관련 파라미터/값 페어 옆에 있는 **제거**를 선택합니다.

1. 리소스를 생성하거나 업데이트합니다.

------
#### [ AWS CLI ]

cgroup 설정을 프로그래밍 방식으로 관리하려면 클러스터 생성 또는 업데이트 작업에서 `CgroupCustomSettings` 필드를 사용합니다.

**Example - 클러스터`ConstrainRAMSpace`에서 설정**  

```
aws pcs update-cluster --cluster-identifier {{my-cluster}} \
--slurm-configuration \
'CgroupCustomSettings=[{parameterName=ConstrainRAMSpace,parameterValue="yes"}]'
```

------

## 클러스터에 지원되는 cgroup 설정
<a name="cgroup-custom-settings-cluster"></a>

클러스터 수준에서 지원되는 사용자 지정 cgroup 설정은 다음과 같습니다.
+ [https://slurm.schedmd.com/cgroup.conf.html#OPT_AllowedRAMSpace](https://slurm.schedmd.com/cgroup.conf.html#OPT_AllowedRAMSpace)
+ [https://slurm.schedmd.com/cgroup.conf.html#OPT_AllowedSwapSpace](https://slurm.schedmd.com/cgroup.conf.html#OPT_AllowedSwapSpace)
+ [https://slurm.schedmd.com/cgroup.conf.html#OPT_ConstrainCores](https://slurm.schedmd.com/cgroup.conf.html#OPT_ConstrainCores)
+ [https://slurm.schedmd.com/cgroup.conf.html#OPT_ConstrainDevices](https://slurm.schedmd.com/cgroup.conf.html#OPT_ConstrainDevices)
+ [https://slurm.schedmd.com/cgroup.conf.html#OPT_ConstrainRAMSpace](https://slurm.schedmd.com/cgroup.conf.html#OPT_ConstrainRAMSpace)
+ [https://slurm.schedmd.com/cgroup.conf.html#OPT_ConstrainSwapSpace](https://slurm.schedmd.com/cgroup.conf.html#OPT_ConstrainSwapSpace)
+ [https://slurm.schedmd.com/cgroup.conf.html#OPT_IgnoreSystemd](https://slurm.schedmd.com/cgroup.conf.html#OPT_IgnoreSystemd)
+ [https://slurm.schedmd.com/cgroup.conf.html#OPT_MaxRAMPercent](https://slurm.schedmd.com/cgroup.conf.html#OPT_MaxRAMPercent)
+ [https://slurm.schedmd.com/cgroup.conf.html#OPT_MaxSwapPercent](https://slurm.schedmd.com/cgroup.conf.html#OPT_MaxSwapPercent)
+ [https://slurm.schedmd.com/cgroup.conf.html#OPT_MinRAMSpace](https://slurm.schedmd.com/cgroup.conf.html#OPT_MinRAMSpace)
+ [https://slurm.schedmd.com/cgroup.conf.html#OPT_SignalChildrenProcesses](https://slurm.schedmd.com/cgroup.conf.html#OPT_SignalChildrenProcesses)