Repository navigation
Real cache size - #79490
Real cache size #79490
Conversation
|
@kssenii Could you add labels to test PR? |
fc4e793 to
e3e450b
Compare
|
From previous commit, where there was "invalid check_status.txt" in run.log: Need to use here |
9db3ffe to
7253282
Compare
516514c to
050df75
Compare
…umn descriptions The AI review noted that the guide explains how `use_real_disk_size` affects `current_size` in `system.filesystem_cache_settings` and leaves `system.filesystem_cache.size` as the logical segment size, while the source-registered column descriptions - which are the source of truth for the autogenerated system-table references - still said only `Current cache size` and `Size of the file segment`. Tighten both descriptions so the structured reference documentation states the same contract. The generated regions under `docs/reference/system-tables/` are not edited here: they are refreshed by the documentation autogeneration workflow from these comments.
|
🕵 Addressed the remaining AI review nit and merged Review nit — system-table column descriptions (
The generated regions in Master merge (
The previous commit was fully green apart from |
|
🕵 Merged |
…he priority queue; bump upgrade gate to 26.10 `getUsedCacheSize` reads `main_priority->getSizeApprox`, which also includes transient holds from `LRUFileCachePriority::holdImpl`, so `current_size` is not only the sum of file segment reservations. Master bumped `VERSION_MINOR` to 26.10, so the previous release in the upgrade check (26.9) does not know `use_real_disk_size`; strip it for versions below 26.10. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
🕵 Merged master (single merge base, no conflicts), which also pulls in #119810 — the fix for the |
Resolved conflict in `FileCache::doTryReserve`: took master's `rollback_main_entry` lambda, keeping the PR's `aligned_delta` for the size rollback.
…t_size` The process-wide `FilesystemCacheSize` metric and eviction-size profile events sum over all caches, so they are uniform only when all caches use the same mode. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # docs/concepts/features/configuration/server-config/storing-data.mdx
|
🕵 Merged |
|
🕵 Merged CI has not run on this branch since 2026-10-04: the |
|
📊 Cloud Performance Report ✅ AI verdict: This PR adds an opt-in use_real_disk_size setting for the filesystem cache, which counts cache reservations in filesystem-block-aligned units. The setting is off by default, and with it off the new code returns the same sizes as before. The only flagged query is clickbench Q30. It shows +10.3% (242.0 vs 219.5 ms), but that is inside master's current run-to-run range, and CPU time did not move (2330.6 vs 2315.1 ms). It stays not_sure and cannot be attributed to this PR, and no other query changed. clickbenchFlagged queries (1 of 43)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 No significant changes Debug info
|
alexey-milovidov
left a comment
There was a problem hiding this comment.
This is clean and straightforward.
# Conflicts: # tests/docker_scripts/stress_runner.sh
|
🕵 Merged |
|
🕵 The CI failures on
I re-ran the failed jobs (run attempt 4).
|
aa8b9aa
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Added a new filesystem cache setting
use_real_disk_size(disabled by default). When enabled, cache reservations are accounted in filesystem allocation units (block size) instead of raw reserved bytes, so theFilesystemCacheSizemetric, the eviction-size metrics, andcurrent_sizeinsystem.filesystem_cache_settingsuse block-aligned reservation accounting. The accounting is a block-aligned approximation of the reservation footprint on disk, not the exact allocated size; an in-flight read can include reserve-ahead bytes that have not yet been written.Documentation entry for user-facing changes
Documented the
use_real_disk_sizefilesystem cache setting indocs/concepts/features/configuration/server-config/storing-data.mdx. It accounts cache reservations in filesystem allocation units (block size), soFilesystemCacheSize, the eviction-size metrics, andcurrent_sizeinsystem.filesystem_cache_settingsuse block-aligned reservation accounting (a block-aligned approximation of the reservation footprint on disk). The per-segmentsizeinsystem.filesystem_cacheis not affected by this setting and stays the segment's logical range size; for a partially downloaded segment, usedownloaded_sizefor the bytes actually written.Workflow [PR]
Sync PR [sync-upstream/pr/79490]
Version info
26.10.1.2433-master(included in26.10and later)