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

util: support systems using the new cgroup v2 structure #3091

Merged
merged 1 commit into from
May 7, 2022

Commits on May 7, 2022

  1. util: support systems using the new cgroup v2 structure

    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 <[email protected]>
    Marcus Röder authored and mergify[bot] committed May 7, 2022
    Configuration menu
    Copy the full SHA
    4663da3 View commit details
    Browse the repository at this point in the history