Skip to content

Combined-table miss path costs ~445us/key (~150x GNU miss, ~40x own hit): no-key probes are the cost center after the F3 fix #2004

Closed

Description

@caomengxuan666

来源:包五 F3 门级复测(脚本 timing2.py 重建协议)。F3 修复后 combined-table 契约在 insert+hit 成立(hit 11.4µs/key),但 miss 路径 445µs/key(对 GNU 约 70x)——成本中心转移到无键探查。口径限定:该数测于 a268db2(早上版引擎),定案前须在当前 master 复测一次;结构性成因(无键探查全表走查)大概率仍在。归宿:perf 证据批复测后转修复批。修正段落文本在交付方 pkg5/F3-corrected-paragraph.md,perf-round REPORT §5 的更正随复测一并落。

Activity

  1. added
    P2-medium
    performance
    on Oct 28, 2026
  2. caomengxuan666 commented on Oct 28, 2026

    @caomengxuan666
    MemberAuthor

    机制归因修正(补正 perf-round REPORT §5 的错误表述;原报告文件双侧均已不在,本段独立生效,数据钉 rubash a268db2 / GNU 5.3.20):

    F3 的成本中心不是通用每操作开销,而是 combined-table 设计下的无键(miss)探查路径。combined-table 在写入与命中两条路径上达成了设计意图:fill-10k 0.146s min(GNU 0.034s)、hit 每 10k ≈0.114s(GNU ≈0.029s)——hit 成本与 insert 成本同尺度缩放,即 combined-table 契约本身成立。残余成本集中在 miss 探查:10k miss ≈4.45s(纯相位;含 fill 的 wall min 4.6006s vs hit 的 0.2594s),≈445µs/miss——约为 niu 自身 hit 路径的 40 倍、GNU miss 路径的 150 倍(GNU hit/miss 对称,~3µs/key)。

    此前把 F3 成本归于 insert 侧簿记的表述作废:insert 与 hit 是 combined-table 快路径,残差在 combined-table 上的 miss 探查。逐样本原始数据:pkg5/results/f3_10k_{win,gnu}.json(wall 秒、min/median/rc)。修正段落全文:pkg5/F3-corrected-paragraph.md。

  3. changed the title [-]Combined-table miss path costs ~445us/key vs 11.4us hit (~70x GNU): no-key probes are the cost center after the F3 fix[/-] [+]Combined-table miss path costs ~445us/key (~150x GNU miss, ~40x own hit): no-key probes are the cost center after the F3 fix[/+] on Oct 28, 2026
  4. caomengxuan666 commented on Oct 28, 2026

    @caomengxuan666
    MemberAuthor

    主会话裁定:接受 pkg5 的机制归因修正。①比值订正:miss ≈445µs/key 对 GNU miss 路径(~3µs/key,hit/miss 对称)约 150x(本帖原题与正文的 ~70x 作废);对自家 hit 路径约 40x。②机制定版:残差在 combined-table 的 miss 探查,insert/hit 是快路径、契约成立;perf-round REPORT §5 的旧表述以本评论与 pkg5 修正段落为准(原文件不在手边时以本帖为据)。③口径限定不变:数据钉 a268db2,当前 master 复测后转修复批。

  5. added a commit that references this issue on Oct 29, 2026
  6. caomengxuan666 commented on Oct 29, 2026

    @caomengxuan666
    MemberAuthor

    随 PR #2060 合入关闭(merge 88496e5)。裁定分两半:①普通 ${m[key]} miss 的立案量级被复测推翻——#1919 已修好普通路径(当前 master miss@10000 = 18.3µs vs GNU 13.4µs 且随 n 平坦;包五原测钉的是旧引擎 a268db2)。②活残差在 length leg:${#m[key]} hit/miss 双双 Θ(存储)(整串 clone + 内容哈希重派生 + 线性扫),已由新 assoc_element_value_settled 收口(镜像 typed fetch 准入/新鲜度门、下标只演一次、空键错误次序按 subst.c:7545-7552 保留)——修后 len miss 增长 ×10.67→×1.08、len hit ×11.08→×1.34,+4 颗 GNU 核对行为钉。证据:fix-perf-residual/REPORT.md 与 PR #2060 正文。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2-mediumperformance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions