[GH-ISSUE #56] Windows, dual-socket, single GPU: decode varies ~30% between server restarts (13.5 vs 18.5 tok/s at 128K) - CPU lane lines inside #23

Open
opened 2026-10-29 21:19:16 +07:00 by bsakaguchi · 12 comments
Owner

Originally created by @noahark on GitHub (Oct 9, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/56

Machine

  • 2x Xeon E5-2696 v3 (two NUMA nodes), 128 GB DDR3L-1600, Windows 10 Enterprise LTSC 21H2
  • Tesla V100-PCIE-32GB (TCC mode), driver 581.80
  • Maya v1.0.21, Maya-S-v2-IQ2_XXS, single GPU (--gpu 1), context 32768
  • calibrated env: STRATA_GLM_PCIE_SHARE=0.25, STRATA_GLM_CPU_LANE=18

A/B

Same v1.0.21 build, same config, only the pin env differs. Server-side predicted_per_second from /v1/status last_timings, warm expert cache, ~350-390-token answers, 3-4 runs each:

setting decode tok/s
default (auto pin, 2 nodes -> on) 13.3 / 15.2 / 15.1
STRATA_GLM_CPU_PIN=0 17.2 / 19.4 / 19.0 / 19.3

So on this Windows dual-socket box the automatic per-node binding costs ~22%, while the #44 measurement on Linux (2x Xeon Gold 6152) gained +29% (15.4 -> 19.8). Same feature, opposite sign across OSes - Windows thread-affinity/NUMA topology as seen from the engine may differ enough to matter on old boxes like this one.

Suggestion

Until more Windows dual-socket machines are measured, defaulting the pin off on Windows (or documenting STRATA_GLM_CPU_PIN=0 next to the #44 notes for Windows users) would save others the 20% we almost shipped with. Happy to run more variants (STRATA_GLM_CPU_PIN=1 explicit, different CPU_LANE) if useful.

Related: first Windows + V100 run report (install + context-tier ladder) in a separate issue.

Originally created by @noahark on GitHub (Oct 9, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/56 ## Machine - 2x Xeon E5-2696 v3 (two NUMA nodes), 128 GB DDR3L-1600, Windows 10 Enterprise LTSC 21H2 - Tesla V100-PCIE-32GB (TCC mode), driver 581.80 - Maya v1.0.21, Maya-S-v2-IQ2_XXS, single GPU (`--gpu 1`), context 32768 - calibrated env: `STRATA_GLM_PCIE_SHARE=0.25`, `STRATA_GLM_CPU_LANE=18` ## A/B Same v1.0.21 build, same config, only the pin env differs. Server-side `predicted_per_second` from `/v1/status` `last_timings`, warm expert cache, ~350-390-token answers, 3-4 runs each: | setting | decode tok/s | |---|---| | default (auto pin, 2 nodes -> on) | 13.3 / 15.2 / 15.1 | | `STRATA_GLM_CPU_PIN=0` | 17.2 / 19.4 / 19.0 / 19.3 | So on this Windows dual-socket box the automatic per-node binding costs ~22%, while the #44 measurement on Linux (2x Xeon Gold 6152) gained +29% (15.4 -> 19.8). Same feature, opposite sign across OSes - Windows thread-affinity/NUMA topology as seen from the engine may differ enough to matter on old boxes like this one. ## Suggestion Until more Windows dual-socket machines are measured, defaulting the pin **off on Windows** (or documenting `STRATA_GLM_CPU_PIN=0` next to the #44 notes for Windows users) would save others the 20% we almost shipped with. Happy to run more variants (`STRATA_GLM_CPU_PIN=1` explicit, different `CPU_LANE`) if useful. Related: first Windows + V100 run report (install + context-tier ladder) in a separate issue.
Author
Owner

@mw00 commented on GitHub (Oct 9, 2026):

Thank you for the A/B. Since v1.0.26 the README explains it:

  • STRATA_GLM_CPU_PIN is Linux-only, so on Windows the engine pins nothing whatever it is set to;
  • one GPU is never pinned on any OS.

So the 15.1 against 19.4 tokens/s came from something that differed between the two starts, not from the setting. A good place to look is the two starts' glm fast: CUDA<n> CPU lane: log lines. On a two-socket PC, where Windows puts the threads and the pinned RAM tier can change from one start to the next.

If you can post those lines from a slow start and a fast one, we can see whether it is the lane's calibration or the memory placement.

<!-- gh-comment-id:6088023441 --> @mw00 commented on GitHub (Oct 9, 2026): Thank you for the A/B. Since v1.0.26 the README explains it: - `STRATA_GLM_CPU_PIN` is Linux-only, so on Windows the engine pins nothing whatever it is set to; - one GPU is never pinned on any OS. So the 15.1 against 19.4 tokens/s came from something that differed between the two starts, not from the setting. A good place to look is the two starts' `glm fast: CUDA<n> CPU lane:` log lines. On a two-socket PC, where Windows puts the threads and the pinned RAM tier can change from one start to the next. If you can post those lines from a slow start and a fast one, we can see whether it is the lane's calibration or the memory placement.
Author
Owner

@noahark commented on GitHub (Oct 9, 2026):

You are right, and thank you for untangling it. I checked v1.0.21's glm_fast_path.cu (the tree I measured on): the pin block is gated on n_parts_ >= 2, so on this single-GPU box STRATA_GLM_CPU_PIN did nothing either way - the 15.1 vs 19.4 was start-to-start variance, not the setting. Retracting that title now.

I reproduced the restart variance on the same v1.0.21 build, same config (Maya-S-v2, one V100, 128K tier, tuned env PCIE 0.25 / CPU_LANE 18), 2 warmups + 2 ~370-token answers after each start:

restart decode (engine, tok/s)
1 13.4 / 15.5
2 13.5 / 15.5
3 16.4 / 18.5

The CPU lane lines you asked for, one per 131072-ctx start since yesterday (the split policy is identical every time; only the measured ms differ):

CPU lane: 18 threads, an expert 0.654 ms on the CPU vs 0.629 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 4 4 5 6
CPU lane: 18 threads, an expert 0.500 ms on the CPU vs 0.737 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 4 4 5 6
CPU lane: 18 threads, an expert 0.564 ms on the CPU vs 0.770 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 4 4 5 6
CPU lane: 18 threads, an expert 0.559 ms on the CPU vs 0.698 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 4 4 5 6

(starts 2-4 above are restarts 1-3 in the table; none of the calibration numbers separate the slow from the fast start.)

What does separate them is the runtime stat. A slow phase vs a fast one, same workload style:

glm stat: decode 76.39 ms/tok (13.09 tok/s) | vram hit 70.48% | ram fetches 28.11/tok | promotions 29.25/tok | cpu lane 67.43/tok in 50.10 ms/tok | vram 3177/3276 ram 8898/10028
glm stat: decode 60.90 ms/tok (16.42 tok/s) | vram hit 80.94% | ram fetches 17.68/tok | promotions 18.23/tok | cpu lane 45.49/tok in 34.79 ms/tok | vram 3171/3276 ram 8903/10028

The VRAM pool is equally full in both (3171-3177 of 3276); the slow phase does ~2x the RAM-tier fetches, ~2x the CPU-lane time per token and ~10 points less VRAM hit - as if the promoted hot set does not overlap the routed experts as well on some starts.

One oddity: restarts 1 and 2 are nearly identical to the decimal (13.4/13.5 and 15.5/15.5), which looks more like a small set of alternating states than random placement. Happy to run more restarts, pin the process ourselves, or try anything else on this box - it reproduces in a few minutes.

<!-- gh-comment-id:6090769592 --> @noahark commented on GitHub (Oct 9, 2026): You are right, and thank you for untangling it. I checked v1.0.21's `glm_fast_path.cu` (the tree I measured on): the pin block is gated on `n_parts_ >= 2`, so on this single-GPU box `STRATA_GLM_CPU_PIN` did nothing either way - the 15.1 vs 19.4 was start-to-start variance, not the setting. Retracting that title now. I reproduced the restart variance on the same v1.0.21 build, same config (Maya-S-v2, one V100, 128K tier, tuned env PCIE 0.25 / CPU_LANE 18), 2 warmups + 2 ~370-token answers after each start: | restart | decode (engine, tok/s) | |---|---| | 1 | 13.4 / 15.5 | | 2 | 13.5 / 15.5 | | 3 | 16.4 / 18.5 | The CPU lane lines you asked for, one per 131072-ctx start since yesterday (the split policy is identical every time; only the measured ms differ): ``` CPU lane: 18 threads, an expert 0.654 ms on the CPU vs 0.629 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 4 4 5 6 CPU lane: 18 threads, an expert 0.500 ms on the CPU vs 0.737 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 4 4 5 6 CPU lane: 18 threads, an expert 0.564 ms on the CPU vs 0.770 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 4 4 5 6 CPU lane: 18 threads, an expert 0.559 ms on the CPU vs 0.698 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 4 4 5 6 ``` (starts 2-4 above are restarts 1-3 in the table; none of the calibration numbers separate the slow from the fast start.) What does separate them is the runtime stat. A slow phase vs a fast one, same workload style: ``` glm stat: decode 76.39 ms/tok (13.09 tok/s) | vram hit 70.48% | ram fetches 28.11/tok | promotions 29.25/tok | cpu lane 67.43/tok in 50.10 ms/tok | vram 3177/3276 ram 8898/10028 glm stat: decode 60.90 ms/tok (16.42 tok/s) | vram hit 80.94% | ram fetches 17.68/tok | promotions 18.23/tok | cpu lane 45.49/tok in 34.79 ms/tok | vram 3171/3276 ram 8903/10028 ``` The VRAM pool is equally full in both (3171-3177 of 3276); the slow phase does ~2x the RAM-tier fetches, ~2x the CPU-lane time per token and ~10 points less VRAM hit - as if the promoted hot set does not overlap the routed experts as well on some starts. One oddity: restarts 1 and 2 are nearly identical to the decimal (13.4/13.5 and 15.5/15.5), which looks more like a small set of alternating states than random placement. Happy to run more restarts, pin the process ourselves, or try anything else on this box - it reproduces in a few minutes.
Author
Owner

@mw00 commented on GitHub (Oct 10, 2026):

Thank you for the restarts. The stat lines narrow it down:

  • Not the CPU lane: the time per CPU-lane expert is the same on slow and fast starts (50.10 / 67.43 = 0.74 ms against 34.79 / 45.49 = 0.76 ms).
  • What changes is the VRAM hit rate, 70.5% against 80.9%. That gives twice the RAM fetches and twice the CPU-lane experts per token. So a slow start holds a less useful set of experts in VRAM, not a slower CPU.

Two places that set can come from:

  • The warm-up's order: it follows the saved usage profile (expert_usage.txt next to the pack, rewritten after every request), blended with the model's own routing profile.
  • The promotions while it decodes: they adjust the set as it goes.

To tell them apart:

  1. Update to v1.0.30 (git pull in the Maya folder, then START-MAYA.bat, then START-MAYA.bat --calibrate once).
  2. Three restarts with "STRATA_GLM_USAGE": "0" in the config's "env" block. The warm-up then follows only the model's own profile, the same at every start. If the three restarts give the same speed, the saved profile is the cause.
  3. On a slow start, a glm stat line early and late in a long answer. If the VRAM hit climbs toward ~81% as it goes, the promotions fix the start's set, only slowly.

The near-identical pairs (13.4/13.5, 15.5/15.5) fit a small set of usage profiles alternating between starts.

<!-- gh-comment-id:6096930670 --> @mw00 commented on GitHub (Oct 10, 2026): Thank you for the restarts. The stat lines narrow it down: - **Not the CPU lane:** the time per CPU-lane expert is the same on slow and fast starts (50.10 / 67.43 = 0.74 ms against 34.79 / 45.49 = 0.76 ms). - **What changes is the VRAM hit rate,** 70.5% against 80.9%. That gives twice the RAM fetches and twice the CPU-lane experts per token. So a slow start holds a less useful set of experts in VRAM, not a slower CPU. Two places that set can come from: - **The warm-up's order:** it follows the saved usage profile (`expert_usage.txt` next to the pack, rewritten after every request), blended with the model's own routing profile. - **The promotions while it decodes:** they adjust the set as it goes. To tell them apart: 1. **Update to v1.0.30** (`git pull` in the Maya folder, then `START-MAYA.bat`, then `START-MAYA.bat --calibrate` once). 2. **Three restarts with `"STRATA_GLM_USAGE": "0"`** in the config's `"env"` block. The warm-up then follows only the model's own profile, the same at every start. If the three restarts give the same speed, the saved profile is the cause. 3. **On a slow start, a `glm stat` line early and late in a long answer.** If the VRAM hit climbs toward ~81% as it goes, the promotions fix the start's set, only slowly. The near-identical pairs (13.4/13.5, 15.5/15.5) fit a small set of usage profiles alternating between starts.
Author
Owner

@mw00 commented on GitHub (Oct 11, 2026):

An update on the restart-to-restart difference: we reproduced it and #99 fixes the cause (next release).

At start the engine times how long the CPU takes for an expert, and that sets how many RAM-tier experts the CPU lane takes for the engine's whole life. The timing was 16 runs in about 40 ms. A burst of other work on the CPU at that moment, such as the OS reclaiming memory right after the RAM tier is pinned, covered all of them. On a V100 here one start timed 0.63 ms where the usual is 0.32, its CPU lane took half its share, and decode was 16% slower until the next restart. Your 13.5 vs 18.5 tok/s looks like the same thing, with the CPU lane lines differing between starts.

Now it times five rounds spread over about half a second and keeps the fastest round's median, since other work only ever adds time. On the V100, under a heavy bursty load, the worst start went from 0.97 ms to 0.52, and quiet starts read 0.319 every time.

Also, from v1.0.32: STRATA_GLM_CPU_CAL=<file> (#81) keeps the timing in a file, so later starts reuse it instead of timing again. That alone takes the variation away once a good timing is saved.

When the release is out, could you restart a few times and compare the CPU lane: lines and decode?

<!-- gh-comment-id:6104664790 --> @mw00 commented on GitHub (Oct 11, 2026): An update on the restart-to-restart difference: we reproduced it and #99 fixes the cause (next release). At start the engine times how long the CPU takes for an expert, and that sets how many RAM-tier experts the CPU lane takes for the engine's whole life. The timing was 16 runs in about 40 ms. A burst of other work on the CPU at that moment, such as the OS reclaiming memory right after the RAM tier is pinned, covered all of them. On a V100 here one start timed 0.63 ms where the usual is 0.32, its CPU lane took half its share, and decode was 16% slower until the next restart. Your 13.5 vs 18.5 tok/s looks like the same thing, with the CPU lane lines differing between starts. Now it times five rounds spread over about half a second and keeps the fastest round's median, since other work only ever adds time. On the V100, under a heavy bursty load, the worst start went from 0.97 ms to 0.52, and quiet starts read 0.319 every time. Also, from v1.0.32: `STRATA_GLM_CPU_CAL=<file>` (#81) keeps the timing in a file, so later starts reuse it instead of timing again. That alone takes the variation away once a good timing is saved. When the release is out, could you restart a few times and compare the `CPU lane:` lines and decode?
Author
Owner

@noahark commented on GitHub (Oct 11, 2026):

Tested on the release as asked. Eight restarts, v1.0.32 source build (ea55be3, sm_70), Maya-S-v2-IQ2_XXS, one V100-PCIE-32GB, 131072 context, config env unchanged (STRATA_GLM_PCIE_SHARE=0.25, STRATA_GLM_CPU_LANE=18) plus STRATA_GLM_CPU_CAL=<file>. Protocol per start: 2 warmups ("Say hi.", 24 tokens) + 2 measured answers (fixed prompt, max_tokens 380, effort high, server defaults). The box was quiet throughout: no user process above ~0.25 cores, disk 99.9% idle.

start CPU lane timing lane plan measured answers (tok/s)
1 (writes the CAL file) 0.395 ms 0 1 1 2 3 4 4 5 6 9.7 / 11.4
2 (CAL reuse) "those times from ... (not timed)" same 9.7 / 11.4
3 (CAL reuse) reused, same values same 9.8 / 11.5
4 (CAL reuse) reused, same values same 9.8 / 11.5
5 (CAL deleted) 0.551 ms same 9.7 / 11.4
6 (CAL deleted) 0.410 ms same 13.6 / 15.4
7 (CAL deleted) 0.527 ms same 9.7 / 11.5
8 (CAL deleted) 0.415 ms same 9.8 / 11.5

Three findings:

  1. The start-time corruption reproduces here, and STRATA_GLM_CPU_CAL stops it. Five fresh timings on a quiet box spread 0.395-0.551 ms; the reuse starts repeat the saved values byte-for-byte and log those times from ... (not timed). So #99's steadier timing is wanted, and the CAL file works as the stopgap on Windows.
  2. But the lane plan never moved. All eight starts took the identical split (0 1 1 2 3 4 4 5 6) despite the timing spread, and the one fast start's fresh timing (0.410) is indistinguishable from the slow ones (0.395/0.415). On this box the plan is robust to the timing noise, so the ~30% decode gap must come from somewhere else.
  3. What differs in the fast start is the cost per read, not the count. vram hit (76.11/80.61/70.89/76.49%), ram fetches/tok (22.80/17.78/28.17/22.25), promotions/tok and the slot counts are identical across all eight starts; in start 6 the same reads simply landed cheaper — the page-cache "disk" term went from 1.9-3.4 ms/tok to 0.01-0.03 ms/tok at the same 1.15-1.79 waits/tok, and the CPU lane read its 51.67 experts/tok from the pinned tier in 35.3 ms instead of 44.7 ms (0.68 vs 0.87 ms per expert). That is your first-reply hypothesis: where Windows puts the pinned RAM tier (and the page cache around it) changes from one start to the next. v1.0.32 does not make that part deterministic — the CAL file pins the plan, not the placement.

So on this dual-socket Windows box #99 removes one variance source (the lane timing), and the remaining slow/fast lottery is a memory-placement effect. It also does not alternate the way v1.0.21 did (1 fast start in 8 here, vs the earlier 2 slow then 1 fast). Happy to collect more if it helps pin the placement down — for instance, if there is a debug env that prints which NUMA node the pin landed on, I'll log it across restarts.

Build footnote for other Volta boxes: the new __grid_constant__ kernel in glm_fast.cu is compute_70+, so a hand-rolled CMAKE_CUDA_ARCHITECTURES=native build on a machine that also has a pre-70 card (our GTX 1060) fails to compile unless CUDA_VISIBLE_DEVICES is limited to the V100 — maya.py's installer already does exactly that, so this only bites hand-written build scripts; the RELEASE-CHECKLIST's one-line CMake fix would remove the trap entirely.

<!-- gh-comment-id:6105437565 --> @noahark commented on GitHub (Oct 11, 2026): Tested on the release as asked. Eight restarts, v1.0.32 source build (`ea55be3`, sm_70), Maya-S-v2-IQ2_XXS, one V100-PCIE-32GB, 131072 context, config env unchanged (`STRATA_GLM_PCIE_SHARE=0.25`, `STRATA_GLM_CPU_LANE=18`) plus `STRATA_GLM_CPU_CAL=<file>`. Protocol per start: 2 warmups ("Say hi.", 24 tokens) + 2 measured answers (fixed prompt, `max_tokens` 380, effort high, server defaults). The box was quiet throughout: no user process above ~0.25 cores, disk 99.9% idle. | start | CPU lane timing | lane plan | measured answers (tok/s) | |---|---|---|---| | 1 (writes the CAL file) | 0.395 ms | `0 1 1 2 3 4 4 5 6` | 9.7 / 11.4 | | 2 (CAL reuse) | "those times from ... (not timed)" | same | 9.7 / 11.4 | | 3 (CAL reuse) | reused, same values | same | 9.8 / 11.5 | | 4 (CAL reuse) | reused, same values | same | 9.8 / 11.5 | | 5 (CAL deleted) | 0.551 ms | same | 9.7 / 11.4 | | 6 (CAL deleted) | 0.410 ms | same | **13.6 / 15.4** | | 7 (CAL deleted) | 0.527 ms | same | 9.7 / 11.5 | | 8 (CAL deleted) | 0.415 ms | same | 9.8 / 11.5 | Three findings: 1. **The start-time corruption reproduces here, and `STRATA_GLM_CPU_CAL` stops it.** Five fresh timings on a quiet box spread 0.395-0.551 ms; the reuse starts repeat the saved values byte-for-byte and log `those times from ... (not timed)`. So #99's steadier timing is wanted, and the CAL file works as the stopgap on Windows. 2. **But the lane plan never moved.** All eight starts took the identical split (`0 1 1 2 3 4 4 5 6`) despite the timing spread, and the one fast start's fresh timing (0.410) is indistinguishable from the slow ones (0.395/0.415). On this box the plan is robust to the timing noise, so the ~30% decode gap must come from somewhere else. 3. **What differs in the fast start is the cost per read, not the count.** vram hit (76.11/80.61/70.89/76.49%), ram fetches/tok (22.80/17.78/28.17/22.25), promotions/tok and the slot counts are identical across all eight starts; in start 6 the same reads simply landed cheaper — the page-cache "disk" term went from 1.9-3.4 ms/tok to 0.01-0.03 ms/tok at the same 1.15-1.79 waits/tok, and the CPU lane read its 51.67 experts/tok from the pinned tier in 35.3 ms instead of 44.7 ms (0.68 vs 0.87 ms per expert). That is your first-reply hypothesis: where Windows puts the pinned RAM tier (and the page cache around it) changes from one start to the next. v1.0.32 does not make that part deterministic — the CAL file pins the plan, not the placement. So on this dual-socket Windows box #99 removes one variance source (the lane timing), and the remaining slow/fast lottery is a memory-placement effect. It also does not alternate the way v1.0.21 did (1 fast start in 8 here, vs the earlier 2 slow then 1 fast). Happy to collect more if it helps pin the placement down — for instance, if there is a debug env that prints which NUMA node the pin landed on, I'll log it across restarts. Build footnote for other Volta boxes: the new `__grid_constant__` kernel in `glm_fast.cu` is compute_70+, so a hand-rolled `CMAKE_CUDA_ARCHITECTURES=native` build on a machine that also has a pre-70 card (our GTX 1060) fails to compile unless `CUDA_VISIBLE_DEVICES` is limited to the V100 — `maya.py`'s installer already does exactly that, so this only bites hand-written build scripts; the RELEASE-CHECKLIST's one-line CMake fix would remove the trap entirely.
Author
Owner

@mw00 commented on GitHub (Oct 11, 2026):

The steadier CPU-lane timing is out in v1.0.33. After updating, could you restart a few times and compare the CPU lane: lines and decode? With STRATA_GLM_CPU_CAL=<file> (v1.0.32) a good timing is also kept across starts.

<!-- gh-comment-id:6105700178 --> @mw00 commented on GitHub (Oct 11, 2026): The steadier CPU-lane timing is out in [v1.0.33](https://github.com/mw00/project-maya/releases/tag/v1.0.33). After updating, could you restart a few times and compare the `CPU lane:` lines and decode? With `STRATA_GLM_CPU_CAL=<file>` (v1.0.32) a good timing is also kept across starts.
Author
Owner

@noahark commented on GitHub (Oct 11, 2026):

Updated to v1.0.33 (6083122, source build, sm_70) and reran the matrix as asked: eight restarts on the same box (one V100-PCIE-32GB, dual Xeon E5-2696 v3, 128 GB DDR3L), Maya-S-v2-IQ2_XXS, 131072 context, config env unchanged (STRATA_GLM_PCIE_SHARE=0.25, STRATA_GLM_CPU_LANE=18). Six fresh starts (the CAL file deleted before each) and two reuse starts, protocol identical to the v1.0.32 round (2 warmups + 2 measured answers, max_tokens 380, server defaults, quiet box).

start start-time CPU timing (ms) CPU-lane expert cost at runtime (ms) measured answers (tok/s)
1 (fresh) 0.392 0.852 9.7 / 11.4
2 (fresh) 0.569 0.712 13.4 / 15.1
3 (fresh) 0.509 0.743 13.3 / 15.1
4 (fresh) 0.370 0.855 9.7 / 11.4
5 (fresh) 0.390 0.713 13.4 / 15.2
6 (fresh) 0.432 0.716 13.4 / 15.2
7 (CAL reuse) 0.432 (not timed) 0.716 13.4 / 15.1
8 (CAL reuse) 0.432 (not timed) 0.738 13.1 / 15.0

The lane plan was 0 1 1 2 3 4 4 5 6 in all eight starts; the runtime expert cost is the second glm stat line's cpu lane ... in ... ms/tok divided by its experts/tok.

  1. The slow/fast lottery survives v1.0.33: 2 of 8 starts slow, the same ~30% gap as before (9.7/11.4 against 13.1-13.4/15.0-15.2), and a slow start's stat lines repeat the v1.0.32 slow ones almost field for field.
  2. The runtime cost per CPU-lane expert is bimodal and separates the starts exactly (0.85-0.86 ms on the two slow starts against 0.71-0.74 on the six fast ones) — while the start-time timing does not predict it at all: starts 1 and 5 timed 0.392/0.390 and landed on opposite sides. On this box #99's steadier timing measures something other than what decides the decode; the placement of the pinned tier sets the runtime cost, and the start probe doesn't see it.
  3. The five-round median did not narrow our start-timing spread: 0.370-0.569 across the six fresh starts, about the same band as v1.0.32's single round (0.395-0.551). That is consistent with the spread being a placement symptom rather than burst noise — the probe reads the pinned tier too, so a bad placement times slow in every round.
  4. CAL reuse works as designed ("those times from ... (not timed)", the plan values byte-identical). Starts 7-8 were fast, but that looks like the placement lottery rather than the file: CAL pins the plan, not the placement.
  5. One pattern worth noting: the fast starts come in runs here (5-8 consecutive this time, 2-3 in the v1.0.32 round), as if whatever Windows decides repeats for a while before flipping.

Practically, restarting until a start lands on the ~0.71 ms side is the workaround that works today. Standing offer from the last round: if a debug env can print where the pinned tier landed (NUMA node / page spread), I'll log it across restarts and we can pin the placement side of it down.

<!-- gh-comment-id:6107565434 --> @noahark commented on GitHub (Oct 11, 2026): Updated to v1.0.33 (`6083122`, source build, sm_70) and reran the matrix as asked: eight restarts on the same box (one V100-PCIE-32GB, dual Xeon E5-2696 v3, 128 GB DDR3L), Maya-S-v2-IQ2_XXS, 131072 context, config env unchanged (`STRATA_GLM_PCIE_SHARE=0.25`, `STRATA_GLM_CPU_LANE=18`). Six fresh starts (the CAL file deleted before each) and two reuse starts, protocol identical to the v1.0.32 round (2 warmups + 2 measured answers, `max_tokens` 380, server defaults, quiet box). | start | start-time CPU timing (ms) | CPU-lane expert cost at runtime (ms) | measured answers (tok/s) | |---|---:|---:|---| | 1 (fresh) | 0.392 | 0.852 | 9.7 / 11.4 | | 2 (fresh) | 0.569 | 0.712 | 13.4 / 15.1 | | 3 (fresh) | 0.509 | 0.743 | 13.3 / 15.1 | | 4 (fresh) | 0.370 | 0.855 | 9.7 / 11.4 | | 5 (fresh) | 0.390 | 0.713 | 13.4 / 15.2 | | 6 (fresh) | 0.432 | 0.716 | 13.4 / 15.2 | | 7 (CAL reuse) | 0.432 (not timed) | 0.716 | 13.4 / 15.1 | | 8 (CAL reuse) | 0.432 (not timed) | 0.738 | 13.1 / 15.0 | The lane plan was `0 1 1 2 3 4 4 5 6` in all eight starts; the runtime expert cost is the second `glm stat` line's `cpu lane ... in ... ms/tok` divided by its experts/tok. 1. **The slow/fast lottery survives v1.0.33**: 2 of 8 starts slow, the same ~30% gap as before (9.7/11.4 against 13.1-13.4/15.0-15.2), and a slow start's stat lines repeat the v1.0.32 slow ones almost field for field. 2. **The runtime cost per CPU-lane expert is bimodal and separates the starts exactly** (0.85-0.86 ms on the two slow starts against 0.71-0.74 on the six fast ones) — while the start-time timing does not predict it at all: starts 1 and 5 timed 0.392/0.390 and landed on opposite sides. On this box #99's steadier timing measures something other than what decides the decode; the placement of the pinned tier sets the runtime cost, and the start probe doesn't see it. 3. **The five-round median did not narrow our start-timing spread**: 0.370-0.569 across the six fresh starts, about the same band as v1.0.32's single round (0.395-0.551). That is consistent with the spread being a placement symptom rather than burst noise — the probe reads the pinned tier too, so a bad placement times slow in every round. 4. **CAL reuse works as designed** ("those times from ... (not timed)", the plan values byte-identical). Starts 7-8 were fast, but that looks like the placement lottery rather than the file: CAL pins the plan, not the placement. 5. One pattern worth noting: the fast starts come in runs here (5-8 consecutive this time, 2-3 in the v1.0.32 round), as if whatever Windows decides repeats for a while before flipping. Practically, restarting until a start lands on the ~0.71 ms side is the workaround that works today. Standing offer from the last round: if a debug env can print where the pinned tier landed (NUMA node / page spread), I'll log it across restarts and we can pin the placement side of it down.
Author
Owner

@noahark commented on GitHub (Oct 11, 2026):

Chased the placement lead from the last round to the end. Everything below is on v1.0.33, Maya-S-v2-IQ2_XXS, one V100-PCIE-32GB, dual E5-2696 v3, Windows 10.

The tier's physical pages tell the whole story. I scanned the engine's working set at runtime (QueryWorkingSetEx, the Node field at bit 16 on 19H1+): the 66.4 GB tier lands 82% on node 0 / 18% on node 1 on fast starts and 15% / 85% on slow starts. Ten scanned starts, every one on the predicted side: 82/18 decodes at 0.73 ms a CPU-lane expert, 15/85 at 0.85-0.88. The start-time timing remains uncorrelated (0.37-0.57 either way), as you found with #99.

Three hypotheses the scan ruled out, with the test that killed each:

  1. Lane-thread placement - no. I built the Windows NUMA plumbing (node->group map, SetThreadGroupAffinity + SetThreadIdealProcessorEx pinning the 18 pool threads onto whichever node the tier sits on, logged as "the tier sits on node 1: the CPU lane pinned"). A slow-side start with the pool pinned to node 1 still ran 0.85-0.86 ms an expert. Local threads reading local pages did not rescue it.
  2. Node 1's memory being slower - no. Pinned to each node in turn: single-thread reads 3.4 vs 3.9 GB/s, 18-thread concurrent reads 12.2-12.4 vs 12.7-12.9 GB/s. Symmetric.
  3. Large pages - no. The QWSE LargePage bit is 0.0% on both sides of every start, fast or slow.

What actually differs: the GPU's DMA path. cudaMemcpy H2D from each node's pinned memory to the V100: 11.0 GB/s from node 0, 9.5 GB/s from node 1 - the card hangs off node 0's PCIe, and node 1's memory feeds it over the QPI link. With the tier 85% on node 1, every ram fetch and promotion (18-28 a token here) crosses the QPI link at -14% bandwidth while the CPU lane competes for the same link on its minority reads; the per-expert cost lands 17% higher and the decode with it. So "which node holds the tier" matters not because the CPU lane reads it there, but because the GPU does.

One physical note: the tier (66.4 GB) is larger than a node's 64 GB, so a start can never put it all on one side - the 82/18 fast split is already close to node 0's ceiling after the OS takes its share. The lottery is only about which side takes the majority.

And the Windows API wall, for the record: VirtualAllocExNuma honors its node argument only for fresh whole allocations (a 66 GB one-shot would be single-node and cannot fit); committing a reserved range ignores the node entirely (measured: 256 alternating blocks, 100% landed on one node), and page placement does not follow the touching thread (measured: two threads pinned to opposite nodes, first-touching alternating pages - the split follows nothing). So unlike Linux there is no user-space way to place a registered range of this size in Windows from inside the engine.

Practical outcome for this box: your restart suggestion is now mechanized - a local build probes the split at start ("the tier sits on node N") and the launcher restarts unless the tier landed on the GPU's side. That holds decode at the fast mode every start. If you see a cleaner lever from the engine side (two arenas with the split deliberately lopsided toward the GPU's node, the way the class arenas already exist?), the scan tool is a ~150-line CS file I'm happy to hand over.

<!-- gh-comment-id:6108916090 --> @noahark commented on GitHub (Oct 11, 2026): Chased the placement lead from the last round to the end. Everything below is on v1.0.33, Maya-S-v2-IQ2_XXS, one V100-PCIE-32GB, dual E5-2696 v3, Windows 10. **The tier's physical pages tell the whole story.** I scanned the engine's working set at runtime (QueryWorkingSetEx, the Node field at bit 16 on 19H1+): the 66.4 GB tier lands **82% on node 0 / 18% on node 1** on fast starts and **15% / 85%** on slow starts. Ten scanned starts, every one on the predicted side: 82/18 decodes at 0.73 ms a CPU-lane expert, 15/85 at 0.85-0.88. The start-time timing remains uncorrelated (0.37-0.57 either way), as you found with #99. Three hypotheses the scan ruled out, with the test that killed each: 1. **Lane-thread placement** - no. I built the Windows NUMA plumbing (node->group map, SetThreadGroupAffinity + SetThreadIdealProcessorEx pinning the 18 pool threads onto whichever node the tier sits on, logged as "the tier sits on node 1: the CPU lane pinned"). A slow-side start with the pool pinned to node 1 still ran 0.85-0.86 ms an expert. Local threads reading local pages did not rescue it. 2. **Node 1's memory being slower** - no. Pinned to each node in turn: single-thread reads 3.4 vs 3.9 GB/s, 18-thread concurrent reads 12.2-12.4 vs 12.7-12.9 GB/s. Symmetric. 3. **Large pages** - no. The QWSE LargePage bit is 0.0% on both sides of every start, fast or slow. **What actually differs: the GPU's DMA path.** cudaMemcpy H2D from each node's pinned memory to the V100: **11.0 GB/s from node 0, 9.5 GB/s from node 1** - the card hangs off node 0's PCIe, and node 1's memory feeds it over the QPI link. With the tier 85% on node 1, every ram fetch and promotion (18-28 a token here) crosses the QPI link at -14% bandwidth while the CPU lane competes for the same link on its minority reads; the per-expert cost lands 17% higher and the decode with it. So "which node holds the tier" matters not because the CPU lane reads it there, but because *the GPU* does. One physical note: the tier (66.4 GB) is larger than a node's 64 GB, so a start can never put it all on one side - the 82/18 fast split is already close to node 0's ceiling after the OS takes its share. The lottery is only about which side takes the majority. And the Windows API wall, for the record: `VirtualAllocExNuma` honors its node argument only for fresh whole allocations (a 66 GB one-shot would be single-node and cannot fit); committing a reserved range ignores the node entirely (measured: 256 alternating blocks, 100% landed on one node), and page placement does not follow the touching thread (measured: two threads pinned to opposite nodes, first-touching alternating pages - the split follows nothing). So unlike Linux there is no user-space way to place a registered range of this size in Windows from inside the engine. Practical outcome for this box: your restart suggestion is now mechanized - a local build probes the split at start ("the tier sits on node N") and the launcher restarts unless the tier landed on the GPU's side. That holds decode at the fast mode every start. If you see a cleaner lever from the engine side (two arenas with the split deliberately lopsided toward the GPU's node, the way the class arenas already exist?), the scan tool is a ~150-line CS file I'm happy to hand over.
Author
Owner

@noahark commented on GitHub (Oct 11, 2026):

Collecting the dead ends from this investigation in one place, each with the measurement that killed it, so nobody retraces them. All on the same box as before (dual E5-2696 v3, one V100-PCIE-32GB, Windows 10, v1.0.33 source build, Maya-S-v2-IQ2_XXS, 66.4 GB tier).

1. VirtualAllocExNuma block interleave - the node argument is ignored for a reserved range. The idea: one VirtualAlloc reserve of the whole tier, then commit each 2 MB block with VirtualAllocExNuma(..., MEM_COMMIT, node) alternating node 0/1, then cudaHostRegister the whole range. Measured (a 512 MB / 256-block test before touching the engine): 256 blocks committed with alternating node arguments landed 100% on node 1 - zero followed the argument. The node is honored only for a fresh whole allocation, and a tier larger than a node cannot be one. Dead.

2. First-touch placement - pages do not follow the touching thread on Windows. The idea (the Linux path's MPOL_INTERLEAVE equivalent): plain VirtualAlloc reserve+commit, one toucher thread per node pinned via SetThreadGroupAffinity, each faulting every nnodes-th page. Measured: a standalone 512 MB test once read back ~50/50 (that was luck - the two pin masks had silently collapsed to the same group-0 mask), but repeated properly, and in the engine itself, the split stays lopsided regardless of which node touches what. Dead.

3. SetThreadIdealProcessorEx on top of the group affinity - no effect either. Same setup as (2) with the ideal processor also moved to the target node's core: the engine's tier still came up 94.6% on one node. Whatever policy picks a demand-zero page's node, it is neither the running nor the ideal core. Dead.

4. Pinning the CPU lane onto the tier's node - works as code, changes nothing. The full implementation exists in a local branch: node enumeration, node->group/core maps, a pin_thread Windows path (SetThreadGroupAffinity over concatenated group indices), a start-time probe of the tier's majority node, and the pool's 18 threads pinned onto that node's 36 CPUs (logged: "the tier sits on node 1: the CPU lane pinned"). Measured on a slow draw: decode still 9.6/11.4 tok/s, per-expert cost 0.853-0.862 ms - byte-for-byte the slow mode. The lane's threads were never the bottleneck; the GPU's fetches are. Dead as a fix (the probe half of this branch is what PR #112 keeps).

5. Large-page morphology - no signal. The QueryWorkingSetEx LargePage bit over the tier's regions: 0.0% on every start scanned with the field (plain 4 KB pages throughout, fast side and slow alike). Not a huge-page/fragmentation story. Dead.

6. Node 1's memory being slower - symmetric everywhere. Pinned-to-node probes: single-thread reads 3.4 vs 3.9 GB/s, 18-thread concurrent reads 12.2-12.4 vs 12.7-12.9 GB/s. And what is asymmetric is the GPU path: H2D cudaMemcpy from pinned memory 11.0 GB/s (node 0, the card's PCIe side) vs 9.5 GB/s (node 1, over the socket link). The asymmetry lives in the DMA, not the DRAM. Dead.

7. For completeness, two upstream-mechanism items already reported: v1.0.33's five-round timing did not narrow the start-time spread here (0.370-0.569 ms across six fresh starts vs v1.0.32's 0.395-0.551) - the probe reads the pinned tier too, so a bad placement times slow in every round; and STRATA_GLM_CPU_CAL reuse locks the plan, not the placement - a reuse start draws the lottery afresh.

What survives all of this: the draw decides which node feeds the GPU over the socket link, Windows gives user space no lever over the draw, and the working mitigations are visibility (PR #112's log line) plus restart-on-a-bad-draw. An engine-side fix would need the GPU's PCIe node (not exposed by cudaDevAttrHostNumaId on this Volta + 582.78, but available on newer cards) and a deliberately lopsided arena split toward it.

<!-- gh-comment-id:6109244152 --> @noahark commented on GitHub (Oct 11, 2026): Collecting the dead ends from this investigation in one place, each with the measurement that killed it, so nobody retraces them. All on the same box as before (dual E5-2696 v3, one V100-PCIE-32GB, Windows 10, v1.0.33 source build, Maya-S-v2-IQ2_XXS, 66.4 GB tier). **1. `VirtualAllocExNuma` block interleave - the node argument is ignored for a reserved range.** The idea: one `VirtualAlloc` reserve of the whole tier, then commit each 2 MB block with `VirtualAllocExNuma(..., MEM_COMMIT, node)` alternating node 0/1, then `cudaHostRegister` the whole range. Measured (a 512 MB / 256-block test before touching the engine): **256 blocks committed with alternating node arguments landed 100% on node 1 - zero followed the argument.** The node is honored only for a fresh whole allocation, and a tier larger than a node cannot be one. Dead. **2. First-touch placement - pages do not follow the touching thread on Windows.** The idea (the Linux path's MPOL_INTERLEAVE equivalent): plain `VirtualAlloc` reserve+commit, one toucher thread per node pinned via `SetThreadGroupAffinity`, each faulting every nnodes-th page. Measured: a standalone 512 MB test once read back ~50/50 (that was luck - the two pin masks had silently collapsed to the same group-0 mask), but repeated properly, and in the engine itself, the split stays lopsided regardless of which node touches what. Dead. **3. `SetThreadIdealProcessorEx` on top of the group affinity - no effect either.** Same setup as (2) with the ideal processor also moved to the target node's core: the engine's tier still came up 94.6% on one node. Whatever policy picks a demand-zero page's node, it is neither the running nor the ideal core. Dead. **4. Pinning the CPU lane onto the tier's node - works as code, changes nothing.** The full implementation exists in a local branch: node enumeration, node->group/core maps, a `pin_thread` Windows path (`SetThreadGroupAffinity` over concatenated group indices), a start-time probe of the tier's majority node, and the pool's 18 threads pinned onto that node's 36 CPUs (logged: "the tier sits on node 1: the CPU lane pinned"). Measured on a slow draw: **decode still 9.6/11.4 tok/s, per-expert cost 0.853-0.862 ms - byte-for-byte the slow mode.** The lane's threads were never the bottleneck; the GPU's fetches are. Dead as a fix (the probe half of this branch is what PR #112 keeps). **5. Large-page morphology - no signal.** The `QueryWorkingSetEx` LargePage bit over the tier's regions: **0.0%** on every start scanned with the field (plain 4 KB pages throughout, fast side and slow alike). Not a huge-page/fragmentation story. Dead. **6. Node 1's memory being slower - symmetric everywhere.** Pinned-to-node probes: single-thread reads 3.4 vs 3.9 GB/s, 18-thread concurrent reads 12.2-12.4 vs 12.7-12.9 GB/s. And what *is* asymmetric is the GPU path: H2D `cudaMemcpy` from pinned memory 11.0 GB/s (node 0, the card's PCIe side) vs 9.5 GB/s (node 1, over the socket link). The asymmetry lives in the DMA, not the DRAM. Dead. **7. For completeness, two upstream-mechanism items already reported**: v1.0.33's five-round timing did not narrow the start-time spread here (0.370-0.569 ms across six fresh starts vs v1.0.32's 0.395-0.551) - the probe reads the pinned tier too, so a bad placement times slow in every round; and `STRATA_GLM_CPU_CAL` reuse locks the plan, not the placement - a reuse start draws the lottery afresh. What survives all of this: the draw decides which node feeds the GPU over the socket link, Windows gives user space no lever over the draw, and the working mitigations are visibility (PR #112's log line) plus restart-on-a-bad-draw. An engine-side fix would need the GPU's PCIe node (not exposed by `cudaDevAttrHostNumaId` on this Volta + 582.78, but available on newer cards) and a deliberately lopsided arena split toward it.
Author
Owner

@mw00 commented on GitHub (Oct 11, 2026):

Thank you, the eight-start matrix settles one thing: the runtime cost separates the starts and the start timing doesn't. So it isn't the CPU timing, it's placement, as you said. I think Windows' processor groups explain the pattern:

  • Two processor groups. Your PC has 72 logical CPUs, and Windows 10 puts at most 64 in a group, so it makes two, one per socket. A process that doesn't ask for more runs in one group only, and Windows gives each new process a group in turn. One start of the engine runs on socket 0, a later one on socket 1. Other programs starting in between shift the turn, which would give your runs of fast and slow starts.
  • No NUMA handling on Windows yet. The Linux build interleaves the RAM tier over both sockets and pins the CPU lane; on Windows both steps are skipped. The driver puts the pinned tier's pages where it likes, likely near the GPU's socket. When the engine runs on the other socket, the CPU lane reads every expert over the QPI link: 0.85 ms against 0.71.
  • Why the start timing misses it. It times 64 experts from the first ~0.5 GB of the tier, and those can sit on a different socket than most of it.

The debug line you offered to log is in v1.0.34 (#110). On Windows with two NUMA nodes or more, every GPU prints at start:

glm fast: CUDA0 Windows NUMA: 2 nodes, 2 processor groups; the engine runs in group 1 (node 1); the RAM tier's pages, a sample of 256: node 0: 256, node 1: 0

The page counts may say not reported if Windows won't report the driver's pinned pages. If you can log this line next to the CPU-lane cost across a few restarts, we'll know whether it's the group. If it is, the fix is to run the CPU lane on the tier's socket, or interleave the tier over both sockets as on Linux. I'd write that next.

A quick test meanwhile: start /NODE 0 START-MAYA.bat (then /NODE 1) from a command prompt asks Windows for that node, and the engine the server starts should inherit it. The new line shows whether it did.

<!-- gh-comment-id:6109485850 --> @mw00 commented on GitHub (Oct 11, 2026): Thank you, the eight-start matrix settles one thing: the runtime cost separates the starts and the start timing doesn't. So it isn't the CPU timing, it's placement, as you said. I think Windows' processor groups explain the pattern: - **Two processor groups.** Your PC has 72 logical CPUs, and Windows 10 puts at most 64 in a group, so it makes two, one per socket. A process that doesn't ask for more runs in one group only, and Windows gives each new process a group in turn. One start of the engine runs on socket 0, a later one on socket 1. Other programs starting in between shift the turn, which would give your runs of fast and slow starts. - **No NUMA handling on Windows yet.** The Linux build interleaves the RAM tier over both sockets and pins the CPU lane; on Windows both steps are skipped. The driver puts the pinned tier's pages where it likes, likely near the GPU's socket. When the engine runs on the other socket, the CPU lane reads every expert over the QPI link: 0.85 ms against 0.71. - **Why the start timing misses it.** It times 64 experts from the first ~0.5 GB of the tier, and those can sit on a different socket than most of it. **The debug line you offered to log is in [v1.0.34](https://github.com/mw00/project-maya/releases/tag/v1.0.34) (#110).** On Windows with two NUMA nodes or more, every GPU prints at start: ``` glm fast: CUDA0 Windows NUMA: 2 nodes, 2 processor groups; the engine runs in group 1 (node 1); the RAM tier's pages, a sample of 256: node 0: 256, node 1: 0 ``` The page counts may say `not reported` if Windows won't report the driver's pinned pages. If you can log this line next to the CPU-lane cost across a few restarts, we'll know whether it's the group. If it is, the fix is to run the CPU lane on the tier's socket, or interleave the tier over both sockets as on Linux. I'd write that next. A quick test meanwhile: `start /NODE 0 START-MAYA.bat` (then `/NODE 1`) from a command prompt asks Windows for that node, and the engine the server starts should inherit it. The new line shows whether it did.
Author
Owner

@mw00 commented on GitHub (Oct 11, 2026):

Sorry, my reply above crossed your last two comments: I answered the 09:25 round without having read 12:15 and 12:55. Your measurements settle it, and my processor-group guess was wrong. You pinned the lane onto the tier's node and nothing changed, so it isn't the CPU side. The asymmetry is the GPU's DMA path (H2D 11.0 against 9.5 GB/s from the far node), and every RAM fetch and promotion pays it.

The log line: v1.0.34 (#110) shipped a similar start line an hour after your #112, from the same API. Yours is the one measured on the box that shows the problem, and your launcher reads its format, so let's keep one line, yours. Details on #112.

An engine-side fix, along the lines you outline:

  • Find the GPU's node by measuring. At start, time H2D copies from a small pinned buffer on each node. The faster node is the GPU's. This needs no cudaDevAttrHostNumaId, so it works on Volta too.
  • Pin the tier in pieces, each a fresh allocation on that node. Windows honors the node for those, as you found. The pieces go to the GPU's node until it's full, then to the other node. The tier fills its slots hottest first, so the experts on the far side are the cold ones.

The expert tables already hold a pointer per slot, so the decode doesn't care how many pieces there are; the work is in how the tier is pinned. It's a real change, so I'd want your box to test it. Would you run a build of it when it's ready?

<!-- gh-comment-id:6109782687 --> @mw00 commented on GitHub (Oct 11, 2026): Sorry, my reply above crossed your last two comments: I answered the 09:25 round without having read 12:15 and 12:55. Your measurements settle it, and my processor-group guess was wrong. You pinned the lane onto the tier's node and nothing changed, so it isn't the CPU side. The asymmetry is the GPU's DMA path (H2D 11.0 against 9.5 GB/s from the far node), and every RAM fetch and promotion pays it. **The log line:** v1.0.34 (#110) shipped a similar start line an hour after your #112, from the same API. Yours is the one measured on the box that shows the problem, and your launcher reads its format, so let's keep one line, yours. Details on #112. **An engine-side fix**, along the lines you outline: - **Find the GPU's node by measuring.** At start, time H2D copies from a small pinned buffer on each node. The faster node is the GPU's. This needs no `cudaDevAttrHostNumaId`, so it works on Volta too. - **Pin the tier in pieces, each a fresh allocation on that node.** Windows honors the node for those, as you found. The pieces go to the GPU's node until it's full, then to the other node. The tier fills its slots hottest first, so the experts on the far side are the cold ones. The expert tables already hold a pointer per slot, so the decode doesn't care how many pieces there are; the work is in how the tier is pinned. It's a real change, so I'd want your box to test it. Would you run a build of it when it's ready?
Author
Owner

@noahark commented on GitHub (Oct 11, 2026):

Yes - happy to run the build the moment it's up. The box reproduces the lottery on demand (a few restarts is all it takes), the scan tool and the restart matrix are in place, and the probe line from #112 will confirm each start's draw during the test. The piece-wise placement matches what the API allows here: fresh whole allocations were the one form whose node argument measured as honored, and hottest-first slot filling means the far node holds the cold experts - both ends of that are testable on this machine.

<!-- gh-comment-id:6110644069 --> @noahark commented on GitHub (Oct 11, 2026): Yes - happy to run the build the moment it's up. The box reproduces the lottery on demand (a few restarts is all it takes), the scan tool and the restart matrix are in place, and the probe line from #112 will confirm each start's draw during the test. The piece-wise placement matches what the API allows here: fresh whole allocations were the one form whose node argument measured as honored, and hottest-first slot filling means the far node holds the cold experts - both ends of that are testable on this machine.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mw00/project-maya#23
No description provided.