Skip to content

Use a valid cgroup v1 memory update - #15465

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl995315433
Open

copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl995315433

Conversation

@copybara-service

Copy link
Copy Markdown

Use a valid cgroup v1 memory update

TestCgroupV1 tried to lower the container's memory limit to 1 MiB when
2e1cd0e added update coverage. Docker rejected that request before
invoking runsc because its minimum is 6 MiB 1.

Lower the limit from 1 GiB to 512 MiB instead, keeping it above the
test's 500 MiB reservation. This lets the test reach runsc's update path
and check the resulting cgroup attributes.

Assisted-by: Codex

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15330 from tamird:cgroup-v1-memory-update a75fe7b

TestCgroupV1 tried to lower the container's memory limit to 1 MiB when
2e1cd0e added update coverage. Docker rejected that request before
invoking runsc because its minimum is 6 MiB [1].

Lower the limit from 1 GiB to 512 MiB instead, keeping it above the
test's 500 MiB reservation. This lets the test reach runsc's update path
and check the resulting cgroup attributes.

[1]: https://github.com/moby/moby/blob/fca702de7/daemon/daemon_unix.go#L380-L385

Assisted-by: Codex

<!-- codex-thread: 01a0680f-bbf5-7511-95f7-4414f4e10d2e -->

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15330 from tamird:cgroup-v1-memory-update a75fe7b
PiperOrigin-RevId: 995315433
@copybara-service copybara-service Bot added the exported Issue was exported automatically label Oct 7, 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