Skip to content

CI: bump rss_limit_mb to 8192 for create_parser_fuzzer to stop chronic OOMs - #105252

Merged
yakov-olkhovskiy merged 1 commit into
ClickHouse:masterfrom
groeneai:groeneai/fix-create-parser-fuzzer-oom
May 19, 2026
Merged

yakov-olkhovskiy merged 1 commit into
ClickHouse:masterfrom
groeneai:groeneai/fix-create-parser-fuzzer-oom

Conversation

@groeneai

@groeneai groeneai commented May 18, 2026 •

Copy link
Copy Markdown
Collaborator

create_parser_fuzzer has been failing chronically with libFuzzer out-of-memory for weeks, with the actual usage sitting just above the hardcoded 6144 Mb limit. CIDB shows 55 OOM hits across 49 unrelated PRs in the last 30 days (peaking at 17 hits / 17 PRs on 2026-05-17 alone).

The reported used: values cluster around 6221-7329 Mb:

metric value
min observed used 6221 Mb
avg observed used 6554 Mb
p95 observed used 7329 Mb
max observed used 8830 Mb
current limit 6144 Mb

54 of 55 observed OOMs (98%) fall under 8192 Mb. The 6144 limit is essentially at the typical working-set mean for this fuzzer, so any input that triggers even moderate extra allocations during parsing trips the limit.

Fix

Bump rss_limit_mb from 6144 to 8192 in tests/fuzz/create_parser_fuzzer.options, following the same precedent as the recently merged PR #105134 which bumped clickhouse_fuzzer from 2048 to 4096 for the same class of "just-barely-over-the-limit" chronic OOMs.

The limit is still active (8 GB is not unlimited), so genuine large memory regressions above 8 GB will still be caught. Existing precedent for rss_limit_mb values across the fuzz suite:

fuzzer rss_limit_mb
clickhouse_fuzzer.options 4096
data_type_deserialization_fuzzer.options 4096
execute_query_fuzzer.options 4096
create_parser_fuzzer.options (this PR) 8192

Sibling work

Filed at the direct request of @alexey-milovidov on PR #100938 (#100938 (comment)).

CIDB query used

SELECT
    count() AS hits,
    count(DISTINCT pull_request_number) AS distinct_prs,
    countIf(pull_request_number = 0) AS master_hits,
    countIf(pull_request_number > 0) AS pr_hits,
    max(toUInt64(extract(test_context_raw, 'used: ([0-9]+)Mb'))) AS max_used,
    avg(toUInt64(extract(test_context_raw, 'used: ([0-9]+)Mb'))) AS avg_used,
    quantile(0.95)(toUInt64(extract(test_context_raw, 'used: ([0-9]+)Mb'))) AS p95_used
FROM default.checks
WHERE check_name = 'libFuzzer tests'
  AND test_status IN ('FAIL', 'ERROR')
  AND test_name LIKE '%create_parser_fuzzer%'
  AND test_context_raw LIKE '%out-of-memory%'
  AND check_start_time > now() - INTERVAL 30 DAY

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Bump libFuzzer rss_limit_mb to 8192 for create_parser_fuzzer to fix chronic OOMs at the previous 6144 Mb limit.

Documentation entry for user-facing changes

  • Not required (CI-only configuration change)

Version info

  • Merged into: 26.5.1.861

…c OOMs

`create_parser_fuzzer` has been failing chronically with `libFuzzer
out-of-memory` for weeks, with the actual usage sitting just above the
hardcoded 6144 Mb limit. CIDB shows 55 OOM hits across 49 unrelated PRs
in the last 30 days (peaking at 17 hits / 17 PRs on 2026-05-17 alone).

The reported `used:` values cluster around 6221-7329 Mb (avg 6554 Mb,
p95 7329 Mb, max 8830 Mb). 54 of 55 observed OOMs (98%) fall under
8192 Mb. The 6144 limit is essentially at the typical working-set
mean for this fuzzer, so any input that triggers even moderate
extra allocations during parsing trips the limit.

Bump `rss_limit_mb` from 6144 to 8192 to match the chronic working set,
following the same precedent as PR ClickHouse#105134 which bumped `clickhouse_fuzzer`
from 2048 to 4096 for the same class of "just-barely-over-the-limit"
chronic OOMs.

The limit is still active (8 GB is not unlimited), so genuine large
memory regressions above 8 GB will still be caught.

Sibling change: PR ClickHouse#104922 (merged) bumped `select_parser_fuzzer`
via `max_parser_backtracks`. This PR addresses the parallel
`create_parser_fuzzer` family.
@groeneai

Copy link
Copy Markdown
Collaborator Author

Pre-PR validation gate (per task policy):

# Question Answer
a Deterministic repro? Yes — chronic CIDB pattern. 55 OOM hits / 49 unrelated PRs / 30 days; 17 hits / 17 PRs on 2026-05-17 alone. Query in PR description.
b Root cause explained? Yes — create_parser_fuzzer's typical working-set RSS sits at ~6.5 GB (avg 6554, p95 7329), with the hardcoded limit at 6144 Mb essentially below the mean. Any input pushing 1-2% above mean trips the limit. Not a code bug; this is a configuration mismatch.
c Fix matches root cause? Yes — bump the limit to cover 98% of observed working-set RSS (8192 Mb covers 54/55 observed cases). Same approach already approved & merged in PR #105134 for clickhouse_fuzzer.
d Test intent preserved? Yes — limit still bounded (8 GB ≠ unlimited), so any genuine memory regression above 8 GB will still be caught. The 1 observed case at 8830 Mb in 30 days would still flag if it became recurring.
e Both directions demonstrated? Statistical (same as PR #105134): with 6144 limit → 55 OOMs / 30 days. With 8192 limit → 1 OOM / 30 days (98% reduction). For pure config bumps in tests/fuzz/*.options, local libFuzzer reproduction against the 30-day corpus is impractical; the CIDB data is the validation.
f Fix general, not narrow patch? N/A — this is a CI configuration value, not a code bug. The single line is the entire fix.

Session: cron:clickhouse-ci-task-worker:20260518-163000

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @alexey-milovidov — this is the separate fix-PR you requested on #100938 for the chronic create_parser_fuzzer OOM. Could you take a look?

@nikitamikhaylov nikitamikhaylov added the can be tested Allows running workflows for external contributors label May 18, 2026
@clickhouse-gh

clickhouse-gh Bot commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [1f3a91e]

Summary: ✅


AI Review

Summary

The PR changes tests/fuzz/create_parser_fuzzer.options by raising rss_limit_mb from 6144 to 8192 to address chronic libFuzzer OOM failures in CI. I found no unresolved correctness, safety, or CI reliability issues in the current diff and no live prior inline threads requiring follow-up.

Final Verdict
  • Status: ✅ Approve

@yakov-olkhovskiy
yakov-olkhovskiy added this pull request to the merge queue May 19, 2026
Merged via the queue into ClickHouse:master with commit f577f85 May 19, 2026
166 checks passed
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants