Repository navigation
Conversation
77b9b0a to
fb8ddfb
Compare
|
Workflow [PR], commit [efa6e0a] Summary: ❌
|
8e5f067 to
f9d35b8
Compare
8130e60 to
45679f0
Compare
45679f0 to
0cbc4f0
Compare
0cbc4f0 to
22b6a38
Compare
cd5c38a to
fbb1388
Compare
Master's `c3f40eb660cf` (`enable_silk_runtime`, `Common/SilkFiberScheduler.h`) and this branch's reader-executor fiber machinery (`disk_connections_use_silk`, `Common/SilkScheduler.h`) both started the process-wide `silk::FiberScheduler` directly: with both settings on the server would trap on the contrib double-init, the merged `unit_tests_dbms` would trap the same way (the branch's eager gtest environment plus master's lazy `initializeFiberSchedulerForTests`), and the two sides' fiber categories collided (`SilkFiberCategory::FETCH` and `CLICKHOUSE_FIBER_CATEGORY` were both 1) while their switch hooks blind-cast the fiber parameters to incompatible types. Now `Silk::initializeFiberScheduler` is the single owner of the contrib runtime and its switch hooks dispatch on the fiber category: fibers spawned via `Silk::spawn` keep the FiberLocalStorage swap, and fibers of one extra registered category (the reader executor's FETCH, moved to 2) are forwarded to the hooks registered via the new `Silk::setFiberHooksForCategory`. `initializeSilkScheduler` keeps the io_uring probe and reuses an already-started scheduler; the gtest environment shares the lazy test helper. `Throttler::sleep` (resolved in the merge) checks both fiber-detection conventions. The `current_thread` swap for FETCH fibers goes through the `FiberLocal` API now that master converted `current_thread` from plain TLS. Verified: `unit_tests_dbms --gtest_filter='*Silk*:*Fiber*:*Rope*'` (both conventions in one process), `*ReaderExecutor*`/`*ReadPipeline*`, and `FileCacheTest*` all pass; `clickhouse local` smoke with `use_reader_executor` 0/1 agrees.
…`/`reader_executor_block_size` in the 26.8 settings-history block The 26.8 block listed `reader_executor_window_size` twice (8388608 from the current introduction and a stale 4194304 pair left behind by an earlier merge); `reader_executor_block_size` was likewise listed twice. Kept the entries matching the current defaults in `src/Core/Defines.h`.
|
🕵 Kept the branch current — it had gone Merge
Verified locally (aarch64 release): |
# Conflicts: # tests/queries/0_stateless/03413_experimental_settings_cannot_be_enabled_by_default.sql
`master` moved on to `26.9`, so the entries this branch had added to the `26.8` block of `src/Core/SettingsChangesHistory.cpp` no longer sit in the current-version block and the `settings_changes_history` style check fails (which drops every other CI job). Moved the branch's own records to the `26.9` block: - session settings `enable_reader_executor_log`, `reader_executor_plan_look_ahead_max_window`, `reader_executor_hold_consumed` and `reader_executor_use_fibers` (new here); - `reader_executor_window_size` as a value change `4194304` -> `8388608` (`DEFAULT_READER_EXECUTOR_WINDOW_SIZE`), leaving the released `26.8` record that master already carries untouched; - `reader_executor_max_tail_for_drain` as a value change `1048576` -> `524288` (`DEFAULT_READER_EXECUTOR_MAX_TAIL_FOR_DRAIN`), leaving the `26.7` record untouched; - `MergeTree` settings `merge_reader_executor_window_size`, `merge_reader_executor_plan_look_ahead_max_window`, `merge_reader_executor_fill_ahead_lead` and `merge_reader_executor_hold_consumed`. The file is now a pure addition on top of master, so no released record is reattributed to another version.
A master merge left the header included twice, which `clang-tidy` (`readability-duplicate-include`) rejects, failing the `arm_tidy` build.
Master landed the spun-off, reviewed memory-pressure work
(`reader-executor-memory-pressure`) that this branch still carried in its
earlier form, so the conflicts are that subsystem meeting itself:
- `Common/MemoryPressureMonitor.{h,cpp}`, its gtest, `MemoryTracker::getPressure`
and `ThreadGroup`'s monitor: take master's version wholesale. It is the
reviewed iteration - shared server-wide thresholds with a generation, a
lock-free `PressureCooldown`, and a per-scope monitor hierarchy - replacing
this branch's `PressureLevelMachine` / `IMemoryPressureMonitor` design.
- `Server.cpp`: master's reload path, i.e. the renamed
`reader_executor_memory_pressure_{elevated,high,critical}_level_pct` server
settings and `setMemoryPressureThresholds`; this branch's Silk scheduler
startup and disk-socket handling are kept.
- `ServerSettings.cpp`: dropped this branch's superseded
`..._level_{1,2,3}_pct` declarations and their `system.server_settings` rows,
which master now reports from `getMemoryPressureThresholds`.
- `Defines.h`: master's `MIN_READER_EXECUTOR_SIZE` of 128 KiB and the default
threshold percents, with this branch's 512 KiB
`DEFAULT_READER_EXECUTOR_MAX_TAIL_FOR_DRAIN`.
- `ReaderExecutor.{h,cpp}` and its gtest: keep this branch's rewritten executor,
which already expresses master's pressure-adjusted sizing through
`effectiveWindowSize` / `effectiveBlockSize` (including the long-connection
admission rule master tightened), and retarget it at the new monitor API
(`CurrentThread::getMemoryPressureMonitor`, `MemoryPressureLevel::Count`).
Also size the dropped connection's drain scratch by the pressure-adjusted
block, as master does.
- `PrefetchWindowRespondsToMemoryPressure` drives the level through the query's
group memory tracker, the way master's pressure tests do, since the fake
monitor and its RAII installer no longer exist.
- `test_reader_executor_memory_pressure_config` follows the renamed settings.
`master` reshaped the fill-coordination contract while this branch kept rewriting the executor on top of the older one, so the merged tree did not build. Adapt this branch to what landed: - `CacheWriter::Claim` is `CacheWriter::FillRole`, and `committed` is the end of the committed prefix instead of an `IntervalSet`. `committedPartsIn` derives the one overlapping range from that prefix, and the mocks in `gtest_reader_executor` report their interval ledger's first gap. - `claimLeadRole` is back as a non-virtual helper on `CacheWriter`, over `committed` + `takeFillRole`: this branch asks per sub-range of a cell (a window covers only part of one), and it is exactly what the two forms answer together. A range fully inside the committed prefix takes no role. - `ICacheProvider::populatesOnMiss` is gone: a tier that does not populate resolves its misses without a writer, so the plan builder keys the fill cell off `res.writer` and the decryption-header populate off a miss that carries one. - `MemoryPressureLevel` gained a `Count` enumerator, the per-`ThreadGroup` machine became a per-scope `MemoryPressureMonitor`, and the level is read through `CurrentThread::getMemoryPressureMonitor`. - `DiskCacheWriter::committed` is now the segment's live frontier rather than a per-writer ledger, so a continuation writer sees the sibling's prefix: `SecondWriterContinuesFromCommittedFrontier` asserts the completed cell. Also, drop this branch's `reader_executor_window_size` settings-history entry - `master` records the same 4 MiB to 8 MiB change in the same `26.9` block - and count the bytes a reused long connection discards to bridge a cached gap into `ReaderExecutorPrefetchIssuedSourceBytes`, so a discarded prefetch reports the bandwidth it actually cost (an automated-review finding). `ninja clickhouse unit_tests_dbms` is green; 301 `ReaderExecutor` / `ReadPipeline` / cache-buffer / residency / memory-pressure / `FileCacheTest` / Silk gtests pass.
…, per-query cache accounting Four findings the AI review lists under "minimum required actions", plus the non-Silk reload warning: - `FileCache::tryReserve`: `QueryContext::add` returns nothing, so the freshly-inserted per-query record stayed unreachable - it was never sized on the success path, and neither the `catch` nor the `createBaseDirectory` rollback could drop it, leaving a zero-sized record behind for a reservation that failed. Read the record back under the same lock, and roll it back on both failure paths: remove it when this reservation inserted it, or give back just the size it added when the record predates it. A record is removed rather than invalidated because the query context keys its records by key and offset, so an invalidated one would be handed back by the next `tryGet`. - `LocalSourceReader` carries the caller's `read_hint`, which is what `createReadBufferFromFileBase` sizes the buffer and keys the mmap / direct-IO thresholds on, and no longer passes `StoredObject::UnknownSize` as a concrete `file_size` - the sentinel is a huge number and would turn every stat-failed read into a direct-IO one. - `DiskLocal::prepareRead` attaches the prefetch pool when the local read method is `pread_threadpool` and `local_filesystem_read_prefetch` is set, mirroring the remote path's gate. Without it `PipelineReadBuffer::prefetch` reached an executor with no pool to schedule on, so the setting was a silent no-op on the executor path. - `ReadPipeline` skips the disk cache for an unknown-size object, as it already skips the page cache: streaming until EOF has no file length to bound cache segments with, and `UnknownSize` would be taken for one. - A build without Silk now warns when `disk_connections_use_silk` is turned on by a config reload; its one-shot boot warning only covers the setting being on at startup. Also drop the duplicate `max_remote_read_connections` extern and the externs of the renamed memory-pressure settings left by the merge.
|
🕵 Kept the branch current and worked through the AI review's blocking list. Pushed three commits, head 1.
2. API reconciliation (
3. Review findings (
Three findings from the verdict are deliberately not acted on:
Verified locally (aarch64 release): |
| qid = str(uuid.uuid4()) | ||
| node.query(query, query_id=qid, settings=_pc_settings(use_long_conn, extra) if pc else _settings(use_long_conn, extra)) | ||
| node.query("SYSTEM FLUSH LOGS") | ||
| extra = ["ReaderExecutorModeledCostMicroseconds", "ReaderExecutorRequestedBytes"] |
There was a problem hiding this comment.
_measure is selecting the wrong counter here. The current implementation emits ReaderExecutorDeliveredBytes (src/Common/ProfileEvents.cpp / src/IO/ReaderExecutorStats.cpp), not ReaderExecutorRequestedBytes.
On system.query_log, an unknown ProfileEvents[...] key reads back as 0, so _cost_per_mib below collapses to zero and the fixed-small-vs-variable assertions stop proving anything about the cost-per-byte KPI. Please switch this test to ReaderExecutorDeliveredBytes, which is the denominator the production metric actually exposes.
There was a problem hiding this comment.
🕵 Fixed in 178355a56836: _measure now reads ReaderExecutorDeliveredBytes (stored as Delivered), and _cost_per_mib divides by it, so the cost-per-MiB KPI and the fixed-small-vs-variable comparison are no longer vacuous.
| /// drain - this is reachable from the noexcept destructor. No longer LENT: the lane | ||
| /// may open a fresh one. | ||
| stats += m->stats; | ||
| stats.add(Stats::PrefetchWastedSourceBytes, m->stats.get(Stats::PrefetchIssuedSourceBytes)); |
There was a problem hiding this comment.
ReaderExecutorPrefetchWastedSourceBytes is documented as real wasted bandwidth and explicitly says it excludes cache puts that already persisted in the same window, but this line still charges the cancelled machine's entire PrefetchIssuedSourceBytes.
That overstates the wasted-bandwidth metric whenever the running prefetch had already committed earlier tiles via pushChainToWriters: those bytes remain reusable from cache and are not actually discarded. Please charge only the source bytes from the uncommitted residue, or otherwise subtract the tiles that were already accepted by a cache writer before cancellation.
There was a problem hiding this comment.
🕵 Fixed in 178355a56836: cancelMachine now charges PrefetchWastedSourceBytes with issued - min(issued, persisted), where persisted is the cancelled machine's own BytesPushedToCacheSync (what pushChainToWriters committed per tile). Tiles already accepted by a cache writer stay reusable and are no longer counted as discarded bandwidth, matching the counter's description.
# Conflicts: # src/Core/SettingsChangesHistory.cpp # src/IO/ReadPipeline.h # src/IO/tests/gtest_read_pipeline.cpp # src/Processors/QueryPlan/ReadFromMergeTree.cpp
…tidy `Build (arm_tidy)` failed on the previous head with `readability-duplicate-include` in `programs/server/Server.cpp` and `src/Core/ServerSettings.cpp`: the 2026-09-08 master merge brought a second `#include <Common/MemoryPressureMonitor.h>` into both files while the branch already had one in sorted position. Keep the first copy. CI: https://github.com/ClickHouse/ClickHouse/actions/runs/34248611479/job/102138170336 PR: #103706 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Master now requires every `SystemLog` element to declare the common `clickhouse_version` and `system_processor` columns (`SystemLog.cpp` throws `LOGICAL_ERROR` at construction otherwise). `system.reader_executor_log` is the only log this branch adds, and it did not declare them, so a server with `reader_executor_log` configured (as the stateless test config does) failed to load its metadata after the master merge. Add both columns and their inserts, mirroring `FilesystemCacheLog`. Verified: server starts, `SYSTEM FLUSH LOGS reader_executor_log` produces rows with both columns populated. Co-Authored-By: Claude Fable 5.1 <[email protected]>
… prefetch accounting, test strength Implements the blocking and major items of the AI review on the previous head. - `Server.cpp`: the merged-view check of the memory-pressure threshold triple runs after `config().replace`, so a failed `SYSTEM RELOAD CONFIG` (file valid alone, merge with a command-line override out of order) kept publishing the rejected values through `config()` and `system.server_settings`. Keep the previous `default` layer (`LayeredConfiguration::find`) and put it back when the merged view is rejected, before rethrowing. Verified with a live server started with `--reader_executor_memory_pressure_high_level_pct=80`: a reload setting `elevated=85` is rejected and `system.server_settings` keeps 75; a following valid reload applies. - `DiskLocal::prepareRead`: attach the executor prefetch pool for both prefetch-capable local methods (`pread_threadpool` and `pread_fake_async`, the set `MergeTreePrefetchedReadPool::checkReadMethodAllowed` accepts), so `local_filesystem_read_prefetch = 1` is no longer a silent no-op under `pread_fake_async` with `use_reader_executor = 1`. - `ReaderExecutor::cancelMachine`: `ReaderExecutorPrefetchWastedSourceBytes` now charges only the issued bytes the cancelled worker did not already commit into cache writers (its `BytesPushedToCacheSync`), as the counter's own description promises. - `ReaderExecutorPrefetchInFlight`: describe what the gauge measures (machine lifetime, including completed-but-uncollected read-ahead). - `test_reader_executor_metric`: `_measure` read a non-existent `ReaderExecutorRequestedBytes` (always 0), which made the cost-per-MiB KPI vacuous; switch to `ReaderExecutorDeliveredBytes`. `test_page_cache_path` now also asserts every warm sample issued bytes from the page-cache tier (`ReaderExecutorBytesFromPageCache`), not only fewer source requests. - `04331_reader_executor_s3_read_introspection`: assert the contract the test comment states for the warm scan directly: zero `bytes_from_source` and zero `source_requests`. Not changed, with reasons on the threads: the per-query `FileCache` charging gate is identical to master and is being fixed in #114165. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
🕵 Kept the branch current and worked through the AI review's blocking list again. Pushed four commits, head 1. 2. 3. 4.
Not changed: the Verified locally: incremental |
Conflict resolution: - `SystemLog.h`: master moved system log descriptions into `SYSTEM_LOG_DOCUMENTATION_*` constants; added `SYSTEM_LOG_DOCUMENTATION_READER_EXECUTOR_LOG` for `system.reader_executor_log`. - `MergeTreeReaderWide`: master turned the streams map into the mutex-guarded `FileStreams` class; `updatePlannedLastMark` / `updateRequestMap` now iterate through the new `FileStreams::forEach`. - `ReadPipeline`: kept the executor early return, added master's `interruptible_reads` query status plumbing into `buildGatherStage` and its executor fallback; the unknown-size fallback stays removed as on the branch. - `DatabaseOrdinary.cpp`, `02242_system_filesystem_cache_log_table.sh`: took master. - `.gitignore`: kept both additions. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… blocks The `settings_changes_history` style check requires every record this PR adds to sit in the current version block; master bumped to `26.10`, so the records added in the `26.9` blocks of `getSettingsChangesHistory` and `getMergeTreeSettingsChangesHistory` are moved there. Also drop the duplicate `Interpreters/Context.h` include in `ReadPipeline.cpp` left by the master merge. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=103706&sha=178355a568363312d1b10cf197199c853f5c79a9&name_0=PR&name_1=Style%20check PR: #103706 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
`MergeTreeReaderStreamSingleColumn::getLeftOffset` loaded the marks of every stream to convert the planned mark ranges into file offsets, including streams whose data file is empty (for example, the `SharedVariant` streams of `JSON` paths with a single type). All marks of an empty file point to its beginning, so return 0 without loading them, as `getRightOffset` does. This broke `05109_json_empty_streams_marks_not_loaded` (34 marks files loaded instead of 22) on both the legacy and the `ReaderExecutor` path. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=103706&sha=178355a568363312d1b10cf197199c853f5c79a9&name_0=PR&name_1=Fast%20test PR: #103706 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
🕵 Merged
|
Builds on top of #103234 (ReadPipeline). Gated by
SET use_reader_executor = 1(experimental, default off).This commit replaces the matryoshka of
ReadBufferwrappers with aReaderExecutorthat owns offset mapping, cache decisions, prefetch and decryption in one place. Caches plug in via a uniformICacheProvider/ICacheHandleAPI.What this brings
Zero-copy page-cache hits. Reads served from
PageCachereach the caller as ashared_ptrinto the mmap'd cell — nomemcpybetween cache and working buffer (compare toCachedInMemoryReadBufferFromFile's per-block copy).Connection reuse across remote read calls. Sequential reads against the same S3/Azure/HTTP object reuse an open buffer instead of issuing a new HTTP request per window.
SourceBufferLimitcaps live connections globally (max_remote_read_connections, default 1000); over-limit reads fall back to stateless open-read-close. Visible viasystem.remote_read_connections.Coordinated cache + prefetch decisions. The matryoshka design had each layer making independent choices (prefetch ahead in
AsynchronousBoundedReadBuffer, decide what to cache inCachedOnDiskReadBufferFromFile, gather across objects inReadBufferFromRemoteFSGather). The executor sees the whole window:Per-object cache identity, not per-pipeline.
DiskCacheProviderderivesFileCacheKey/FileCacheOriginInfoperStoredObject(etag-keyed caching forStorageObjectStorageSource, segment-key-type classification forDatavsSystemqueues). The old single-key-per-executor approach silently shared cache identity across all objects in a gather-mode read.Foundation for new cache backends. New caches (vector cache, distributed cache, etc.) implement one interface (
ICacheProvider::lookup) and plug into the chain without touching read paths.Observability
system.remote_read_connections— open connections (path, query id, position, elapsed)system.reader_executor_log— per-executor stats (cache hit/miss/populate bytes, prefetch hits/cancellations, source request count, decrypt time, …)ProfileEvents:ReaderExecutor*counters and microsecond timers;LiveSourceBuffer*countersHistogramMetrics: cache get/populate/source-read/prefetch-wait latenciesServer settings
reader_executor_prefetch_pool_size(default 8) — shared prefetch thread pool sizereader_executor_prefetch_queue_size(default 0 =pool_size * 10) — pool queue depthmax_remote_read_connections(default 1000) — live-buffer slot count, reload-ableInternals
Rope/RopeNode/OwnedRopeBuffer— refcounted buffer chains with mixed provenance (owned, page-cache-pinned), built-in cursor (peek/advance/tryRewind), sorted-on-insert nodes, disjoint-interval coverage tracking.ICacheProvider/ICacheHandle— uniform cache API (lookup → status/get/put). Two implementations:PageCacheProvider(file-level, zero-copy),DiskCacheProvider(per-object, FileCache-backed).ISourceReader— stateless range-read interface.LocalSourceReader,ObjectStorageSourceReader,BufferSourceReader(adapter for backup /BufferCreator).OffsetMap— replacesReadBufferFromRemoteFSGather's gather logic with a logical-to-(object, object-offset) lookup; supports single-object unknown-size (S3HEADwithoutContent-Length→ streams to EOF).ReaderExecutor— owns: position, offset map, cache chain, prefetch handle, live buffer, over-read tail, source-buffer slot.PipelineReadBuffer— thinReadBufferFromFileBaseexposing the executor throughBufferBase::set/next/seek(so legacy callers see no change).PrefetchThreadPool— shared bounded pool, returnsnullptron overflow (sync fallback), task cancellation is race-free.Testing
~3,700 lines of tests (≈46% of the PR), 130+ gtest cases:
gtest_rope— 31 cases (append / peek / advance / tryRewind / slice / copyTo / coverage queries / shift).gtest_reader_executor— 41+ cases (cache-chain combinations, per-object lookup, prefetch races, EOF release, slot leak fixes, unknown-size streaming, …).gtest_filecache— 22 cases including over-read / bypass-mode / partial coverage scenarios.gtest_read_pipeline— known/unknown size selection through the executor.04262_reader_executor_observabilityplus opt-outs (SET use_reader_executor = 0) on tests that intentionally exercise the legacy path.Load tesing
the simpliest cache API"
changed cache API (stream aware):
That is good outcome. I need to optimize the work with caches. Need to stream data from available cache segments without any additional costs.
sha -- dd4ae00fdaac (26.7.1.1)
First build with every regime at parity or better. The warm coordination-CPU tax and the populate cache-write regression are both gone; populate over-read down to 14%. Run under production-default networking (
disk_connections_rcvbuf=204800,max_remote_read_connections=1000), withreader_executor_use_long_connections=1set explicitly (its default flipped to 0 on this build). Long-connection hit rate 99.5–100% on all regimes.sha -- fcccec1c7e6c (26.7.1.1) — equal-workload methodology
Methodology fix: both arms now run the identical query multiset (
--iterations, sequential — no--randomize), metric = total wall time. The earlier windowed-QPS numbers systematically penalized the faster arm (a free benchmark worker draws a new random query, so the faster arm attracts more heavy queries) — warm was reported −9…−14% but is actually +48%;evict= new regime with the FileCache as a transit buffer (continuous eviction, no cross-query hits).The executor is faster in all five cache regimes; the 128-thread stress arm now completes without stuck queries (previously required
KILL QUERY), with 4× fewer sockets than legacy. No correctness errors or crashes across the campaign sincec089b7e5.Known remaining costs (per-query analysis): (1) cold/partial S3 over-read 2.2–2.8× from prefetch speculation; (2) on mixed cache regimes small queries regress 2-3× —
cache_getreturns zero bytes for data that is present (FileSegmentWaiton DOWNLOADING segments, then reads from source anyway) plus block-granular request amplification on narrow columns (~90 MiB requested for a 5 MiB column), paid at S3 first-byte latency with ~90% of prefetches cancelled.sha -- 018c0257567b (26.7.1.1) — plan-look-ahead window build
Same equal-workload methodology (identical 186-query multiset per arm). Since the workload is fixed, executor wall times are directly comparable across builds: vs
fcccec1cthe executor improved on cold (705→619 s, −12%), populate (516→478 s, −7%) and partial (540→518 s, −4%) — the plan-window changes helped. Baseline wall times swing between rounds (legacy path + master merge + day variance), so cross-build conclusions should use the executor-vs-executor columns, not the ratios.Also corrected with the fixed workload: the true equal-work S3 over-read is ~2.0× on cold and ~2.3× on partial (the earlier 2.8–2.9× figures were inflated by the windowed methodology — the faster arm simply ran more queries per window). Stress arm self-completed again (4th consecutive build). No
Code: 33, no crashes.sha -- 2b43930ebbcf (26.8.1.1) — read-path log cut + settings-history dedup
Two rounds this cycle. The morning round (head
a6465d03) exposed a hot-read-path logging tax:PipelineReadBufferlogged oneTracemessage per window advance (6.3M messages per warm arm) plus ~1M per-bufferDebug"Created" messages, costing 795 s of thread time per arm (baseline: 6.7 s) — roughly 14% of the CPU budget on cache-served regimes, which showed as warm/populate 0.95×. The same-day fix (da34b431) is verified by this round: logger time dropped 795 → 170 s, allocation volume dropped 5.85 → 1.94 TB ≈ baseline's 1.84 TB (most of the long-standing "executor allocates ~4× more" observation was log-message formatting), and executorUserTimeis now below baseline on warm. Populate flipped to parity-plus; warm is at 0.99× with the residual logger time still 34× baseline — a few more sites may be worth demoting.S3 over-read: populate 1.01× and evict 1.03× (the executor no longer over-fetches where the cache absorbs writes), cold 1.20× while making 7× fewer GETs at ~11 MiB each (this is what buys the 1.57× cold wall), partial 1.38× — the remaining cost item.
The evict 0.92× turned out to be regime noise: a clean repeat pair on the settled cluster came back 323/279 s = 1.16× in the executor's favor, matching the morning round's 1.17× (evict has a history of single-pair swings — 0.78× → 1.18× between two runs of one build earlier). Verdict: executor ≥ baseline in all five regimes.
Environment notes for cross-entry comparison: starting with this cycle the staging instance's default profile
compatibilitywas bumped25.12→26.8, which changes effective defaults for both arms — all walls in this entry are ~2× faster than in previous entries for that reason; compare ratios, not walls, across entries. Relatedly, the settings-history dedup in this head means Cloudcompatibilityno longer resurrects the pre-release 8 MiBreader_executor_plan_look_ahead_max_windowintroduction default on private builds.Zero failed queries, no
Code: 33, no crashes across all 20 arms of both rounds.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Add experimental
ReaderExecutorfor pipeline-based read orchestration with unified cache API (PageCacheProvider,DiskCacheProvider), connection reuse for remote reads, a shared prefetch pool, and observability via thesystem.reader_executor_logtable andReaderExecutor*ProfileEvents/CurrentMetrics. Enable withSET use_reader_executor = 1.Documentation entry for user-facing changes
Workflow [PR]
Sync PR [sync-upstream/pr/103706]