Repository navigation
fabric tp roce: a kernel without transparent hugepages keeps the 4 KiB property without the NOHUGEPAGE advice - #2380
Conversation
|
Thanks @devopsfortunato, that was quick, and it's what we discussed on #2378. The multi-rank path now takes the one |
|
Heads-up on CI: the two runs created for |
|
State for the landing queue: |
…B property without the NOHUGEPAGE advice prepareRegion asked for MADV_DONTFORK and MADV_NOHUGEPAGE and refused to start on any error. A Linux kernel built without THP answers MADV_NOHUGEPAGE with EINVAL, so a RoCE transport could not start there and the host test "the region is DONTFORK and NOHUGEPAGE before registration" failed with error.VerbsFailed (aarch64, kernel 6.18.50+rpt: DONTFORK succeeds, NOHUGEPAGE is EINVAL). Ask for NOHUGEPAGE only where the kernel can apply it: the enabled file exists and its mode is not never. Without THP no anonymous page is promoted, so the region's pages are 4 KiB already; the skip logs one startup line saying so. DONTFORK stays strict on every Linux host, and a failed advice on a THP kernel still refuses to start. roce_multi_verbs.zig re-exports the one function instead of carrying a second copy. Tests: the region test gates its nh assertion on the same condition and asserts dc either way; a new test covers the enabled file's three spellings and a malformed one. Before: 9 passed, 1 failed. After: 11 passed.
06a59d3 to
e5f7839
Compare
|
Thank you @devopsfortunato. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
|
Thanks @devopsfortunato! This is in TensorFold 1.2.4, out now: https://github.com/ashhart/TensorFold/releases/tag/v1.2.4 |
What this changes
Before: on a Linux kernel built without transparent hugepages,
Roce.prepareRegionasked forMADV_NOHUGEPAGE, gotEINVAL, and refused to start a RoCE transport; the host test "the region is DONTFORK and NOHUGEPAGE before registration" failed witherror.VerbsFailed. After: the advice is asked for only where the kernel can apply it, one startup line says why it was skipped, andMADV_DONTFORKstays strict on every Linux host.main.atc overlap --json: no open pull request touches any of the three changed files (atc whoon each reports none); no conflicts reported for them.Checks on this head
06a59d369(8e387e02cis the change;06a59d369adds the changelog line the issue asked for).python3 tools/zig/lean_check.py: base0d7152955252 problems, this head 252, 0 new.6.18.50+rpt-v8(no THP):zig test, fabric inflight suite with the build graph's modules (-Mroot=…/roce_inflight_test.zig -Mcuda=… -Mverbs=… -Msys=…): 11 passed, 0 failed. Before the change, same machine and flags: 9 passed, 1 failed (that region test).zig test,zig/src/fabric/tp/roce_verbs_test.zig: 11 passed.zig test,zig/src/fabric/tp/roce_multi_wire_test.zig(same module flags): 25 passed.zig fmt --checkon the three files andgit diff --check: clean.zig build teston this host with this change:569/569 steps succeeded; 4516/4540 tests passed (24 skipped),exit 0. On pristine
0d7152955the only failing assertion was the region test above.8e387e02cwere cancelled during runner provisioning; GitHub has not created runs for06a59d369yet. I'll report the result here as soon as they run.prepareRegionbefore this code (unchanged), and CI'sx86_64kernels have THP, so the THP path is unchanged there.Receipt
n/a for inference: this change decides only whether two
madvisecalls are attempted while a RoCE region is prepared. It does not touch a byte of a prompt, reply, kernel, lane round or numerical path, so the exactness, decode-speed and prompt-speed lines do not apply.0d7152955+ this branch, Zig 0.17.0 (.zig-version), aarch64 Linux (Raspberry Pi 5), kernel6.18.50+rpt-v8built withoutCONFIG_TRANSPARENT_HUGEPAGE(/sys/kernel/mm/transparent_hugepageabsent); no GPU or checkpoint involved.prepareRegionis called atzig/src/fabric/tp/roce.zig:201(one pair) andzig/src/fabric/tp/roce_multi.zig:217(multi-HCA); both now share the one function. Linux measured here (THP-less) and by CI (x86_64, THP); macOS and Windows take the existing early return.Checklist