Skip to content

Support cgroups memory limit detection for cgroups V2 #6894

Closed

Description

@gjoseph92

In cgroups v2, the memory limit changed from /sys/fs/cgroup/memory/memory.limit_in_bytes to /sys/fs/cgroup/memory.max. For example:

To fix this, let's just replace this with a loop through both files:

with open("/sys/fs/cgroup/memory/memory.limit_in_bytes") as f:

Activity

  1. added
    enhancement
    good first issue
    on Aug 16, 2022
  2. shughes-uk commented on Sep 21, 2022

    @shughes-uk
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions