[GH-ISSUE #3066] Decode 2x slower under agent frontends (Windows, RTX 3060 12GB): GPU downclocks to P0 during MoE expert misses — locking clocks recovers ~60% #1228

Closed
opened 2026-11-04 01:49:32 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ahsvel on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3066

What do you want to do?

Report a performance finding + workaround for agent-frontend users, and suggest a docs note. Related to #1910 (same family, disk side).

Setup

  • RTX 3060 12GB, Windows 10, 48GB RAM, NVMe
  • Qwen3.8-Flash-Next IQ3_xxs (27GB MoE + PLE), engine 0.1.42 (0.1.45 also tested)
  • Frontend: Hermes Agent (~12K-token system prompt, tool-heavy multi-turn)

Symptom

  • Web panel decode: ~31 tok/s. Same engine under the agent: 15-16 tok/s.
  • MSI Afterburner: core clock jumps to ~2000 MHz during prefill ("reading prompt"), but drops to 850-900 MHz (P0 base clock) during decode, ~15W.
  • --ple-io direct / ram / mmap: no difference on this NVMe rig. 0.1.45 behaves same as 0.1.42.

Diagnosis

With a long system prompt, decode is dominated by MoE expert misses: the engine pulls experts from RAM/disk over PCIe, SMs starve, the driver sees low utilization and downclocks to P0 — then every kernel runs ~2x slower. The clock drop is an amplifier of the starvation, not the root cause.

Workaround

Before launching the engine (admin shell):

nvidia-smi -lgc 2000,2000

Result: decode 15 -> 25 tok/s (+60%), clocks stay at 2000 MHz during decode, power ~35-80W.
Reset: nvidia-smi -rgc; the lock also resets on reboot.

Suggestion

Worth a note in the Windows setup docs (or an optional launcher flag) for agent-frontend users: if decode is much slower than prefill implies, watch the core clock during decode — locking it may recover most of the gap.

Caveats

  • Single-rig data point.
  • This treats the symptom; the root cause is expert-fetch bandwidth (see #1910 for the disk side of the same problem).
  • Not recommended for laptops / hot chassis.
Originally created by @ahsvel on GitHub (Oct 18, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3066 ## What do you want to do? Report a performance finding + workaround for agent-frontend users, and suggest a docs note. Related to #1910 (same family, disk side). ## Setup - RTX 3060 12GB, Windows 10, 48GB RAM, NVMe - Qwen3.8-Flash-Next IQ3_xxs (27GB MoE + PLE), engine 0.1.42 (0.1.45 also tested) - Frontend: Hermes Agent (~12K-token system prompt, tool-heavy multi-turn) ## Symptom - Web panel decode: ~31 tok/s. Same engine under the agent: 15-16 tok/s. - MSI Afterburner: core clock jumps to ~2000 MHz during prefill ("reading prompt"), but drops to 850-900 MHz (P0 base clock) during decode, ~15W. - `--ple-io direct / ram / mmap`: no difference on this NVMe rig. 0.1.45 behaves same as 0.1.42. ## Diagnosis With a long system prompt, decode is dominated by MoE expert misses: the engine pulls experts from RAM/disk over PCIe, SMs starve, the driver sees low utilization and downclocks to P0 — then every kernel runs ~2x slower. The clock drop is an amplifier of the starvation, not the root cause. ## Workaround Before launching the engine (admin shell): nvidia-smi -lgc 2000,2000 Result: decode 15 -> 25 tok/s (+60%), clocks stay at 2000 MHz during decode, power ~35-80W. Reset: `nvidia-smi -rgc`; the lock also resets on reboot. ## Suggestion Worth a note in the Windows setup docs (or an optional launcher flag) for agent-frontend users: if decode is much slower than prefill implies, watch the core clock during decode — locking it may recover most of the gap. ## Caveats - Single-rig data point. - This treats the symptom; the root cause is expert-fetch bandwidth (see #1910 for the disk side of the same problem). - Not recommended for laptops / hot chassis.
Author
Owner

@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:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271454377 --> @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: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#1228
No description provided.