

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# PCS でのカスタム cgroup AWS 設定の設定
<a name="cgroup-custom-settings"></a>

Slurm は Linux cgroup サブシステムを使用して、メモリ、CPU コア、デバイス、スワップスペースなどのジョブのリソースを管理および制約します。 AWS PCS では、クラスターの作成または更新`SlurmConfiguration`時に `CgroupCustomSettings`プロパティを使用してクラスターレベルで`cgroup.conf`設定をカスタマイズできます。

## cgroup 設定の構成
<a name="cgroup-custom-settings-configure"></a>

グループカスタム設定は、クラスターの作成時に AWS コンソール、CLI、または SDKs を使用して設定することも、更新オペレーションを通じて後で変更することもできます。

------
#### [ AWS マネジメントコンソール ]

クラスターリソースの作成または編集ページの**追加のスケジューラ設定**に移動します。

**新しい設定を追加するには**

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)