Repository navigation
Commit 8174a13
Make
CI for #104976 showed that
the default ratio of `1.0` causes widespread `MEMORY_LIMIT_EXCEEDED`
errors in the ASan + UBSan stateless tests: under those sanitizers the
gap `resident - tracked` is dominated by sanitizer shadow memory rather
than tracker bookkeeping lag, so doubling the apparent RSS pushes the
tracker past `max_server_memory_usage` and stops ordinary, non
memory-stress queries. Failing checks (~282 stateless tests in each
shard):
- https://github.com/ClickHouse/ClickHouse/actions/runs/25880162948/job/76062000101
- https://github.com/ClickHouse/ClickHouse/actions/runs/25880162948/job/76062000097
The mechanism is still useful in OOM-stress scenarios as documented in
the PR description, so keep the setting but make it opt-in: change the
default from `1.0` to `0.0`. Operators wanting the OOM-survival
behaviour set the ratio explicitly (per the PR's own stress harness,
e.g. `ratio = 1.0` or `2.0`).
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>memory_worker_rss_speculative_reserve_ratio default to 0 (opt-in)1 parent f451d0c commit 8174a13
2 files changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1171 | 1171 | | |
1172 | 1172 | | |
1173 | 1173 | | |
1174 | | - | |
| 1174 | + | |
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
| |||
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
1186 | 1186 | | |
1187 | 1187 | | |
1188 | 1188 | | |
| |||
0 commit comments