# IOMMU on or off on Strix Halo: an A/B on strix2, 30 November 2026 **Verdict: leave the IOMMU on.** On this lab's software, turning it off made no measurable difference to Halogen or to llama.cpp on ROCm, and gave llama.cpp on Vulkan 2–6%. In exchange it cost the NPU and Thunderbolt DMA protection. When switched off in the BIOS, it also broke both Thunderbolt links between the boxes. ## Why we tested it Several Strix Halo guides recommend the kernel parameter `amd_iommu=off` for inference. The claims we read: | source | what was compared | claim | |---|---|---| | [The Frontier Lab, part two](https://thefrontierlab.ai/strix-halo-tuning-part-two-iommu/) (23 Jul 2026) | `iommu=pt` → `amd_iommu=off`, llama.cpp build 9870 on Vulkan, kernel 7.0.11, one reboot A/B | dense prefill +34 to +38%, MoE prefill +4 to +7%, generation about +1%. The author's ROCm numbers, compared across days, show about +10% dense prefill | | [strix-halo-toolboxes.com](https://strix-halo-toolboxes.com/) | `amd_iommu=off` versus pass-through | 5–12%, citing another user's benchmark (we read the site's summary, not the raw issue) | | [Donato Capitella, YouTube](https://www.youtube.com/watch?v=sMacAPpgXhQ) (14 Jul 2026, AMD-sponsored) | IOMMU off **plus** multi-user mode, a 124 GB GPU pool and a performance profile | 10–18% prefill, 3–7% generation. The changes aren't separated | | [hogeheer499 strix-halo-guide](https://github.com/hogeheer499-commits/strix-halo-guide/blob/main/docs/amd-strix-halo-setup.md) | one desktop test | about 6% on memory reads. It recommends leaving the IOMMU on for the NPU, suspend and clustering | The costs named in those sources and their comment threads: - the NPU stops working; - DMA protection for USB and Thunderbolt devices is lost (see the [kernel's Thunderbolt documentation](https://docs.kernel.org/admin-guide/thunderbolt.html)); - VM isolation is lost; - one BOSGAME owner reported unstable Wi-Fi. ## What was measured | | | |---|---| | Box | strix2: BOSGAME M5, Ryzen AI Max+ 395, Radeon 8060S (gfx1151), 128 GB, BIOS 3.11, Omarchy, kernel 7.2.15, ROCm 10.2 | | IOMMU on | the box's usual state: BIOS IOMMU (AMD-Vi) Enabled, kernel `iommu=pt` (31 IOMMU groups untranslated; only the SD reader translated) | | IOMMU off | kernel `amd_iommu=off`, and for the warm runs also BIOS IOMMU Disabled. No IOMMU devices; Thunderbolt `iommu_dma_protection=0` | | Halogen | 0.21.0, Qwen3.8 Flash-Next, through its own API with [`iommu-ab/halogen_ab.py`](iommu-ab/halogen_ab.py): prompts of about 2K, 9K and 37K tokens with a unique prefix each, so the prompt cache never hits, and 512-token decodes of code and prose. 3 runs each, after one warm-up pass. Rates are Halogen's own `timings` | | llama.cpp | build b12779 (`28148b5`), ROCm and Vulkan builds, flash attention on, `llamabench.py` cards (3 reps each): Qwen3.8 27B Q4_K (dense) and Gemma 4 26B-A4B Q4_K_M (MoE) | | Conditions | both sides on the same day, under the GPU lock, nothing else on the GPU. The GPU held about 2,900 MHz at about 135–139 W, with the edge temperature peaking at 101 °C on both sides | ## Results **llama.cpp** (tok/s, mean ± standard deviation of 3): | backend | model | test | IOMMU on | IOMMU off | off vs on | |---|---|---|---:|---:|---:| | ROCm | dense 27B | pp512 | 437.3 ± 0.5 | 436.9 ± 1.2 | −0.1% | | ROCm | dense 27B | pp4096 | 430.6 ± 1.8 | 433.8 ± 0.9 | +0.7% | | ROCm | dense 27B | tg128 | 12.52 | 12.54 | +0.1% | | ROCm | MoE 26B-A4B | pp512 | 1,859.2 ± 16.9 | 1,838.9 ± 26.0 | −1.1% | | ROCm | MoE 26B-A4B | pp4096 | 1,707.7 ± 9.1 | 1,714.7 ± 5.8 | +0.4% | | ROCm | MoE 26B-A4B | tg128 | 61.05 | 61.11 | +0.1% | | Vulkan | dense 27B | pp512 | 416.0 ± 4.5 | 423.1 ± 13.3 | +1.7% | | Vulkan | dense 27B | pp4096 | 404.8 ± 1.0 | 417.9 ± 2.3 | +3.2% | | Vulkan | dense 27B | tg128 | 12.02 | 12.74 | +5.9% | | Vulkan | MoE 26B-A4B | pp512 | 1,717.7 ± 24.2 | 1,776.3 ± 4.7 | +3.4% | | Vulkan | MoE 26B-A4B | pp4096 | 1,607.1 ± 2.5 | 1,661.6 ± 5.6 | +3.4% | | Vulkan | MoE 26B-A4B | tg128 | 64.96 | 67.21 | +3.5% | **Halogen** (tok/s, median of 3, both sides warm): | test | IOMMU on | IOMMU off | off vs on | |---|---:|---:|---:| | prefill, ~2K tokens | 1,902.3 | 1,899.3 | −0.2% | | prefill, ~9K tokens | 2,151.6 | 2,158.5 | +0.3% | | prefill, ~37K tokens | 2,114.3 | 2,128.7 | +0.7% | | decode, code | 105.2 | 105.6 | +0.3% | | decode, prose | 68.6 | 69.2 | +0.9% | Two traps, both recorded in [`iommu-ab/halogen/`](iommu-ab/halogen): - **Cold runs.** The first IOMMU-off run measured 3–5% slower across the board, but only because Halogen had just been loaded. One warm-up pass closed the gap. - **Stale baselines.** A baseline taken hours earlier on a long-running server (13:45, on) sits 1–3% above the warm runs on both sides. Compare warm runs taken close together. ## Why the big published numbers don't show up here We didn't establish why. Two observations: - Our dense model on Vulkan already prefills at about 416 tok/s with the IOMMU on, against the 255 → 351 tok/s in the Frontier Lab write-up, on an older build and kernel. Whatever overhead they measured, this build and kernel don't seem to have. - With `iommu=pt`, the GPU already sits in an untranslated (identity) group, so there is no per-access address translation left to remove. Halogen allocates its KV pool up front and memory-maps its checkpoint, and it moved by less than 1%. ## What switching it off cost us - **The NPU.** `/dev/accel` disappears. - **Thunderbolt DMA protection.** `iommu_dma_protection` drops to 0 on both domains. - **Not the IOMMU's fault: the disk's TPM key.** On the first reboot, which changed only the kernel parameter, strix2's TPM refused its disk key, and the box waited for the passphrase. PCR 7 doesn't cover the kernel command line, so the key was most likely stale from an earlier enrolment. It was re-enrolled (`systemd-cryptenroll --wipe-slot=tpm2 --tpm2-device=auto --tpm2-pcrs=7`), and later boots, including the switch back to IOMMU on, unlocked by themselves. - **Both Thunderbolt links, with the BIOS switch.** With BIOS IOMMU Disabled, strix2's two USB4 controllers (PCI `c7:00.5` and `c7:00.6`) came up driving each other's cables. Each box's addresses ended up facing the wrong peer, so neither link passed a packet. Re-enabling the BIOS switch fixed it. The links weren't tested on the boot with only the kernel parameter, so whether that alone is safe for them is unknown. - **One console surprise.** The keyboard was in its Mac mode and couldn't type at the disk-unlock prompt until it was switched to Windows mode. That's not an IOMMU effect, but it's worth knowing before you're standing at a headless box. ## Reproduce it ```sh # Halogen (on the box; Halogen serving on 127.0.0.1:18102; the script reads ~/bench-ab-corpus.txt, any long text file) python3 docs/tuning/iommu-ab/halogen_ab.py LABEL 3 > out.json # llama.cpp (from the controller; one card per run) python3 llamabench.py run --host strix2 --backend vulkan \ --model abliterated/huihui-ai-Qwen3.8-27B-Q4_K/Huihui-Qwen3.8-27B-abliterated-Q4_K.gguf -p 512 -n 128 -r 3 -fa 1 ``` The 16 cards in [`iommu-ab/llama-bench/`](iommu-ab/llama-bench) hold each run's exact command, build, model hash and raw llama-bench JSON. Cards stamped 20:33–20:37 UTC ran with the IOMMU off; cards from 20:53 UTC on ran with it on.