Skip to content

Better supporting memory management in cgroup hierarchy #113193

Open
@zackliu

Description

@zackliu

Currently, the runtime finds the lowest memory limit in the hierarchy #93611 However, in the real cgroupv2 hierarchy, the memory management needs to be more complex.

For example, if the parent cgroup has a 1000MB memory limit and contains four subcgroups, each with a 500MB limit, the runtime should, of course, respect the 500MB limit of its own subcgroup. But if the total memory usage in the parent cgroup approaches 1000MB, the runtime should also recognize the low memory pressure at the parent level and trigger GC accordingly.

I think this can be abstracted as a common scenario: how to make the runtime aware of memory pressure from a larger environment. In the issue #93030 there're some proposals, and I think we need to proceed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions