このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン | |||
01_linux:21_centos7:07_cgroup [2021/07/24 08:10] – matsui | 01_linux:21_centos7:07_cgroup [2021/07/24 08:30] (現在) – matsui | ||
---|---|---|---|
行 31: | 行 31: | ||
+ | ==== cgconfig.confで複数ディスクへ設定する場合 ==== | ||
+ | groupを複数書いておく | ||
+ | |||
+ | [/ | ||
+ | | ||
+ | group DiskIO_Group | ||
+ | blkio { | ||
+ | blkio.throttle.read_iops_device = "8:0 100"; | ||
+ | blkio.throttle.write_iops_device = "8:0 100"; | ||
+ | } | ||
+ | } | ||
+ | group DiskIO_Group | ||
+ | blkio { | ||
+ | blkio.throttle.read_iops_device = "251:0 100"; | ||
+ | blkio.throttle.write_iops_device = "251:0 100"; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | こうするとちゃんと反映される | ||
+ | < | ||
+ | # cat / | ||
+ | 8:0 100 | ||
+ | 251:0 100 | ||
+ | </ | ||
===== 反映 ===== | ===== 反映 ===== | ||
反映にはcgconfigとcgredプロセスを再起動で反映されます。 | 反映にはcgconfigとcgredプロセスを再起動で反映されます。 |