Skip to content

cgroupsv2 supports linux.resources.unified from OCI spec#12922

Open
copybara-service[bot] wants to merge 1 commit intomasterfrom
test/cl897940632
Open

cgroupsv2 supports linux.resources.unified from OCI spec#12922
copybara-service[bot] wants to merge 1 commit intomasterfrom
test/cl897940632

Conversation

@copybara-service
Copy link
Copy Markdown

cgroupsv2 supports linux.resources.unified from OCI spec

We noticed that setting linux.resources.unified to some value, such as { "memory.high": "..." } would work under runc, but not under runsc. According to the OCI spec, unified allows us to set any arbitrary cgroupsv2 property.

Whilst the systemd driver requires us to create a mapping between known cgroupv2 property labels and the systemd equivalent name, for cgroupsv2 this is a trivial change.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#12884 from modal-labs:amit/cgroupv2-unified c395abc

We noticed that setting `linux.resources.unified` to some value, such as `{ "memory.high": "..." }` would work under `runc`, but not under `runsc`. According to the [OCI spec](https://github.com/opencontainers/runtime-spec/blob/main/config-linux.md#unified), `unified` allows us to set any arbitrary cgroupsv2 property.

Whilst the `systemd` driver requires us to [create a mapping](https://github.com/opencontainers/runc/blob/main/docs/systemd.md#cgroup-v2) between known cgroupv2 property labels and the `systemd` equivalent name, for cgroupsv2 this is a trivial change.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#12884 from modal-labs:amit/cgroupv2-unified c395abc
PiperOrigin-RevId: 897940632
@copybara-service copybara-service bot added the exported Issue was exported automatically label Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant