Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reading cpu.max from cgroups v2 #125

Merged
merged 1 commit into from Sep 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions fixtures/cgroups2/cgroups/ceil/cpu.max
@@ -0,0 +1 @@
150000 100000
1 change: 1 addition & 0 deletions fixtures/cgroups2/cgroups/good/cpu.max
@@ -0,0 +1 @@
600000 100000
1 change: 1 addition & 0 deletions fixtures/cgroups2/cgroups/zero-period/cpu.max
@@ -0,0 +1 @@
600000 0
2 changes: 2 additions & 0 deletions fixtures/cgroups2/proc/cgroups/cgroup
@@ -0,0 +1,2 @@
12::/
3::/user.slice
3 changes: 3 additions & 0 deletions fixtures/cgroups2/proc/cgroups/cgroup_multi
@@ -0,0 +1,3 @@
12::/
11:cpu,cpuacct:/
3::/user.slice
5 changes: 5 additions & 0 deletions fixtures/cgroups2/proc/cgroups/mountinfo
@@ -0,0 +1,5 @@
1 0 8:1 / / rw,noatime shared:1 - ext4 /dev/sda1 rw,errors=remount-ro,data=reordered
2 1 0:1 / /dev rw,relatime shared:2 - devtmpfs udev rw,size=10240k,nr_inodes=16487629,mode=755
3 1 0:2 / /proc rw,nosuid,nodev,noexec,relatime shared:3 - proc proc rw
4 1 0:3 / /sys rw,nosuid,nodev,noexec,relatime shared:4 - sysfs sysfs rw
5 4 0:4 / /sys/fs/cgroup rw,nosuid,nodev,noexec,relatime shared:5 - cgroup2 cgroup2 rw,nsdelegate,memory_recursiveprot