Repository navigation
Give the integration tests' nested containers the budget they actually use - #117412
Merged
Merged
Conversation
…y use `docker_in_docker.sh` splits the integration job's memory limit into three capped cgroup leaves, and `/docker` - the one that parents every nested test container - is sized last, from whatever the other reserves leave. On the 61.78 GiB runner that is 40.78 GiB, and it is not enough: over 58 job runs `/docker` peaked at exactly its cap in all 58, so the kernel is picking a victim whenever anything asks for more. The job then reports `Container memory budget exceeded (/docker)` while every test in the batch passes - 15 of the 26 master runs of `Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/6)` after 2026-08-31 12:00, and before that shards 2/6 and 5/6 as well. The sizing rests on an assumption the kernel's own OOM report refutes. It gives `/init` a third of the job limit and `/docker` the remainder, on the grounds that `/init`'s charge is anonymous while `/docker` holds page cache reclaim can give back. Measured at the kill, `/docker` holds 40.35 GiB of anonymous memory against 753664 bytes of cache - not one page of it is reclaimable. `/init` and `/dockerd` are the ones running on cache: they peak at 20.8 GiB and 18.3 GiB against reserves of 16 GiB and 2 GiB, 20 GiB above what the partition promises them, and the job cgroup still never breaches, because reclaim takes that back. The only leaf that cannot give anything back is the one being sized last. So `/init` keeps the floor instead of the share, and `/docker` gets the 8 GiB that frees: 48.78 GiB against a measured peak of 40.35 GiB of servers plus the 3.4 to 4.3 GiB a shutdown `gdb` attach adds on top of them. `/init`'s own ceiling is unchanged - the reserve was never its cap - so this takes away none of the room it uses. Worker concurrency is unchanged too: the plan derived from the budget stays at 3 workers (and 2 under `--dist=each`), so no job runs longer for this. This is the remainder of the same overrun #117202 addressed. Serializing the shutdown `gdb` attaches removed the 4-at-once pile-up and fixed shards 2/6 and 5/6, but in 6/6 the servers alone reach 39.30 GiB across 34 processes, so a single 4 GiB attach no longer fits either - and half the kills there have no `gdb` in them at all. Related: #117202 Related: #112984 https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=25dfbdb6c5dd3c0bd78c7134c14045ddb7647bcf&name_0=MasterCI&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20old%20analyzer%2C%206%2F6%29
Contributor
|
Workflow [PR], commit [251c854] Summary: ✅ AI ReviewSummaryThis PR changes the integration-test cgroup partitioning on the shared Final Verdict
|
This was referenced Sep 1, 2026
This was referenced Sep 1, 2026
This was referenced Sep 1, 2026
Algunenano
approved these changes
Sep 1, 2026
groeneai
added a commit
to groeneai/ClickHouse
that referenced
this pull request
Sep 2, 2026
Picks up ClickHouse#117364 (fixes 03707_autopr_unsupported_cases under the old analyzer) and ClickHouse#117412 (fixes the nested container memory budget that OOM-killed integration test containers), which owned two of the failures on the previous head. The Bugfix validation "Could not find master builds in S3" failures have also stopped occurring upstream.
This was referenced Sep 2, 2026
Merged
groeneai
added a commit
to groeneai/ClickHouse
that referenced
this pull request
Sep 3, 2026
Picks up ClickHouse#117412 (merge commit d65ba26), which re-budgets the integration tests' nested containers. That is the fix for the 'Container memory budget exceeded (/docker)' error that was the single root failure on the previous head.
This was referenced Sep 3, 2026
groeneai
added a commit
to groeneai/ClickHouse
that referenced
this pull request
Sep 5, 2026
Picks up three merged fixes that post-date this branch's previous master merge and that its CI run was red on: ClickHouse#117580 Bugfix validation master-build lookup for the new S3 prefix ClickHouse#117459 date-dependent toYYYYMM documentation example ClickHouse#117412 integration tests' nested-container memory budget Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Sep 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #117202
Related: #112984
Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/6)fails on master withContainer memory budget exceeded (/docker)while every test in the batch passes - 15 of the 26 master runs after 2026-08-31 12:00:https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=25dfbdb6c5dd3c0bd78c7134c14045ddb7647bcf&name_0=MasterCI&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20old%20analyzer%2C%206%2F6%29
docker_in_docker.shsplits the job's memory limit into three capped cgroup leaves and sizes/docker- the one that parents every nested test container - last, from whatever the other reserves leave. On the 61.78 GiB runner that is 40.78 GiB, and it is not enough. Across 58 collected job logs/dockerpeaked at exactly its cap in all 58, green runs included, so the leaf has no reclaim headroom at all and whether the kernel has to kill something is luck:The partition rests on an assumption the kernel's own OOM report refutes. It gives
/inita third of the job limit and/dockerthe remainder, on the grounds that/init's charge is anonymous while/dockerholds page cache that reclaim can give back. Read off the kill,/dockeris the opposite:/initand/dockerdare the ones running on cache - they peak 20 GiB above what the partition promises them (16 GiB and 2 GiB reserves) and the job cgroup still never breaches, because reclaim takes that back. The only leaf that cannot give anything back is the one being sized last.So
/initkeeps the floor instead of the share, and/dockergets the 8 GiB that frees: 48.78 GiB against a measured peak of 40.35 GiB of servers plus the 3.4-4.3 GiB a shutdowngdbattach adds on top./init's own ceiling is unchanged - the reserve was never its cap - so this takes away none of the room it uses, and the worker plan derived from the budget stays at 3 workers (2 under--dist=each), so no job runs longer for this.This is the remainder of the same overrun #117202 addressed. Serializing the shutdown
gdbattaches removed the four-at-once pile-up and fixed shards 2/6 and 5/6 (0 occurrences since), but 6/6 still fails: there the servers alone reach 39.30 GiB across 34 processes, so a single 4 GiB attach no longer fits either, and half the kills there have nogdbin them at all - the victim is aclickhouseserver.Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/117412]
Version info
26.9.1.480(included in26.9and later)