mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#1410
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 @vletu-ghub on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3463
Follow-up to #872.
UPDATE 10/26/2026 6:11PM:
I've been experimenting with 2000MHz cap. So far so good, been running for a few days.
Summary: capping the board at 2000MHz and lower makes Strata usable on my PC. Anything 2200MHz (yes, this crashed too) and higher produces a restart in minutes on hours. Logging at 17Hz doesn't reveal too much (power draw, temps, clock speed, fan rpm, etc). It seems to crash after a request, not in the middle of a long compaction or anything like that. So maybe this rapid switching produces really high power transients that the PSU can't absorb. Could also be the motherboard, CPU or GPU itself, although less likely. I can't fully explain it or figure out the trigger no matter what I try.
I'm closing this, but I would consider it to be very valuable for someone in my situation. Unfortunately I spent more time testing hardware than actually using Strata for something useful for me.
I'll add an update if/when I replace my PSU with another Dell PSU (no way around this, unless I also change the motherboard and the case).
UPDATE 10/22/2026 8:14AM:
I've been experimenting a lot with this. Tried 1h sessions at 2000MHz and 2400MHz. Everything seemed ok, until the 2400MHz session yesterday morning crashed. Reverted to the 1800MHz cap - so far zero reboots. This does indeed seem stable, at least so far. I'll keep experimenting this week with this underclocking cap before I can definitely say this is it.
Assuming it remains stable, here are the consequences:
Assuming this setup is stable, it would likely point to the specifics of my hardware, especially the 3 rails PSU at 1000W. I'll be looking into potentially swapping out the 1000W one for a 1350W one, with much higher amps on each rail (should physically fit inside the case, but the mobo connector is 12 pin vs my current 10 pin - there's apparently an adapter cable for this - 3rd party).
I would also look into finding the limit, by experimenting with 2000MHz and 2200MHz (2400 crashed, 1800 seems stable).
UPDATE 10/20/2026 8:09PM - I may be onto something. It seems max power cap (-15%) doesn't smooth out spikes, just moving averages. So the power cap by iself still resulted in the socket (not the entire board) drawing over 500W. I'm logging that 20 times a second, so I know the PC survives it, but that means it could be an even bigger value that doesn't survive/doesn't get logged, sags the rail and the PSU reboots the PC. Even at 1000W. Considering the i9-12900K can draw up to 260W by itself.
The thing that so far does seem to work (survived a 4h synthetic session - loop) is underclocking. Running at 1800MHz core clock max was stable in this 1 session and the gpu max draw was 271W (even though it's capped at 261). Still, far below the 480-500W+ that it did uncapped. Uncapped, the core clock can do 3000MHz+.
This may be very useful for someone else in the same situation. So now I'm power limiting (-15%), undervolting (-60mV) and underclocking the core (1800MHz). Next test - in progress - is at 2000MHz.
For reference, the Dell 1000W PSU has 3 rails - 36A, 27A, 36A. The GPU is on one of the 36A ones.
I can close this or keep it open and update it with the findings. If you consider it irrelevant/not helpful for enough people, please let me know and I can close it.
Hardware
Software
Symptom
While Strata is serving, the machine self-restarts. No shutdown, panic, OOM, MCE, thermal or amdgpu message is logged; the journal ends mid-activity and the engine log ends mid-request. The machine returns after a cold boot. 18 restarts on Linux so far, 2.4–88 min after the load starts.
Test prompt
The prompt loops: read 80 lines from a source file, append a short function (≤15 lines), run python3, and repeat.
Configurations tested
--resident-budget-gib 42,--pcie-frac 0,--vram-reserve-mib 832,HSA_USERPTR_FOR_PAGED_MEM=0): 36.37 GiB pinned, 7,317 experts in VRAM, file tier idle; 45–46 GiB RAM used / 14–15 GiB available. Survived 73.8 min, then restarted after 12 cycles of the test prompt in the next run.--pcie-frac 0(IQ3_XXS, 131072): decode 93–110 tok/s versus ~80 at baseline at the same context; prefill unchanged at ~1,140 tok/s. Restarted at 23m40s.ASPM L1 Enabled); ASPM was also disabled withsetpci, and the restarts continued.With the test prompt, the machine also restarted at 22m56s, 5m56s, and 12m32s in the other attempts.
@github-actions[bot] commented on GitHub (Oct 20, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 20, 2026):
Thanks, this follows the format now.
@vletu-ghub commented on GitHub (Oct 26, 2026):
Closing this as it looks like a hardware issue, specific probably to Dell 1000W PSU design (3 separate rails) and the transient power spikes associated with 7900 XTX OEM reference card.
@TheHugoHypothesis commented on GitHub (Nov 3, 2026):
I'm experiencing the same issue with an RX 7900 XT, Gyro-strata S, DDR5 @ 4800 MHz, and everything running at stock clocks and voltages, powered by an 850W XPG Core Reactor II PSU, which is a very good-quality PSU
I ran a GPU stress test at full load, mimicked the Strata's intermitent spikes, but it didn't trigger the sudden reboot, whereas the Strata workload did. I also tested all the possible combinations suggested in the previous issue, but none of them worked. The reboot is somewhat intermittent.
Interestingly, this only seems to happen with certain workloads, particularly math-intensive ones.
My current theory is that there might be a software bug in the AMD driver that causes the system to hang, triggering the motherboard's watchdog to force a reboot.
@vletu-ghub commented on GitHub (Nov 3, 2026):
@TheHugoHypothesis , I've been experimenting a lot more since my last update, and I can provide more info about my case and how it may relate to yours:
Please let me know if you find anything useful.
@TheHugoHypothesis commented on GitHub (Nov 3, 2026):
@vletu-ghub Thanks for the detailed update. Finding out that the 1800MHz and 2000MHz caps eventually crashed for you too is huge; it completely mirrors what I’ve been seeing on my end over the past couple of days, and it saves me from continuing down a dead-end tuning clocks.
To give you the exact hardware baseline I'm testing on:
hipblaslt-7.2.0-7.Crucially regarding your PSU theory, my power supply has a single, unified 70.8A +12V rail rated for standard ATX 3.0 excursion spikes. Because my system experiences the exact same instantaneous cold reboots under Strata with an 850W single-rail unit that you're seeing on your Dell 1000W multi-rail unit, I think we can definitively rule out a multi-rail OCP trip on Dell hardware as the sole explanation.
I put the entire machine through a brutal 30-minute full-system burn-in. I ran continuous hipBLAS FP16 matrix multiplication on the 7900 XT locked at 2180 MHz (~215W steady draw), cuBLAS on the 4060 Ti, 18 GB of RAM allocated under
stress-ng(>90% system memory saturation), a 12-thread CPU burn, and direct-I/O NVMe streaming simultaneously. The machine completed the full 1,800 seconds with zero stage failures, zero PCIe AER errors, zero MCE/EDAC errors, and no power dips. The silicon and power delivery are rock-solid under sustained heavy load.In Strata, however, I went through the entire mitigation matrix and still hit cold reboots:
vo 0, no undervolt).HSA_USERPTR_FOR_PAGED_MEM=0,STRATA_RESIDENT_PIN=0,--pcie-frac 0, and--vram-reserve-mib 2560.Even with all of that dialed in, Strata still cold-rebooted during early prompt processing, sometimes before completing a single prompt.
Because the system cuts out instantly without logging a kernel panic or stack trace to disk, I pulled the hardware reset registers from the AMD chipset (
dmesgright after the reboot). The register consistently logs:BP_SYS_RST_Lis the motherboard's Baseboard Platform System Reset Low line. This confirms the operating system isn't crashing in software; the motherboard firmware/chipset watchdog is physically dropping the hardware reset line.From what we're both seeing, there seem to be two real candidates for what physically pulls that reset pin:
di/dt): Strata's speculative verification repeatedly drops compute units to near-idle while waiting on host memory transfers and then instantly wakes all 84 CUs to full throttle in microseconds. That transition speed produces massive instantaneous current spikes that outpace standard millisecond power-capping loops, sagging the local VRM/12V rail belowV_{min}and dropping the motherboard’sPWR_OKsignal.Your note about running
llama.cppfor 1.5 months without a single crash really seals the deal for me. I just moved my local agent workflow over tollama-serverrunningSwift-1.5-Qwen3.8-27B(MTP speculative decoding, 160K context with Q8_0 KV, sitting comfortably at ~18.4 GiB VRAM) on this exact same 7900 XT. It has been running completely stably with zero stalls and zero reboots. It really looks like this is a specific architectural interaction between Strata’s dynamic HIP graph execution model and RDNA3/AM5 platform behavior rather than bad silicon or a faulty PSU.although, I would love to hear about your experience with the better PSU. Let me know if it works.
@vletu-ghub commented on GitHub (Nov 3, 2026):
@TheHugoHypothesis - thank you for your detailed reply. I've been at this since Oct 5th, almost a full month. I'm not giving up. Your details are really useful for my investigation, thanks again for that.
I can tell you that for me it's been crashing with both rom 7.1 and rocm 10.1. On both Windows 11 Pro and Ubuntu 26.04.1 LTS. Drivers, while not impossible, are a bit unlikely here.
You second candidate (Completion Timeout) should leave a trace in the log. There was another user in here that mentioned something similar and he had a trace in his Windows logs. For me, there's zero traces in both Windows and Linux, it just looks identical to someone pulling the plug. That #872 issue you're quoting it's still mine (the original one I raised first on Windows).
On my machine, I monitor GTT, and while I can't be sure, I can tell you I believe mine stays at 26MB (which is likely just the driver size).
Also, my 4 x 16GB DDR5 sticks are 4800MTs rated, fully jdec, there's no tuning, overclocking, or anything that can be done on the dell motherboard. The sticks themselves are jdec (1.1V) and 2 sticks run at 4400MTs, all 4 run at 4000MTs. There's absolutely nothing I can change for that. I think it's safe for you to stop testing your at lower speeds.
Also, a bit weird that yours crashes at pp stage. Mine almost never did that. It can survive 200k tokens+ cold prompts just fine (that's the stable load on the GPU). Almost every time it was during a request, a tool call, or right between them (no idea which one exactly, as they're quite fast obviously).
I also forced journal ctl to flush the log every 1 second (it was losing the last 15 seconds).
Anyway, I'm pretty sure now that for me the PSU drops. I just can't find definitive evidence on why. The fact that the only reported issues are with rdna3 does seem to point to something specific to the GPUs. But that common part could just simply be crazy transient power spikes. You got me concerned with your 71A PSU, but to be honest, mine will have 72A only for 1 GPU. The new rails are 42A for the CPU (my i9-12900k has a 250W PL2, but can spike all the way to 400W), 36 for the motherboard (I can only use 10 of the 12 pins, so I don't expect more headroom there) and 72A for the GPU 2 x 8pin connectors. It's still possible you're pushing your PSU too much (just triggered by Strata's rapid switching workload), with the GPUs. Unlikely, but possible.
I can accept a software crash, that's fixable by AI. A hardware crash is maddening. I technically have warranty separately for the PC and the GPU. It would be however almost impossible to replicate the flaw. Plus, Dell has a list of supported GPUs for my system, and the 7900xtx is not among them.
I'll keep you posted.
@vletu-ghub commented on GitHub (Nov 5, 2026):
@TheHugoHypothesis - I received and installed the 1350W PSU today. It fit fine, and the motherboard adapter from China worked perfectly. I ran a -50mV, 2500MHz capped session (power is always capped at -15%, so 261W socket in linux) for 3 hours. It's a synthetic session, that just reads and writes some python files in a loop. IQ3s, Strata 0.2.6. 256k context. Ran fine for 3 hours.
Then, I updated DSH to the latest version (I do this regularly) and resumed the previous session, as I had some issues with its latest alpha version and wanted to make sure it no longer errors out.
Resuming the previous session triggered a cold prompt of about 204k tokens, ran for about 16 more minutes (+/-) and then rebooted.
So yeah ... unsure what's next. Your completely different chipset (AMD) and different PSU points to this being an issue with the GPUs (the only thing we have in common).
My next plan (in case the PSU doesn't fix it - which it didn't) was to change the motherboard + case + PSU (get rid of Dell proprietary), but now I wonder if it's not simply the GPU... and I have no good alternative for the GPU in this market.
@Kutalia commented on GitHub (Nov 5, 2026):
What is your idle GPU power usage? It could be that it drops into a "deep sleep" mode when idling, reducing its frequencies. And transitioning from that to full power could be causing driver/hardware-level protection to kick in. I had similar issues and fixed it by re-enabling my HDMI-connected 4k TV screen in Ubuntu. It resulted in GPU no longer going to sleep and always maintaining higher clocks even when just rendering a static desktop.
You can run some background task like video/rendering/game to force your GPU to "stay alert".
Check stats using rocm-smi command. My reference RX 7900 XTX shows 74W during idling (dropped to 10W when a high resolution screen was disabled from the OS).
@vletu-ghub commented on GitHub (Nov 5, 2026):
@Kutalia - yesterday, it crashed in a loop session (continuous reading and writing to a file). That doesn't let it idle. Worked fine for 3 hours, then died, same day, in 16 minutes of running the exact same loop. I could just move the display on the 7900XTX, but that would eat out some vram. Or I can set power_dpm_force_performance_level to high.
I have now migrated to the latest version (0.2.11). I avoided that for a while as it introduced significant performance regression for me, but I no longer care about performance that much.
I do have a couple more software levers to try out if it reboots again on the latest version: AMD_SERIALIZE_KERNEL = 3 and AMD_SERIALIZE_COPY = 3 (about 50% performance drop on pp, no impact on tg) and HSA_ENABLE_SDMA=0 (copies run as blit kernels).
Long process, as I don't have a way to make it always crash in a few minutes or something like that. But I did learn that caps and limits have no effect. I now very much doubt there's any hardware issue, as more reports are coming on this also on different motherboards, CPUs, PSUs and even nvidia GPUs.
@TheHugoHypothesis commented on GitHub (Nov 6, 2026):
@Kutalia @vletu-ghub got some progress here on my side.
I reproduced the abrupt reboot on my RX 7900 XT system after updating Strata and enabling the ROCm diagnostic settings discussed above. This time the next Linux boot recorded an AMD data fabric sync flood reset reason. I don't yet know which component or operation initiated the error.
Configuration during the run that rebooted
The engine was using DFlash2,
--prefill 512,--resident-budget-gib 9,--expert-cache auto,--pcie-frac 0,--vram-reserve-mib 2560, and--suffix-draft 3. The following diagnostic variables were set in the launch configuration:The server loaded, processed multiple prompts and generated responses. I observed roughly 15 minutes without a restart before the reboot; the engine log contains completed requests including 44k tokens prompt.
Reset evidence
The next boot logged:
At
11:14:51local time, recorded Strata running with DFlash2, GPU junction temperature 55°C, GPU memory temperature 68°C, 87% VRAM allocated and approximately 12.6 GiB system memory available.I did not find a corresponding PCIe AER error, GPU fault, or detailed machine-check record in the available prior-boot kernel journal near the reset. The persistent kernel journal ended before the final telemetry sample, so this absence does not prove that no error occurred. The reset code is a high-level indication and does not identify the failing device though.
Current follow-up experiment
For a later boot I changed the existing AMD GPU feature mask from
0xfff7ffffto0xfff7fffb, clearingPP_PCIE_DPM_MASK(0x4). The new value was confirmed in both the kernel command line and loaded amdgpu module. The other diagnostic settings and DFlash2 remain in place.The machine rebooted again during this follow-up on November 6, around 12:02 local time, after approximately 36 minutes of boot time. Strata was running and had completed a request with an approximately 85k-token prompt (most tokens reused) and 8,192 generated tokens. The next boot again reported
0x08000800(uncorrected error causing a data fabric sync flood). The mask was verified in the command line and loaded driver during the run, but its effective behavior on this GPU was not independently established. GPU performance mode was observed asautoearlier in the run, so it is not necessarily a single-variable comparison with the preceding crash.I have persistent work-monitor telemetry and post-boot captures.
I can provide relevant excerpts after reviewing them
Related Reports
I found some reports that may be relevant, although none establishes the cause of my resets:
0x08000800reset reason. The reporter also observedERREVENT_ATHUB_INTERRUPTanddevice lost from busin some earlier logs. I have not found those messages in my preserved crash logs; their GPU architecture and setup also differ from mine.HSA_ENABLE_SDMA=0set; this does not by itself establish whether the issues are related.device lost from busevents and sync-flood resets during gaming. Their initial apparent improvement after an update did not hold; lower clocks and power appeared to reduce their crash rate without eliminating the failures. The GPU and workload differ from mine, and the proposed driver explanation is still a hypothesis.If someone can capture the same kind of error, we would have a very good direction to follow
@vletu-ghub commented on GitHub (Nov 6, 2026):
Thanks @TheHugoHypothesis — the reset-reason decode is the most useful thing in this thread. Two observations from the same box since your last update:
For what it's worth, my one serialized run (35 min, same all-resident config) survived — not a clean test against your setup.
@TheHugoHypothesis commented on GitHub (Nov 6, 2026):
@vletu-ghub - a more encouraging update from my Ryzen 7 7700 / RX 7900 XT system.
I have now captured three resets with the same next-boot message:
The latest occurred with rasdaemon recording MCE/AER events. Its database contained no MCE, PCIe AER, memory or disk errors after the reboot, so I still don't have a record identifying the initiating component. The GPU PCIe DPM mask change alone did not prevent a reset though. I then tested a combined set of CPU idle and DMA/PCIe settings:
Linux confirms IOMMU passthrough, reports ASPM disabled, and shows no active cpuidle driver (
current_driver=none). I also disabled PBO and Global C-State Control to disabled on BIOS.As of November 6, 15:08 local time, the same Strata engine process has remained running for about 2 hours 26 minutes without a reboot, with completed requests reaching 237k tokens of context, which is impressive: I did not get a run of over 10 minutes before. That context was accumulated and largely reused though; this was not a single 237k cold prefill or necessarily continuous active inference. Recent generation was around 38–40 tok/s.
I am still on engine 0.1.57, using DFlash2, a 9 GiB resident RAM budget and the existing diagnostic settings:
GPU performance mode reads
auto. I have not changed ROCm for this run; the Fedora packages include HIP 7.2.2, HSA runtime 7.2.1 and hipBLAS/hipBLASLt 7.2.0.This is promising compared with the recent failures, but not a confirmed fix. Several settings changed together, so I cannot say which matters. Also, PCIe service ownership reported by ACPI changed with this bundle, so the absence of AER messages is not directly comparable with the earlier boots.
I am keeping this configuration through normal work, with rasdaemon and persistent telemetry running, before attempting to isolate the settings individually.
@vletu-ghub commented on GitHub (Nov 6, 2026):
Thanks @TheHugoHypothesis — the C-state angle looks like the first real lead in this thread, and I can add a second platform's data. But I honestly don't fully recall - I might have tried that while I was running Windows, it's been more than a month.
ASPM: That's one of the first things I tried - I tested disabling it in the BIOS on my Dell and still got a reset — a scripted synthetic loop cut the machine after 10m14s. So ASPM-off alone doesn't fix it here either, consistent with your test.
My box is an i9-12900K + 7900 XTX, and unlike your surviving config it has intel_idle C1E/C6/C8/C10 fully enabled. I'm going to test the analogous bundle — intel_idle.max_cstate=1 processor.max_cstate=1 iommu=pt pcie_aspm=off on top of my existing amdgpu.ppfeaturemask=0xfff7ffff — and report back. If it survives, that's a second platform pointing at CPU idle states rather than ASPM/PCIe alone.
@TheHugoHypothesis commented on GitHub (Nov 7, 2026):
@vletu-ghub More updating:
Global C-State Control = Disabledin BIOS +processor.max_cstate=1) turned out to work for stability.amdgpu.ppfeaturemask=0xfff7fffb processor.max_cstate=1and Global C-State Control to disabled on BIOS is sufficient (two solid runs: one 5h and one 2h) [also, maybe the featuremask is not necessary as well]Went back
Now running a new testing, 1h so far very stable.
Why I think that works
If it works on your computer, that's my theory that explains the crashes on both my AMD Ryzen 7700 and your Intel i9-12900K (and why
llama.cppor sustained burn-ins never trigger it) comes down to how x86 cache-coherent PCIe DMA and ROCm HSA Atomics interact with CPU interconnect power-gating:Unlike dense models or synthetic stress tests that keep the CPU and PCIe bus continuously active in
C0, Strata’s MoE routing and speculative verification create violent, microsecond-scale transitions between GPU compute bursts, host-RAM expert streaming, and brief CPU idle pauses.During those sub-millisecond pauses while waiting on the GPU, the OS idle governor aggressively drops CPU cores into deep sleep states (CC6 on AMD, C6/C8/C10 on Intel), which takes ~150–350µs to wake from and allows the CPU power controller to clock-gate/downclock the internal interconnect (Data Fabric on AMD, Ring Bus / System Agent on Intel).
When the
gfx1100GPU suddenly fires a high-bandwidth burst of coherent DMA reads or PCIe AtomicOps (HSA doorbells/signals) into host DDR5 while the CPU uncore is transitioning power states, the PCIe Root Complex still has to snoop the CPU caches/L3 filter to maintain x86 memory coherency.If those non-posted PCIe requests pile up waiting for the fabric/ring bus and snoop filter to wake up, it triggers a hardware race condition or credit stall—manifesting either as the GPU command ring timing out (
verify: timed out... waiting for the GPUin 0.2.11) or a fatal PCIe Completion Timeout. On my AM5 board, that bus lockup triggers an immediate Data Fabric Sync Flood (0x08000800) and pullsBP_SYS_RST_L; on your Dell Intel workstation, an uncore/PCIe fatal error (IERR/CATERR) causes the PCH to execute a full cold platform reset by cyclingPS_ON#to clear the locked bus, which explains your PSU relay clicking and the NVMe unsafe shutdown counter incrementing even on a new 1350W PSU.Locking both platforms to
max_cstate=1(intel_idle.max_cstate=1 processor.max_cstate=1on Intel, since Linux'sintel_idleignores BIOS C-state limits by default) keeps the cores, L3 snoop filter, and memory fabric continuously awake with <1µs response time so inbound GPU DMA bursts never stall.Let me know if it works, that would be a very good discovery. Also it looks like
max_cstate=1improves performance( ~ +5%). So that could be an useful investigation @Niko1221 as it is a simple boot parameter configThe only tradeoff would be extra 15–25W of idle CPU power draw; but Linux exposes PM QoS (
/dev/cpu_dma_latency) which can force cstate=1 only when Strata is runningROCm Inference AMD also goes to this line on some workloads:
DC C-states (set to Disabled): Prevent the AMD Infinity Fabric from entering a low-power state.CPU Core States (C-states): Deeper sleep state (C2) is disabled and frequency governor is set to performance (e.g., using Linux cpupower utility).