Skip to content

Conversation

@DevinLeamy
Copy link
Contributor

Introduces ::usage to the MemoryControllerProcess to report the total
memory usage of a cgroup as well as memory usage statistics provided
by cgroups2::memory:stats.

Devin Leamy added 5 commits April 25, 2024 16:02
Introduces the `MemoryControllerProcess`, the cgroups v2 memory
isolator, which will be used by the `Cgroups2IsolatorProcess`.

Unlike the `MemorySubsystemProcess`, the cgroups v1 memory isolator, we:
- Don't allow limits on swap memory to be set.
- Don't report memory pressure levels (this facility is no longer part
  of the cgroups memory controller's API)

Future work may include:
- Adding support for swap memory, and
- Reporting the (now available) memory pressure stall information
Introduces the `MemoryControllerProcess`, the cgroups v2 memory
isolator, which will be used by the `Cgroups2IsolatorProcess`.

Unlike the `MemorySubsystemProcess`, the cgroups v1 memory isolator, we:
- Don't allow limits on swap memory to be set.
- Don't report memory pressure levels (this facility is no longer part
  of the cgroups memory controller's API)

Future work may include:
- Adding support for swap memory, and
- Reporting the (now available) memory pressure stall information
Introduces OOM listening to the MemoryControllerProcess so that we
detect, report, and respond to OOM events.
Introduces `::usage` to the MemoryControllerProcess to report the total
memory usage of a cgroup as well as memory usage statistics provided
by `cgroups2::memory:stats`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant