Skip to content

[Bug]: Sysbench 1000W Random Ranges throughput drops ~35% after #32492 #32840

Closed

Description

@Ariznawlll

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 68ff36e72e7e49eb2b6eb4fabe5df85c9789539e71119f2a667c61b44728f814 in all four runs. This hashes the dataset manifest, not each CSV's contents.
  • The fixed-Slot-A workflow branch changes only BM129_REQUESTED_SLOT from the normal matrix policy to a, 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 294076ed 18,368.54 TPS (44006857268); later bad 8e8708a8 11,982.79 TPS (44009387892). Additional intermediate commits 835431f9 and 470a57c2 produced 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

  1. added this to the MO-202611 milestone on Nov 17, 2026
  2. added
    kind/bug
    on Nov 17, 2026
  3. added theissue type on Nov 17, 2026
  4. XuPeng-SH commented on Nov 17, 2026

    @XuPeng-SH
    Contributor

    转 QA 验证原规模性能,保持 issue 开放;不是验收通过或已确认恢复全部 #32492 性能。

    #32862 已合 main:edaafb6668efdfabaedc71c3a4df90bd3aeeba35(head 26e071a183fd9a536318b018fecf486896731cfc)。仅 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 变化。

    已有证据:

    • 作者历史 e116001 加补丁的 Darwin M2 Pro 小规模测试(1,000 rows、8 pinned connections、15 秒、非独占主机)报告 prepared range COUNT mean QPS 19,615.80,parent 19,987.70、child 16,055.93,即约 parent 的 98.1%。profiled 与 unprofiled suite 分开,不能合并或外推 Linux/129。
    • 评审 66c3022 独立运行 5 focused roots 与 compile/table_scan 两个 owning packages normal/race,focused 各 100 race repetitions;公共 MySQL prepared 测试覆盖 changing bindings、NULL、error recovery 与两轮 teardown。
    • 评审 component benchmark prepared allocations 154→85,AP 仍 154,但对照是 all-owner policy,不是精确 predecessor binary。评审未运行原规模 129/full TPCC,也未独立认证作者 Darwin 性能/lint;frozen CI 无相关 package validation。最终队列因 fork 编辑权限出队,不作为最终 CI 全绿证据。所有上述是历史报告,本轮未自行实测最终 SHA。

    请 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、配置和证据回转开发。

  5. Ariznawlll commented on Nov 18, 2026

    @Ariznawlll
    CollaboratorAuthor

    结论

    测试通过。原规模 Sysbench Random Ranges 性能回归在本次 nightly 中未复现,吞吐已恢复到近期基线附近。

    关键证据

    • 修复 #32862 已合入 main;本次 129 回归实际测试版本为 edaafb6668efdfabaedc71c3a4df90bd3aeeba35。
    • 2026-11-18 00:08–00:13(北京时间),Sysbench 1000W Random Ranges、1000 线程运行 300 秒:18,208 TPS / QPS,错误数 0;近期五次基线中位数 18,342 TPS,降幅约 0.7%,通过 25% 性能门槛。此前异常结果为 12,125 TPS。详见 TP 回归日志。
    • 测试采用 nightly AB half-host 拓扑;上述为合入后的单次原规模结果。

    待解决点

    • 本次结论针对原报告的性能回退;尚未单独完成 SQL 结果正确性及资源生命周期等专项验证。普通文本协议的剩余问题由 #32857 跟踪。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s-1

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions