[GH-ISSUE #5358] [Engine] gfx1030: fatal GPU fault in native_mmvq_multi_kernel on a host address, with the MMQ/adaptive-swap workaround active #3194

Open
opened 2026-11-07 14:38:47 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @MikiDevLog on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5358

Some of the data collection process (mainly the pinpoint of address where fail occurs and what part of the kernel) and related text was formatted and general A/B testing was assisted by LLM(Q3.8FN) for faster log sweep and basic analysis of where to look at and what to test.

TL:DR

Model is Swift IQ3_S.
One RX 6800 XT (gfx1030, RDNA2) the engine dies with a fatal GPU fault 32 times over 174.2 hours of live
serving (0.18/h)
- 16 384-token chunks, real agent traffic - and every single fault is the same:

Warning: Queue error - HSA_STATUS_ERROR_MEMORY_FAULT
0:rocdevice.cpp :3905: ... Memory Fault Error [faulting addr: 0x7f9b60cb7000, GPU index: 0]
Memory access fault by GPU node-1 (Agent handle: 0x...) on address 0x7f9b60cb7000. Reason: Page not present
or supervisor privilege.
  • The kernel is identical in 33 of 33 fault contexts: native_mmvq_multi_kernel (the MMQ prompt kernel).
  • The faulting address is always a host address, page-aligned. Across 35 faults (32 baseline + 3 in the
    mitigation arms) all 35 addresses are distinct - no page repeats, so this is not one fixed page. There is
    a strong skew, though: 23 of 35 (66 %) share the residue 0x7000 at 64 KiB granularity (19 end …b7000,
    4 end …37000; by chance a 1-in-16 residue would appear ~6 % of the time). Examples:
    0x7ff440cb7000, 0x7fdd17cb7000, 0x7fbf47eb7000, 0x7fdc84c37000, 0x7fc1ae837000.
    Interpretation, not measurement: a 64 KiB-granular structure with a consistent intra-block offset, not random
    eviction. (Address census: grep -hoE "on address 0x[0-9a-f]+" *.log.)
  • Every fault is fatal; server.py restarts the engine, back up in ~40 s, FAULT n → START n+7 in the log.

The engine on this box already runs the documented gfx1030 workaround from docs/AMD_HIP.md
(STRATA_HIP_ADAPT_KERNEL_COPY=1; "adaptive-tier swaps copied by a kernel instead of the SDMA engine;
a workaround for a gfx1030 hang with MMQ prompts and adaptive swaps (untested curently), and every
start prints it: STRATA_HIP_ADAPT_KERNEL_COPY=1: adaptive swaps copy with a kernel, not SDMA (#884).
The faults keep happening with the workaround active, in the MMQ kernel, on host pages. That is the report:
the existing gfx1030 workaround does not cover this case.

Reproduced on

  • Engine 0.1.56 (engine/BUILD.json: local-hip, gfx1030, source e1289b3dcbe7ad2b), repo release 0.2.10.
  • RX 6800 XT 16 GiB (gfx1030/RDNA2), Ryzen 5 5600 (6c/12t), 62 GiB RAM, Fedora 43, ROCm 10.0.0,
    rocBLAS 5.6.0.8d1ae90e (startup: prefill gemm: rocBLAS tuning enabled (112 rows, 76 with a solution, gfx1030)).
  • Served config: 47-48 flags, --kv k8v4 (earlier int8), --max-context 262144, --spec 4, --mtp draft
    head, --pcie-frac 0.35, --pool-workers 4, 4665 expert slots, --conversation-cache-mib 2048,
    --ple-io direct, adaptive overlap on (STRATA_ADAPT_OVERLAP), STRATA_ADAPT_SIGNAL=host,
    STRATA_HIP_ADAPT_KERNEL_COPY=1, STRATA_HIP_PROMPT_F16=1, STRATA_SELECT_SIMT=1, STRATA_HC_PERSIST=1,
    STRATA_IO_THREADS=32.
  • Memory shape: pinned arena 46.8 GiB (cudaHostRegister PORTABLE ok, MAP_HUGETLB unavailable (needed 23983 2 MiB pages)), pinned KV 2.39 GiB (3.09 GiB on int8), mapped 44.9 GiB gguf, ~1.5 GiB pack weights,
    ~2 GiB projections → engine RSS 51-54.6 GiB of 62 GiB. MemAvailable 4.6-8.7 GiB. PLE/n-gram table
    26.8-28.8 GiB, read unbuffered under --ple-io direct (87 GB of read_bytes). Swap use stayed under
    320 MiB (no thrash). ulimit -l "Max locked memory" reports 8 MiB.
  • Workload: a coding-agent harness, prompts 60 k-200 k tokens, 100% GPU utilisation at 219-250 W of 293 W.

Tested, did not help

  • vm.min_free_kbytes 66 MiB -> 256 MiB (sysctl -w, live, no reboot; per-zone watermarks grow, free
    593 → 908 MiB, MemAvailable −0.4 GiB). A fault occurred ~3 h later (n=1, stated as such). Global
    reclaim headroom does not address a repeating offset in one mapping.
  • HSA_ENABLE_SDMA=0, live serving for 65 min: 2 fatal faults in 0.7 h = 3.04/h against the same-day
    baseline of 0.18/h
    (n=2 weak statistics), and mechanistically it should not help: the swap copies are
    already kernel copies (#884), so SDMA is not on the faulting side.
  • --ple-io mmap (the 26.8-28.8 GiB PLE/n-gram table read through the page cache instead of unbuffered
    direct): 1 fatal fault 8 minutes in (23:10:24 start, 23:18:21 fault, same signature, 0x7fc1ae837000).
    Rate ~4/h against 0.18/h. Direction of the signal: mapping more host memory makes it worse, which fits
    the address evidence (host pages, MMQ kernel, 64 KiB residue skew) and argues for keeping --ple-io direct.

What i'm trying now.

  • STRATA_ADAPT_OVERLAP=0 - the sullution the docs' own wording points at, since the documented gfx1030 hang is
    "MMQ prompts and adaptive swaps" and the fault kernel is the MMQ kernel while overlap is on.
    Its cost (decode tok/s) is measured the same day and didnt hit as much.

Not tested

  • No --ple-io ram: arithmetically impossible here (46.8 pinned arena + 2.39 pinned KV + 26.8 GiB table =
    76 GiB on 62 GiB of RAM).
  • No arena/pack mmap variant, no iommu=pt kernel-arg run, no raised memlock, no
    STRATA_SELECT_SIMT=0, no ROCm other than 10.0.0, no engine newer than 0.1.56 (repo 0.2.10 binaries not
    rebuilt for this box).
  • STRATA_DENSE_MMQ=1 measured +0.7-1.1 % decode, +0.7 % prompt (20/23 prompt turns up) on this pc and not adopted: with the docs' gfx1030 MMQ workaround note, more MMQ exposure looks like more fault exposure. Not measured.
  • No run with the workaround off (STRATA_HIP_ADAPT_KERNEL_COPY=0).

Questions

  1. Is there a known gfx1030 host-page fault in native_mmvq_multi_kernel with adaptive swaps, beyond the
    #884 kernel-copy workaround? What is the recommended knob on RDNA2 — STRATA_ADAPT_OVERLAP=0,
    STRATA_ADAPT_SIGNAL, --pcie-frac, or something else?
  2. Should the faulting address pattern (repeating …cb7000 page offset, host mapping, MMQ kernel) be
    reproduced with a specific flag set, so i can produce a deterministic case?
  3. Is there a supported way to mark the mapped tiers (44.9 GiB gguf, PLE table) non-evictable, so the MMQ
    kernel never reads an evicted host page?
Originally created by @MikiDevLog on GitHub (Nov 5, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5358 Some of the data collection process (mainly the pinpoint of address where fail occurs and what part of the kernel) and related text was formatted and general A/B testing was assisted by LLM(Q3.8FN) for faster log sweep and basic analysis of where to look at and what to test. ## TL:DR Model is Swift IQ3_S. One RX 6800 XT (gfx1030, RDNA2) the engine dies with a fatal GPU fault **32 times over 174.2 hours of live serving (0.18/h)** - 16 384-token chunks, real agent traffic - and every single fault is the same: ``` Warning: Queue error - HSA_STATUS_ERROR_MEMORY_FAULT 0:rocdevice.cpp :3905: ... Memory Fault Error [faulting addr: 0x7f9b60cb7000, GPU index: 0] Memory access fault by GPU node-1 (Agent handle: 0x...) on address 0x7f9b60cb7000. Reason: Page not present or supervisor privilege. ``` - The kernel is identical in **33 of 33** fault contexts: `native_mmvq_multi_kernel` (the MMQ prompt kernel). - The faulting address is always a **host** address, page-aligned. Across 35 faults (32 baseline + 3 in the mitigation arms) **all 35 addresses are distinct - no page repeats**, so this is not one fixed page. There is a strong skew, though: **23 of 35 (66 %) share the residue `0x7000` at 64 KiB granularity** (19 end `…b7000`, 4 end `…37000`; by chance a 1-in-16 residue would appear ~6 % of the time). Examples: `0x7ff440cb7000`, `0x7fdd17cb7000`, `0x7fbf47eb7000`, `0x7fdc84c37000`, `0x7fc1ae837000`. Interpretation, not measurement: a 64 KiB-granular structure with a consistent intra-block offset, not random eviction. (Address census: `grep -hoE "on address 0x[0-9a-f]+" *.log`.) - Every fault is fatal; `server.py` restarts the engine, back up in ~40 s, `FAULT n` → `START n+7` in the log. The engine on this box already runs the documented gfx1030 workaround from `docs/AMD_HIP.md` (`STRATA_HIP_ADAPT_KERNEL_COPY=1`; "adaptive-tier swaps copied by a kernel instead of the SDMA engine; a workaround for a gfx1030 hang with MMQ prompts and adaptive swaps (untested curently), and every start prints it: `STRATA_HIP_ADAPT_KERNEL_COPY=1: adaptive swaps copy with a kernel, not SDMA (#884)`. **The faults keep happening with the workaround active**, in the MMQ kernel, on host pages. That is the report: the existing gfx1030 workaround does not cover this case. ## Reproduced on - Engine **0.1.56** (`engine/BUILD.json`: local-hip, gfx1030, source `e1289b3dcbe7ad2b`), repo release 0.2.10. - **RX 6800 XT 16 GiB (gfx1030/RDNA2)**, Ryzen 5 5600 (6c/12t), 62 GiB RAM, Fedora 43, ROCm 10.0.0, rocBLAS 5.6.0.8d1ae90e (startup: `prefill gemm: rocBLAS tuning enabled (112 rows, 76 with a solution, gfx1030)`). - Served config: 47-48 flags, `--kv k8v4` (earlier `int8`), `--max-context 262144`, `--spec 4`, `--mtp` draft head, `--pcie-frac 0.35`, `--pool-workers 4`, 4665 expert slots, `--conversation-cache-mib 2048`, `--ple-io direct`, adaptive overlap **on** (`STRATA_ADAPT_OVERLAP`), `STRATA_ADAPT_SIGNAL=host`, `STRATA_HIP_ADAPT_KERNEL_COPY=1`, `STRATA_HIP_PROMPT_F16=1`, `STRATA_SELECT_SIMT=1`, `STRATA_HC_PERSIST=1`, `STRATA_IO_THREADS=32`. - Memory shape: pinned arena 46.8 GiB (`cudaHostRegister PORTABLE ok`, `MAP_HUGETLB unavailable (needed 23983 2 MiB pages)`), pinned KV 2.39 GiB (3.09 GiB on int8), mapped 44.9 GiB gguf, ~1.5 GiB pack weights, ~2 GiB projections → engine RSS 51-54.6 GiB of 62 GiB. `MemAvailable` 4.6-8.7 GiB. PLE/n-gram table 26.8-28.8 GiB, read unbuffered under `--ple-io direct` (87 GB of `read_bytes`). Swap use stayed under 320 MiB (no thrash). `ulimit -l` "Max locked memory" reports 8 MiB. - Workload: a coding-agent harness, prompts 60 k-200 k tokens, 100% GPU utilisation at 219-250 W of 293 W. ## Tested, did not help - `vm.min_free_kbytes` 66 MiB -> **256 MiB** (`sysctl -w`, live, no reboot; per-zone watermarks grow, free 593 → 908 MiB, `MemAvailable` −0.4 GiB). **A fault occurred ~3 h later** (n=1, stated as such). Global reclaim headroom does not address a repeating offset in one mapping. - **`HSA_ENABLE_SDMA=0`**, live serving for 65 min: **2 fatal faults in 0.7 h = 3.04/h against the same-day baseline of 0.18/h** (n=2 weak statistics), and mechanistically it should not help: the swap copies are already kernel copies (`#884`), so SDMA is not on the faulting side. - **`--ple-io mmap`** (the 26.8-28.8 GiB PLE/n-gram table read through the page cache instead of unbuffered `direct`): **1 fatal fault 8 minutes in** (23:10:24 start, 23:18:21 fault, same signature, `0x7fc1ae837000`). Rate ~4/h against 0.18/h. Direction of the signal: **mapping more host memory makes it worse**, which fits the address evidence (host pages, MMQ kernel, 64 KiB residue skew) and argues for keeping `--ple-io direct`. ## What i'm trying now. - **`STRATA_ADAPT_OVERLAP=0`** - the sullution the docs' own wording points at, since the documented gfx1030 hang is "MMQ prompts **and adaptive swaps**" and the fault kernel is the MMQ kernel while overlap is on. Its cost (decode tok/s) is measured the same day and didnt hit as much. ## Not tested - No `--ple-io ram`: arithmetically impossible here (46.8 pinned arena + 2.39 pinned KV + 26.8 GiB table = 76 GiB on 62 GiB of RAM). - No arena/pack `mmap` variant, no `iommu=pt` kernel-arg run, no raised `memlock`, no `STRATA_SELECT_SIMT=0`, no ROCm other than 10.0.0, no engine newer than 0.1.56 (repo 0.2.10 binaries not rebuilt for this box). - `STRATA_DENSE_MMQ=1` measured **+0.7-1.1 % decode, +0.7 % prompt (20/23 prompt turns up)** on this pc and **not adopted**: with the docs' gfx1030 MMQ workaround note, more MMQ exposure looks like more fault exposure. Not measured. - No run with the workaround **off** (`STRATA_HIP_ADAPT_KERNEL_COPY=0`). ## Questions 1. Is there a known gfx1030 host-page fault in `native_mmvq_multi_kernel` with adaptive swaps, beyond the `#884` kernel-copy workaround? What is the recommended knob on RDNA2 — `STRATA_ADAPT_OVERLAP=0`, `STRATA_ADAPT_SIGNAL`, `--pcie-frac`, or something else? 2. Should the faulting address pattern (repeating `…cb7000` page offset, host mapping, MMQ kernel) be reproduced with a specific flag set, so i can produce a deterministic case? 3. Is there a supported way to mark the mapped tiers (44.9 GiB gguf, PLE table) non-evictable, so the MMQ kernel never reads an evicted host page?
Sign in to join this conversation.
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
Niko1221/Strata#3194
No description provided.