Skip to content

notify_on_oom_v2 is being used in cgroup v2 #136

@Eason0729

Description

@Eason0729

Describe the bug
memory.oom_control is used in notify_on_oom_v2, if I recall correctly, memory.oom_control only exist in cgroup v1 when memory subsystem is mounted.

Expected behavior
Return ErrorKind::Other, or document the behavior somewhere.

Additional context

called `Result::unwrap()` on an `Err` value: Error { kind: ReadFailed("/sys/fs/cgroup/abc.0/memory.oom_control"), cause: Some(Os { code: 2, kind: NotFound, message: "No such file or directory" }) }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions