Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked open and closed issues.
This issue tracks the Nov 4-6 Main Wiki 10M performance decline, with time-aligned server evidence. It is a confirmed execution-performance incident and a code-regression candidate, not a proven first-bad commit or a proven new cache algorithm defect.
- [Bug]: Main Wiki IVF throughput drops across Oct 9-11 (only/POST 970 -> 432 -> 160 QPS); regression attribution pending #29868 is closed and records the Oct 9-11 incident. Similar symptoms do not prove the same cause or invalidate its closure.
- [Bug]: 4.2-dev duplicates warm DiskCache reads/conversions after concurrent MemCache misses #32223 is open but specifically covers 4.2-dev duplicate warm-DiskCache reads/conversions. The Main version here contains the shared-decode/fill-notification path, so that branch gap cannot be assumed to explain this event.
- [Refactoring]: S3-FIFO memory cache that owns its references, LRU disk cache #32274, [Subtask]: Make local file-page discard policy bounded and reuse-aware #30848 and [Subtask]: Reduce measured decoded-cache reconstruction and copy cost within budget #30849 discuss related cache ownership/admission, file-page discard and decoded-data copying. They do not establish the cause of this particular decline. Link the eventual proven mechanism rather than assuming those proposals fix it.
- [Bug]: 10M IVFFlat workload intermittently closes RPC/backend connections #27757 concerns connection failures; the current twelve measured rounds have no query or connection failures.
Branch Name
main
Commit ID
- Nov 6 report:
61e31d219a2072bd11f4d0dcf8a619ca52a28a47. - Nov 5 report:
36c998364982.
Dates refer to Beijing report dates (UTC+8), not the UTC workflow start date. These are the tested MO versions, not a claim that current branch HEAD has been tested.
Other Environment Information
- Nov 6 run 42051456024, Wiki job 127448828334, native performance checker 127578320618.
- Nov 5 Wiki job 126784736266.
- Nov 4 Wiki job 126137835358.
- TKE Family, 1 TP + 2 AP CNs; each CN 14 CPU / 55 GiB, Memory Cache 16 GiB,
GOMEMLIMIT=25000MiB; TN 32 GiB / Memory Cache 5 GiB. - Wiki 10M, 768 dimensions, IVF L2, 100 workers, 10,000 queries per round, K=10, probe=5, two formal rounds per mode.
- Vector benchmark
0bae04528673d7756c4ee2478ac8e4e41f54df1b; recorded query/GT/mapping identities agree. This is input identity, not independent GT provenance. - Main uses the Proxy AP route, not 4.2's fixed-AP mode. The routing probe reaches both APs; the only/POST diagnostic uses two readers. This does not prove each AP owns equal-sized working sets.
- Current namespace:
mo-main-family-42051456024-1; APsnightly-regression-dis-ap-cn-x44tgandnightly-regression-dis-ap-cn-dvt8q. - Prior namespace:
mo-main-family-41854256496-1; APsnightly-regression-dis-ap-cn-6pngtandnightly-regression-dis-ap-cn-gzw4j. - Nodes and physical objects differ across runs. This is not a fixed-physical-data A/B.
Actual Behavior
1. Sustained measured slowdown, not an error-count penalty
Formal second-round QPS:
| Mode | Nov 4 | Nov 5 | Nov 6 | Nov 6 vs Nov 5 |
|---|---|---|---|---|
| only/POST | 400.22 | 222.97 | 71.37 | -68.0% |
| filter/PRE | 94.72 | 66.94 | 41.77 | -37.6% |
| filter/POST | 331.60 | 260.72 | 74.52 | -71.4% |
| threshold/PRE | 104.81 | 86.47 | 53.03 | -38.7% |
| threshold/POST | 319.53 | 188.08 | 142.37 | -24.3% |
Current only/PRE is 76.45 QPS in round 2. Do not manufacture a Nov 5 round-2 only/PRE comparison: its first round had a query error and the second was not executed. This also means prior warm-up history is not completely identical.
Current only/POST is slow in both rounds: 74.67 / 71.37 QPS, versus 219.63 / 222.97 previously. Second-round P99 rises 1331.60 ms -> 4215.73 ms. Each POST round completes 10,000 requests with zero query/connection errors. Current six modes complete both rounds; quality audits pass within their sampled scope and recall remains close.
The native checker flags all six current Wiki QPS metrics REGRESSION_SUSPECTED, with confirmation_required=true. Its performance series is vector-v1-main-0ed0071130f5d78caa8b7f469bafeda0643fd7dabb3e2682f8144a3e62efde61. The provisional baseline has only two healthy samples; it is not a completed controlled regression proof. In particular, the current published history is not simply yesterday's slower value.
2. The slow formal second round is DiskCache-heavy on one AP
Current only/POST round 2 runs approximately 2026-11-05 18:41:44-18:44:05 UTC, i.e. Nov 6 02:41:44-02:44:05 Beijing.
Prometheus one-minute rates sampled every 30 seconds within 18:42:00-18:44:00 UTC:
| Measurement | AP x44tg | AP dvt8q |
|---|---|---|
| CPU, average cores | 11.60 | 2.25 |
| FileService DiskCache hit entries/s | 1000.62 | 0.74 |
| FileService S3 read entries/s | 0.28 | 0.28 |
| cgroup physical read throughput | 2,637,680,871 B/s (~2.46 GiB/s) | ~168 B/s |
| SHARED MemCache in-use | ~15.95 GiB | ~16.00 GiB |
Raw device/container labels were inspected: the high read counter belongs to x44tg's live main container and data device, not a sum of duplicate old containers. Counters are cache-entry counts, not SQL counts or object-byte sizes. Physical I/O is container-wide; the profile below ties the dominant CPU read path to IVF, but not every I/O byte has a statement ID.
The prior only/POST comparison window (Nov 4 UTC 18:47:30-18:48:15, 15-second samples with one-minute smoothing) shows ~1.25 GiB/s on AP 6pngt and ~3.1 MiB/s on gzw4j. Its short window and smoothing include adjacent only/POST work; do not present it as an exact per-query physical-byte counter.
Matching archived CPU profiles show:
| CPU stack share | Prior hot AP 6pngt | Current hot AP x44tg |
|---|---|---|
DiskCache.Read, inclusive |
29.51% | 70.14% |
readChunkedColumnTopN, inclusive |
20.75% | 69.55% |
internal/runtime/syscall/linux.Syscall6, self |
11.57% | 34.91% |
runtime.memmove, self |
17.14% | 31.50% |
Current L2 distance self CPU is ~2.74%; LZ4 decode self CPU is ~0.58%. Thus it would be inaccurate to recycle an older diagnosis that LZ4 decompression itself dominates this particular sample. Inclusive frames overlap and must not be added. Profiles are merged sample distributions, not wall-clock I/O-wait measurements; small frames may be truncated by the profile renderer.
This establishes a real change in the hot execution path: chunk reads / DiskCache / kernel work / copying are much more prominent, despite both memory caches being occupied. It does not prove incorrect eviction, duplicate same-key fills, a disk bandwidth limit, or incorrect routing.
3. Code path at the tested revision
- ObjectIO Top-N column reading first checks for a cached decoded full column. An eligible chunked column that misses that probe goes through
readChunkedColumnTopN; selected chunks are read separately. This path setsSkipFullFilePreloads. - FileService reading includes shared-decode/fill notification and a MemCache recheck before DiskCache. Therefore, the missing-coalescing 4.2 mechanism in [Bug]: 4.2-dev duplicates warm DiskCache reads/conversions after concurrent MemCache misses #32223 cannot simply be assigned to this Main run.
- DiskCache can satisfy a requested extent from an entry file or a full-object cache file, read it, and advise file pages away. The observed kernel/copy costs justify inspecting this path, but do not prove
fadviseis the cause.
Post-suite query-0 EXPLAIN ANALYZE retains the same query vector, IVF index, probe=5 and two readers. Previous/current diagnostics report 145/153 entries blocks, 160/172 vector chunks, 15,490/16,208 scored rows, and approximately 1.546/1.597 GB logical decoded vector bytes. These are not physical disk bytes. The approximately 3.3% diagnostic-byte difference alone does not explain a threefold throughput difference. One post-suite query does not characterize all 10,000 timed queries; its chunk-cache hits do not prove the concurrent timed workload was fully cached.
4. Merge and concurrent-workload boundaries
- IVF prepare completes at 18:14:53 UTC. The AP TPCH job completes at 18:33:19; IVF queries start at 18:33:35. The gap after prepare is about 19 minutes, not hours of verified physical convergence.
- TP No-PK work runs 18:15:10-20:09:31 and shares TN.
- ANLI, FullConcurrent and MOTR have not started during this IVF window. They cannot explain this event by direct concurrent queries.
- During only/POST round 2, TN records
MergeExecutorEvent-PauseDueToOOMAlertand zero available merge budget, including a 18:41:47 budget record. This is memory-pressure scheduling, not proof of OOMKilled; final Main resource checks show no pod restarts. - Wiki base-table merge events exist before and after this round: early merges finish around 18:34:02; the next observed base-table merge starts at 18:49:55. Later modes overlap base-table merges.
- The collected narrow-window logs do not establish an active Wiki entries-table merge in only/POST round 2. Therefore, "Merge was changing the IVF index throughout the slow round" is not a proven root cause. TN budget pressure may influence layout convergence, but that causal transition remains unmeasured.
Expected Behavior
Explain and address the repeatable-within-run throughput/latency cliff without relaxing correctness checks, hiding it under a fresh baseline, or declaring a PR guilty from chronology alone. Cache hit/miss accounting and useful physical work should identify whether this is layout/working-set sensitivity, admission/reuse behavior, node-local I/O, or an image-induced change.
Steps to Reproduce
The linked native runs are the observed evidence. A controlled reproduction has not been performed in this investigation.
- Preserve the existing Wiki 10M inputs, topology, index parameters and 100-worker six-mode script.
- For a bounded follow-up, use a reproducible physical-data snapshot and fixed nodes/resources. Do not reload/rebuild the index independently for each image and call that a code-only A/B.
- Run only/POST and filter/PRE on the previous and current image in isolated version-compatible environments, with equivalent cache state. Do not downgrade a live cluster or share a writable data prefix between versions.
- Record base and entries object identities, per-CN unique chunk working sets, MemCache admissions/evictions, DiskCache entry bytes, actual device I/O, CPU profiles and background merge state during each round.
- Separate stable-object and active-background-work phases. If the image effect persists, bisect the validated interval; otherwise quantify the operational/physical-layout condition and its acceptance criteria.
Additional information
The current evidence proves the performance loss and locates its dominant sampled cost; it does not prove a specific introducing commit. The previous-to-current interval contains shared planner/read changes, including #31773, #32168, #32191 and #32224, but proximity or touched files are not causal attribution. No revert is recommended on the present evidence.
Read-only evidence was collected from Actions artifacts, TKE Prometheus, Loki and Pyroscope. No MO code/configuration change, cache clearing, pod restart, workload rerun or new cluster was performed. Raw local evidence is retained under /tmp/mo-review-20261106/; the public reproduction references are the Actions jobs above.
Re-query selectors on the CI Grafana datasources, with the exact namespace/pod/window above:
rate(container_fs_reads_bytes_total{namespace="mo-main-family-42051456024-1",container="main"}[1m])
rate(container_cpu_usage_seconds_total{namespace="mo-main-family-42051456024-1",container="main"}[1m])
rate(mo_fs_read_total{namespace="mo-main-family-42051456024-1",type=~"hit-disk|read-disk|s3"}[1m])
mo_fs_cache_bytes{namespace="mo-main-family-42051456024-1",component="SHARED-mem",type=~"inuse|cap"}
process_cpu:cpu:nanoseconds:cpu:nanoseconds{namespace="mo-main-family-42051456024-1",pod="nightly-regression-dis-ap-cn-x44tg"}
Activity