Skip to content

Commit

Permalink
Use not "blkio" but "io" controller in cgroups v2 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
orimanabu authored May 30, 2022
1 parent 583756f commit 737f948
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions validators/types_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@ var DefaultSysSpec = SysSpec{
// Containerd and cri-o will use blkio to track disk I/O and throttling in both cgroup v1 and v2.
"blkio",
},
CgroupsV2: []string{"cpu", "cpuset", "devices", "freezer", "memory", "pids"},
CgroupsV2Optional: []string{"hugetlb", "blkio"},
CgroupsV2: []string{"cpu", "cpuset", "devices", "freezer", "memory", "pids"},
CgroupsV2Optional: []string{
"hugetlb",
// The cgroups v2 io controller is the successor of the v1 blkio controller.
"io",
},
RuntimeSpec: RuntimeSpec{
DockerSpec: &DockerSpec{
Version: []string{`1\.1[1-3]\..*`, `17\.0[3,6,9]\..*`, `18\.0[6,9]\..*`, `19\.03\..*`, `20\.10\..*`},
Expand Down

0 comments on commit 737f948

Please sign in to comment.