Repository navigation
refactor(rdma): move learned depth definition - #622
Conversation
- Keep the private helper body byte-identical in the existing ops translation unit.
e71a1b2 to
2cc272a
Compare
Verification summary — rebased current-main headRaw candidate: Scope and source evidenceThis is exactly the eight-line Fresh maintained full on current mainThe source was restored from and verified against a complete-history bundle containing the exact owned candidate ref and upstream main. The current-main full was freshly built and run on 0099 with Release, tests/RDMA/io_uring ON, sequential maintained ordering, private mount/tmp and the unchanged exclusions and per-case limits.
Focused build/link and physical RDMA behaviorOn the exact current base and candidate, ordinary base/candidate builds each completed 384/384; exact real single-rail focused tests completed 4 PASS / 0 SKIP / 0 FAIL / 0 ERROR (depth 1/4, block classes 4096/8192/65536, genuine stale-retry and rail naming). RDMA=OFF + io_uring=OFF configured and built/linked 358/358 with the changed transport TUs excluded. The selected class-member multiset remained 149; defined/undefined dynamic multisets were unchanged, SONAME remained Measured symbol-size differences from optimizer/code-layout effects remain preserved, e.g. RoundTrip −29 B and NoteFailedCompletion +86 B. The earlier OFF harness’s incorrect libc-only dependency predicate and failed history are preserved; the corrected audit evaluates the unchanged artifacts’ actual libc+loader closure. This is not a claim of arbitrary binary, ABI, performance or concurrency equivalence, nor execution of the separate two-rail branch. Public CI and independent final reviewCI run 46164381513, run number 1760, attempt 1: 13/13 jobs and 13/13 check-runs completed successfully on the exact candidate head. The prior Independent final evidence review returned GO with zero must-fix/blocking findings, after directly recomputing the source bytes, all 2105 XML cases/raw CTest logs, required cases, six precise parser corrections, lifecycle, integrity manifests and official CI. It confirms no remaining scoped evidence prerequisite or source must-fix for the bounded relocation. This closes only the literal LearnedDepth relocation and the validation described above; it does not claim completion of all TRN-23/M6 work, production rollout, or universal feature/performance equivalence. |
Scope
将 private
RdmaTransport::LearnedDepth的 8行定义 从rdma_transport.cc原样迁移到 existingrdma_transport_ops.cc,紧随之前迁移的ConnectionDepth。header、privateLane/depth map/mutex 的字段声明、NoteNegotiatedDepth状态writer、默认参数、include、CMake、caller、tests 和 public API 均不变;没有任何helper、compat layer或新状态。每个实例的 mutex/learned data/control maps 仍是原来的对象成员。搬迁reader并不复制状态或锁:源码中的
NoteNegotiatedDepth继续对同一实例成员更新,不是TU-local第二份cache。e71a1b20d18c655e0c41bc704e2c6b67d445069cb03e34a10b1a16950af8f35c767207148ee59558ea587d30ee6bec17cfb621812809ad17fd961651.cc,各 −9/+9 行。原始393B定义和316B statement body保持字节相同。完整源码重建
从真实base blob执行预期切片后可逐字节重建两个最终文件,不是只做行数/hint匹配:
c3e744f8c509c0234dbc8ddbe1e60966b4f19860bc3634094576eed5a5d2b79b/79c9b1a8c0732f8b4195c32cfd0096afd68ef4e0,201997 B / 4697行9cc59b4e9cba63c88137930d4d339e40158548b075e8c2c918179c2ba59f027a/c04ea6404fbc883caaf02b62a238deed69b8b332,7901 B / 200行main无该definition,ops恰有一个,位于ops 191–198。
OpBound仍为header inline,NoteBlock仍保留logging/high-water side effects,NoteNegotiatedDepth仍保留其状态写入;没有outline挪动它们。构建、对象与动态链接
同主机、GNU 13.3、Release、tests/RDMA/io_uring ON,分别fresh build baseline/candidate,均 384/384 steps(这不是384个测试);
dfkv和dfkv_core均验证。main失去definition,ops的U LearnedDepth变为Tdefinition。两target各自class emitted-member multiset为149→149。combined objects和linked library无新增未解析/重复定义。LearnedDepth仍保持 FUNC / GLOBAL / DEFAULT / size 393及mangled identity(private声明并不等同于hidden symbol)。其实际machine bytes和有序relocation也保持一致;其q/mutex/map成员访问并非凭名字推断为相似逻辑。地址改变(0x333990→0x3766d0),仅不解释为地址等价。Codegen/size changes(明确保留,不做“全产物完全相同”断言)
同profile literal搬移会改变编译布局和部分优化。独立源码/focused审查确认以下代码生成后果,并将
size_sensitive_multiset_equal=false保持为真实结果:libdfkv.so:RoundTrip−29B、NoteFailedCompletion+86B,其.cold−16B。dfkv_coremain object还观察到:ConfirmRefusal+59B、NoteFailedCompletion+54B、其.cold−21B;constructor alias记录 C1/C2 −8B,C2.cold+52B。别名记录不是另造两份独立功能。参与比较的name/type/binding/visibility/section identity无额外增删;linked动态defined/undefined canonical delta为空。size如果不被忽略,严格multiset不相等。reader本身的raw machine bytes/relocation一致,但未安排same-source A/A reproducibility来证明其余优化差异的普遍可重复编译因果关系。
以上不是新算法编辑、性能提升声明或任意执行路径/机器码/任意toolchain ABI等价声明。实际linked属性为
DT_NEEDED=libibverbs.so.1,libc.so.6/loader、SONAMElibdfkv.so.2,baseline/candidateldd -rrc=0;仅描述实测target/link面。OFF/OFF:
Release, tests=ON, DFKV_WITH_RDMA=OFF, DFKV_WITH_URING=OFF,358/358 build/link;214 compile commands中没有两个changed TU,相应object不存在;dynamic defined/undefined无dfkv::RdmaTransport,DT_NEEDED仅libc/loader,下载后的ldd -r也通过。没有采纳或伪装OFF/ON不兼容配置。实际 focused RDMA
精确candidate在单一物理轨
ib6s200p0(PORT_ACTIVE(4)、mlx5_core)上执行,独立复核XML为 4 run / 4 completed / 4 PASS / 0 SKIP / 0 FAIL / 0 ERROR,总4.608秒,原始日志显示实际 QP/CQ/retry行为。DataConnectionsUseActualDepthClasses{1}→{1,4};helper对requested 1/3分别返回1/4,connection class metrics与实际qd一致StalePooledConnectionOnTheOnlyRailRecoversOnTheRetryRangeIntoMultiNamesEachRailOncekOk和non-empty output;单轨不重复连续rail名,未进入two-rail条件循环DataConnectionsUseActualBlockSizeClasses{4096}→{4096,65536},请求4000B/5000/60KiB分别归入4096/8192/65536 class未直接覆盖非default的learned-map命中、non-power-of-two learned value、zero requested credit、
depth_>=256cap、穷举lane/control/SG算术、two-rail、并发或跨rail/性能等价。未把单轨条件分支的空转称为two-rail执行,也不以 #620 或并发TCP #621的记录代替本次证据。资源、审查与后续
最早的wrong-cwd metadata、source preflight和scp配置异常分别保留。校正后以精确head/tree进行的fresh build、focused与链接产物才是本结论的依据;没有用这些错误阶段充当通过。原既有测试源码的dangling-else warnings也保留。unit最终
Result=success、ExecMainStatus=0,本候选两个owned resource targeted claims为空,且另有完整invocation/journal和processor记录;不是用inactive/not-found推断成功。独立源码/focused evidence review为 GO、0 must-fix。本地完整审查:
${CODE_ROOT}/dfkv-evidence/trn23-learned-depth-ea587d30/independent-source-focused-review-e71a1b20.md;该文件作为审查后的补充制品,不冒充包含在生成时较早的192项输入清单中的文件。原始源/符号/XML/logs、192项verified retained inputs与完整历史bundle均在
${CODE_ROOT}/dfkv-evidence/trn23-learned-depth-ea587d30/。原source/candidate-complete-history.bundleSHA-256=8bb8f71a9d37f8f31632114d6fa4e8a2d4a9af2ef9770d203ff2e42b24160724,通过完整历史校验并含精确candidate HEAD;发布前自查发现它只有HEAD、没有自有本地branch ref,故原物保留,另以candidate HEAD、该精确owned ref与upstream/main补齐source/candidate-complete-history-with-owned-ref.bundle,三项refs均已验证,SHA-256=45001451cc7ba8afbdbd56b15d23a269826d938461aae9dcfd9dc81a1cc5ccf2。这属于artifact保存范围补齐,不改候选代码或已有审查结论。owned branch/worktree暂留,不合并到共享开发配置或production。后续门禁尚未完成:发布前再次核对actual main,fresh maintained full与当前public CI、最终源码/证据审核,之后才可能ready/GraphQL queue;实际MERGED后还须确认真实merge OID/tree,再执行完整bundle保全后的owned清理。本批只闭合一个LearnedDepth literal relocation,不代表TRN-23/TRN-24/M6、TRN-31/32或生产验收完成。