Repository navigation
Description
Description
Sysbench 1000W Random Ranges throughput drops by about 34.5% across the merge commit of #32492 on 129. Two alternating parent/child runs reproduce the drop under the same isolated Slot A settings. This is a measured performance regression; the underlying code path has not yet been identified.
Environment
- MatrixOne parent (good):
f70c37b16e2d2378dd6d48775df0f29c610dce6b. - MatrixOne child (bad):
49d552e16cfb7fb9160210d19f2874dc4a71272c, the merge commit of perf(exec): consume selected scan batches through expressions and operators #32492; its sole parent is the good commit above. - Server 129, isolated Slot A, 28 logical CPUs on NUMA node 0; MO memory limit 84 GiB, GOMEMLIMIT 76 GiB.
- Sysbench Random Ranges: 10 tables × 10,000,000 rows, 1,000 threads, 300 seconds; the dataset manifest SHA-256 is
68ff36e72e7e49eb2b6eb4fabe5df85c9789539e71119f2a667c61b44728f814in all four runs. This hashes the dataset manifest, not each CSV's contents. - The fixed-Slot-A workflow branch changes only
BM129_REQUESTED_SLOTfrom the normal matrix policy toa, retaining normal admission, test, and cleanup controls.
Steps to reproduce
On an idle 129 with adequate resource gates, run .github/workflows/mo-binary-search-on-129-new.yaml on codex/bisect-fixed-slot-a-20261117, alternating the two commits with:
Test_list=sysbench1000w
SYSBENCH_TEST_LIST=sysbench1000w.random_ranges_1000
After_Run=cleanup
Read results/nightly/normalized-metrics.tsv and the Sysbench summary in each run artifact. The test uses select_random_ranges.lua, --range_selects=off --point_selects=1.
Actual behavior
| Commit | Run | TPS | Ignored errors |
|---|---|---|---|
parent f70c37b1 |
44019969603 | 18,481.35 | 0 |
child 49d552e1 |
44017407741 | 12,031.48 | 0 |
child 49d552e1 |
44022209006 | 12,137.97 | 0 |
parent f70c37b1 |
44024602043 | 18,440.16 | 0 |
The mean TPS is 18,460.76 for the parent and 12,084.73 for the child: 34.5% lower. Two runs per side were completed; no third repetition is claimed.
Expected behavior
Random Ranges throughput should not regress by more than the nightly gate of 25% under matching conditions.
Stability and controls
- The earlier nightly AB half-host run 43893967156 attempt 2 reported 12,125 TPS versus a five-run baseline median of 18,347 TPS. Nightly runs AP/TP concurrently; the isolated Slot A reruns above have a different concurrency topology and should not be treated as identical to that nightly run.
- Two endpoint checks: earlier good
294076ed18,368.54 TPS (44006857268); later bad8e8708a811,982.79 TPS (44009387892). Additional intermediate commits835431f9and470a57c2produced 12,015.51 and 11,353.97 TPS, respectively. - All four parent/child runs succeeded with zero ignored errors, and each dedicated lease/watchdog was released by the workflow. These results demonstrate throughput differences, not SQL result correctness or a specific implementation cause.
Evidence
Code analysis
Bisection identifies the merge of #32492 as the first tested bad commit in this range. The specific function or mechanism responsible is not established; please inspect the selected-scan-batch changes and compare query profiles/plans before drawing a code-level conclusion.
Regression coverage
After diagnosis, retain a matching Random Ranges performance comparison and validate correctness and resource ownership separately.
Activity
fix(compile): preserve prepared TP expression reuse (#32862)
XuPeng-SH commentedon Nov 17, 2026
转 QA 验证原规模性能,保持 issue 开放;不是验收通过或已确认恢复全部 #32492 性能。
#32862 已合 main:
edaafb6668efdfabaedc71c3a4df90bd3aeeba35(head26e071a183fd9a536318b018fecf486896731cfc)。仅 prepared TP 的 TableScan/Filter/Projection 恢复既有 ResetForNextQuery / final Free 复用;runtime clone 捕获同一策略,Group/Order/Top/HashBuild 等仍计入 allocation account。相对当前 main,这明确缩小 prepared TP flat operators 的新 statement-account 覆盖,不是所有分配仍 statement-accounted 的声明,也不是全面回退 reader/blockio/kernel/dictionary 变化。已有证据:
请 QA 在原 129 Slot A、10 张 10M 行表、1,000 threads、300 秒和匹配资源/数据条件下,比较精确 parent 与含本 merge 的候选;记录实际版本、数据身份、顺序/重复轮次、TPS/QPS/errors,按原性能 gate 判断,同时独立检查 SQL 结果正确性与资源所有权,不能仅凭吞吐无错误作为正确性通过。补参数/NULL/空结果/取消/reader error 后复用、aggregate admission rejection 后恢复、bounded retained capacity、最终 MPool 归零与 exactly-once final Free,确认 ordinary TP/AP 和其他保留 owner 未被意外豁免。
COM_QUERY range 残留明确留在 #32857,disk-budget/Statfs 在 #32818,均不由此关闭或宣称修复。原 35% 大规模回退是否已恢复仍待 QA,本次仅把已有 main 修复交付验证,不将缺少大规模测试当作已验证反例。
已读完整 issue/PR 评论及评审,未见本问题适用的当前已验证反例或另有未完开发步骤。按持续交接流程改派唯一 @Ariznawlll,验收发现具体反例再携带 SHA、配置和证据回转开发。
Ariznawlll commentedon Nov 18, 2026
结论
测试通过。原规模 Sysbench Random Ranges 性能回归在本次 nightly 中未复现,吞吐已恢复到近期基线附近。
关键证据
edaafb6668efdfabaedc71c3a4df90bd3aeeba35。待解决点