[GH-ISSUE #5241] [Engine] 0.2.10 (engine 0.1.56): the host hard-resets while reading a 64k prompt, around the point where KV streaming starts; same box fine on 0.1.40.1 (RTX 3090, Linux source build) #3121

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

Originally created by @web-admin-master on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5241

Summary

After updating a Linux source install from v0.1.40.1 (82f46a8) to v0.2.10 (ffa80d73, engine 0.1.56), the whole machine reset three times on 2026-11-04. It powered off and back on, without a kernel panic and without any OS log. Each time Strata was reading a ~64k-token prompt, after it had passed 24,576 tokens. One run of the same sequence passed. Prompts of 10k tokens and below never caused a reset.

I rolled back to 0.1.40.1 with the same configs, weights and pack. The same machine and prompts then passed 3× 64k and 1× 120k in a row. In October, 0.1.40.1 also handled 185k and 253k prompts on this box.

The speedups in 0.2.10 were great on this card, by the way: decode went from 69-79 to 97-100 tok/s on short prompts and from 70 to 92 tok/s after a 120k prompt. So I'd like to get back to it.

System

Board Supermicro X11SSL-F, BIOS 3.6 (2025-04-25)
CPU Xeon E3-1225 v5 (4 cores, no AVX-512, no SMT)
RAM 64 GB DDR4 ECC (62.5 GiB usable)
GPU RTX 3090 24 GB, driver 595.58.03, PCIe 3.0 x16, power limit 350 W
OS AlmaLinux 8.9, kernel 4.18.0-513.11.1.el8_9, glibc 2.28
Build source install, gcc-toolset-12 (12.2.1), CUDA 13.2, setup.py --update (engine "source": "local")
Model Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS (ISTA-DASLab), MTP draft, vision on, shard 1 on NVMe

Engine arguments under 0.2.10, as written by setup and unchanged from 0.1.40.1 except --vram-reserve-mib (2048, was 700):

--serve --pack …/packs/iq3_xxs --native …IQ3_XXS-00001-of-00002.gguf --ple-gguf …-00002-of-00002.gguf
--expert-profile …/data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --mtp …/mtp/rt
--max-context 262144 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 2048
--pcie-frac 0.35 --spec-min-p 0.70

The 128K config is identical except --max-context 131072.

What happens

The test is bench-context-style: three short prompts, then a 10k, a 64k and a 120k prompt, each with a unique first line so nothing is reused, greedy, thinking off, one request at a time.

Run Context GPU power limit Result
1 128K 350 W reset during the 64k prompt (the journal lost the last seconds)
2 128K 350 W passed: 64k at 1,370 / 90 tok/s, 120k at 1,320 / 92 tok/s
3 256K 350 W reset; last log line reading the prompt: 24,576 of 66,045 tokens, 17 s
4 256K 280 W reset; last journal line at 24,576 tokens; a power log synced to disk every second kept running ~9 s longer, into the chunk that starts at 32,768

32,768 is --kv-resident. My guess is that the reset happens in the first prompt chunk that has to put K/V into pinned host RAM. I can't prove it, but the 10k prompts never get there, and the one reset I could place in time lands right there.

What it doesn't seem to be

  • GPU power: with the limit at 280 W, the per-second log shows 215-250 W and 45 °C at the moment of the reset, 277 W at most. For comparison, 0.1.40.1 draws up to 325 W on the same 64k prompt and passes. Spikes shorter than a second would not show at that sampling rate.
  • Corrected ECC errors: one DIMM on this box logs corrected errors now and then, but the boot that ended in reset 4 logged none in 75 minutes.
  • A software crash: there is no panic, no MCE and no BERT record after the boot. The firmware runs APEI in firmware-first mode, so a fatal PCIe or memory error would be handled (and possibly turned into a reset) by the firmware without an OS log. The BMC's event log (IPMI SEL) has no entries at all: nothing about a power fault, an uncorrectable ECC error or a PCIe error. Because it is completely empty, the BIOS may simply not be logging these, so I don't read much into that.

Defaults that are new on this box compared with 0.1.40.1 (from the 0.2.10 log)

  • sm_86 (Ampere): 9 exact speed switches on by default: ADAPT_NOWAIT ADAPT_LAG CPU_IQ_ALL_EXACT1 SIDE_MIXER ATTN_DAILY GR_UP75 GU_SWIGLU QSA_ROWS B6_MMVQ_ROWS
  • prefill: the CPU share is ON by default for prompt chunks up to 3072 tokens
  • the prompt path borrows 2611 CUDA0 cache slots (4.25 GiB)
  • conversation cache sized from the free RAM: 4864 MiB
  • --vram-reserve-mib 2048 (2,027 MiB of VRAM left free, against 461 MiB on 0.1.40.1)

What I can test

Each failed attempt hard-resets a machine that also serves storage, so I'd rather test the switches you think are most likely than bisect blindly. Possible runs, each with three 64k prompts:

  1. STRATA_SM86_PERF=0
  2. STRATA_PREFILL_CPU_SHARE=0
  3. STRATA_ADAPT_NOWAIT=0 STRATA_ADAPT_LAG=0 alone, if these can be set individually
  4. A GPU clock cap (nvidia-smi -lgc 0,1800) with 0.2.10 unchanged

#3463 looks like a relative on AMD: hard restarts with no trace, worked around with a clock cap, and PSU transients suspected. The 280 W power limit above caps the average, not sub-second spikes, so run 4 would be the test for that. It wouldn't explain why 0.1.40.1 passes at higher power, unless 0.2.10's load pattern switches faster.

Which of these, or which other switch, would you try first? Logs, the engine log of the failing sessions and the power log are available.

Unrelated, small: with gcc 12, include/strata/core/vmm.hpp needs #include <stddef.h> for size_t (it only includes <cstdint> and <vector>). Still the case in v0.2.10. We carry a one-line local patch.

Originally created by @web-admin-master on GitHub (Nov 4, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5241 ## Summary After updating a Linux source install from v0.1.40.1 (`82f46a8`) to v0.2.10 (`ffa80d73`, engine 0.1.56), the whole machine reset three times on 2026-11-04. It powered off and back on, without a kernel panic and without any OS log. Each time Strata was reading a ~64k-token prompt, after it had passed 24,576 tokens. One run of the same sequence passed. Prompts of 10k tokens and below never caused a reset. I rolled back to 0.1.40.1 with the same configs, weights and pack. The same machine and prompts then passed 3× 64k and 1× 120k in a row. In October, 0.1.40.1 also handled 185k and 253k prompts on this box. The speedups in 0.2.10 were great on this card, by the way: decode went from 69-79 to 97-100 tok/s on short prompts and from 70 to 92 tok/s after a 120k prompt. So I'd like to get back to it. ## System | | | | :--- | :--- | | Board | Supermicro X11SSL-F, BIOS 3.6 (2025-04-25) | | CPU | Xeon E3-1225 v5 (4 cores, no AVX-512, no SMT) | | RAM | 64 GB DDR4 ECC (62.5 GiB usable) | | GPU | RTX 3090 24 GB, driver 595.58.03, PCIe 3.0 x16, power limit 350 W | | OS | AlmaLinux 8.9, kernel 4.18.0-513.11.1.el8_9, glibc 2.28 | | Build | source install, gcc-toolset-12 (12.2.1), CUDA 13.2, `setup.py --update` (engine `"source": "local"`) | | Model | Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS (ISTA-DASLab), MTP draft, vision on, shard 1 on NVMe | Engine arguments under 0.2.10, as written by setup and unchanged from 0.1.40.1 except `--vram-reserve-mib` (2048, was 700): ``` --serve --pack …/packs/iq3_xxs --native …IQ3_XXS-00001-of-00002.gguf --ple-gguf …-00002-of-00002.gguf --expert-profile …/data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --mtp …/mtp/rt --max-context 262144 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 2048 --pcie-frac 0.35 --spec-min-p 0.70 ``` The 128K config is identical except `--max-context 131072`. ## What happens The test is `bench-context`-style: three short prompts, then a 10k, a 64k and a 120k prompt, each with a unique first line so nothing is reused, greedy, thinking off, one request at a time. | Run | Context | GPU power limit | Result | | :--- | :--- | ---: | :--- | | 1 | 128K | 350 W | **reset** during the 64k prompt (the journal lost the last seconds) | | 2 | 128K | 350 W | passed: 64k at 1,370 / 90 tok/s, 120k at 1,320 / 92 tok/s | | 3 | 256K | 350 W | **reset**; last log line `reading the prompt: 24,576 of 66,045 tokens, 17 s` | | 4 | 256K | 280 W | **reset**; last journal line at 24,576 tokens; a power log synced to disk every second kept running ~9 s longer, into the chunk that starts at 32,768 | 32,768 is `--kv-resident`. My guess is that the reset happens in the first prompt chunk that has to put K/V into pinned host RAM. I can't prove it, but the 10k prompts never get there, and the one reset I could place in time lands right there. ## What it doesn't seem to be - **GPU power:** with the limit at 280 W, the per-second log shows 215-250 W and 45 °C at the moment of the reset, 277 W at most. For comparison, 0.1.40.1 draws up to 325 W on the same 64k prompt and passes. Spikes shorter than a second would not show at that sampling rate. - **Corrected ECC errors:** one DIMM on this box logs corrected errors now and then, but the boot that ended in reset 4 logged none in 75 minutes. - **A software crash:** there is no panic, no MCE and no BERT record after the boot. The firmware runs APEI in firmware-first mode, so a fatal PCIe or memory error would be handled (and possibly turned into a reset) by the firmware without an OS log. The BMC's event log (IPMI SEL) has no entries at all: nothing about a power fault, an uncorrectable ECC error or a PCIe error. Because it is completely empty, the BIOS may simply not be logging these, so I don't read much into that. ## Defaults that are new on this box compared with 0.1.40.1 (from the 0.2.10 log) - `sm_86 (Ampere): 9 exact speed switches on by default: ADAPT_NOWAIT ADAPT_LAG CPU_IQ_ALL_EXACT1 SIDE_MIXER ATTN_DAILY GR_UP75 GU_SWIGLU QSA_ROWS B6_MMVQ_ROWS` - `prefill: the CPU share is ON by default for prompt chunks up to 3072 tokens` - `the prompt path borrows 2611 CUDA0 cache slots (4.25 GiB)` - `conversation cache sized from the free RAM: 4864 MiB` - `--vram-reserve-mib 2048` (2,027 MiB of VRAM left free, against 461 MiB on 0.1.40.1) ## What I can test Each failed attempt hard-resets a machine that also serves storage, so I'd rather test the switches you think are most likely than bisect blindly. Possible runs, each with three 64k prompts: 1. `STRATA_SM86_PERF=0` 2. `STRATA_PREFILL_CPU_SHARE=0` 3. `STRATA_ADAPT_NOWAIT=0 STRATA_ADAPT_LAG=0` alone, if these can be set individually 4. A GPU clock cap (`nvidia-smi -lgc 0,1800`) with 0.2.10 unchanged #3463 looks like a relative on AMD: hard restarts with no trace, worked around with a clock cap, and PSU transients suspected. The 280 W power limit above caps the average, not sub-second spikes, so run 4 would be the test for that. It wouldn't explain why 0.1.40.1 passes at higher power, unless 0.2.10's load pattern switches faster. Which of these, or which other switch, would you try first? Logs, the engine log of the failing sessions and the power log are available. <sub>Unrelated, small: with gcc 12, `include/strata/core/vmm.hpp` needs `#include <stddef.h>` for `size_t` (it only includes `<cstdint>` and `<vector>`). Still the case in v0.2.10. We carry a one-line local patch.</sub>
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#3121
No description provided.