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

setting pids.max failed with cgroups v2 #3085

Closed
Madhu-1 opened this issue May 4, 2022 · 1 comment · Fixed by #3091
Closed

setting pids.max failed with cgroups v2 #3085

Madhu-1 opened this issue May 4, 2022 · 1 comment · Fixed by #3091

Comments

@Madhu-1
Copy link
Collaborator

Madhu-1 commented May 4, 2022

I just had a similar error when setting up a K8s on a newer Flatcar server, because that one now uses
the cgroupv2 layout.
So,

// $ cat /sys/fs/cgroup/pids + *.scope + /pids.max.
is not correct, since there is no directory /sys/fs/cgroup/pids any more.
It's now /sys/fs/cgroup + *.scope + /pids.max

Originally posted by @Cytrian in #3076 (comment)

Cytrian pushed a commit to Cytrian/ceph-csi that referenced this issue May 5, 2022
With cgroup v2, the location of the pids.max file changed and so did the /proc/self/cgroup file

new /proc/self/cgroup file
`
0::/user.slice/user-500.slice/session-14.scope
`

old file:
`
11:pids:/user.slice/user-500.slice/session-2.scope
10:blkio:/user.slice
9:net_cls,net_prio:/
8:perf_event:/
...
`

There is no directory per subsystem (e.g. /sys/fs/cgroup/pids) any more, all files are now in one directory.

fixes: ceph#3085
Cytrian pushed a commit to Cytrian/ceph-csi that referenced this issue May 5, 2022
With cgroup v2, the location of the pids.max file changed and so did the
/proc/self/cgroup file

new /proc/self/cgroup file
`
0::/user.slice/user-500.slice/session-14.scope
`

old file:
`
11:pids:/user.slice/user-500.slice/session-2.scope
10:blkio:/user.slice
9:net_cls,net_prio:/
8:perf_event:/
...
`

There is no directory per subsystem (e.g. /sys/fs/cgroup/pids) any more, all
files are now in one directory.

fixes: ceph#3085

Signed-off-by: Marcus Röder <m.roeder@yieldlab.de>
Cytrian pushed a commit to Cytrian/ceph-csi that referenced this issue May 5, 2022
With cgroup v2, the location of the pids.max file changed and so did the
/proc/self/cgroup file

new /proc/self/cgroup file
`
0::/user.slice/user-500.slice/session-14.scope
`

old file:
`
11:pids:/user.slice/user-500.slice/session-2.scope
10:blkio:/user.slice
9:net_cls,net_prio:/
8:perf_event:/
...
`

There is no directory per subsystem (e.g. /sys/fs/cgroup/pids) any more, all
files are now in one directory.

fixes: ceph#3085

Signed-off-by: Marcus Röder <m.roeder@yieldlab.de>
ceph-csi-bot pushed a commit to Cytrian/ceph-csi that referenced this issue May 7, 2022
With cgroup v2, the location of the pids.max file changed and so did the
/proc/self/cgroup file

new /proc/self/cgroup file
`
0::/user.slice/user-500.slice/session-14.scope
`

old file:
`
11:pids:/user.slice/user-500.slice/session-2.scope
10:blkio:/user.slice
9:net_cls,net_prio:/
8:perf_event:/
...
`

There is no directory per subsystem (e.g. /sys/fs/cgroup/pids) any more, all
files are now in one directory.

fixes: ceph#3085

Signed-off-by: Marcus Röder <m.roeder@yieldlab.de>
@mergify mergify bot closed this as completed in #3091 May 7, 2022
mergify bot pushed a commit that referenced this issue May 7, 2022
With cgroup v2, the location of the pids.max file changed and so did the
/proc/self/cgroup file

new /proc/self/cgroup file
`
0::/user.slice/user-500.slice/session-14.scope
`

old file:
`
11:pids:/user.slice/user-500.slice/session-2.scope
10:blkio:/user.slice
9:net_cls,net_prio:/
8:perf_event:/
...
`

There is no directory per subsystem (e.g. /sys/fs/cgroup/pids) any more, all
files are now in one directory.

fixes: #3085

Signed-off-by: Marcus Röder <m.roeder@yieldlab.de>
humblec pushed a commit to humblec/ceph-csi that referenced this issue May 9, 2022
With cgroup v2, the location of the pids.max file changed and so did the
/proc/self/cgroup file

new /proc/self/cgroup file
`
0::/user.slice/user-500.slice/session-14.scope
`

old file:
`
11:pids:/user.slice/user-500.slice/session-2.scope
10:blkio:/user.slice
9:net_cls,net_prio:/
8:perf_event:/
...
`

There is no directory per subsystem (e.g. /sys/fs/cgroup/pids) any more, all
files are now in one directory.

fixes: ceph#3085

Signed-off-by: Marcus Röder <m.roeder@yieldlab.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant