mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2729] [Bug]: gfx1100 (RX 7900 XT 20 GB, 31 GiB RAM): amdkfd SVM restore hangs and kswapd order-0 alloc failures persist with HSA_USERPTR_FOR_PAGED_MEM=0; suspend with the SVM mapping active never resumes #1090
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1090
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Smuggz69 on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2729
What happened
Four kernel-level events on one box, all in the amdkfd/SVM restore paths, on a 31 GiB RAM / 20 GB VRAM machine. Two of them are evidence the published workaround does not cover:
HSA_USERPTR_FOR_PAGED_MEM=0removes the amdkfd hang, but not the reclaim pressure behind it, and suspend/resume with the SVM mapping active never returns.This is a second machine for the mechanism in #1705 (that box had 125 GiB RAM and the env var ended everything there). We are filing a new issue that links it, per the closing note there, because the new evidence below is not in #1705. Related: #750, #920, and the compaction-stall docs section being added in #2413.
Environment
build-hip, archsgfx1100), args--resident-experts --vram-reserve-mib 3072 --kv int87.2.9-2-cachyosPREEMPT, 31 GiB RAM, zram swap, zswap off, model files on NVMeSTRATA_RESIDENT_PIN=0, per the ~32 GB box guidance in TROUBLESHOOTING #649)Events 1 and 2 - 2026-10-12, before the env var was set
1.
12:38:28-kworkerin D state insidesvm_range_restore_work, then the box died (boot ended 12:38:47, manual reboot 12:42):followed by
warn_alloc/kswapd0: page allocation failure: order:0.2.
19:32:25(also13:03:10,15:48:59) - hung task, engine unkillable until reboot:The mutex is held by
svm_range_restore_work->amdgpu_hmm_range_get_pages->hmm_range_fault->filemap_fault->folio_wait_bit: the GPU's SVM expert restore waits inside a model-file page fault. At user level that is the prompt watchdog plus a 60-162 s freeze, then SIGABRT:The engine then exits
-6and the server restarts it. ~10 stalls/day on the Q2_0 tier.Event 3 - 22:46:26, suspend with the engine loaded never resumed
Nothing after - no resume line, no amdgpu line. The box needed a hard power cycle (reboot 22:51:35). Third time suspend/resume with the Strata SVM mapping active has failed to come back, same class as event 1. This one is independent of the env var, so we stop the engine before suspend via a system-sleep hook.
Event 4 - 2026-10-13 12:53:52, WITH the workaround set
HSA_USERPTR_FOR_PAGED_MEM=0andGPU_PINNED_MIN_XFER_SIZE=1048576were both in the engine'senvblock for this run, and the reclaim pressure is still there:Same boot: coder tier (IQ1_M, expert pool 17.14 GiB,
STRATA_RESIDENT_HEADROOM_GIB=8,--kv int8), 0 file-tier expert reads, MemAvailable 10 GiB, swap 0 used. 31 order-0 allocation failures in that boot. So on this box the env var removes the amdkfd hang (events 1-2 have not recurred with it set) but not the RAM side of the same subsystem.What we would like upstream
docs/AMD_HIP.mdreclaim section that on a ~31 GiB box the env var ends the hang but not the order-0 reclaim failures, and that suspend with the SVM mapping active is a separate failure class - so people do not read "set the env var" as a complete fix.Notes for triage
svm_range_restore_work,amdgpu_amdkfd_restore_userptr_worker) - one subsystem.HSA_USERPTR_FOR_PAGED_MEM=0; event 3 is the suspend path and is independent of it; event 4 is with it set.@Smuggz69 commented on GitHub (Oct 16, 2026):
Re-tested on 0.1.44.1 (compiled from source here,
engine/BUILD.jsonversion0.1.44.1, archsgfx1100, source hash7dfd34378bd2d32a) on the same box, 2026-10-16 00:0x CDT, one 31,064-token prompt through the same server config:hipBLASLt tuning enabled (26 rows, gfx1100, version 100200); PLE direct read probe 21,870 rows/s;ulimit -lunlimited,--ple-ioleft at its defaultdirectsvm_rangelines, 0 hung-task reports, 0page allocation failure(order:0). Events 1, 2 and 4 have not recurred, withHSA_USERPTR_FOR_PAGED_MEM=0andGPU_PINNED_MIN_XFER_SIZE=1048576still setCaveats so this is read right: that is one request window, not a full day of load, and event 4 only ever showed up under sustained reclaim pressure — we will update here if an order-0 failure appears on 0.1.44.1. Event 3 (suspend with the SVM mapping active) is not re-testable in one sitting; the system-sleep hook still stops the engine before suspend, so we keep that as a workaround regardless of version.
Net: the same configuration is clean on this box on 0.1.44.1 for the first time, and the two numbers that matter (0 file-tier reads, 0 kernel events) are unchanged from the coder tier's behaviour on 0.1.43.1.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.