[GH-ISSUE #3897] [Engine] Slow expert loading (~0.15 GiB/s) on Windows with 0.1.45 and 0.1.47 #1666

Closed
opened 2026-11-04 01:53:02 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @chonger1209 on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3897

Area

Engine

Reproduction status

Reproduced locally with actual load/unload tests; this is not an unconfirmed static-analysis finding. Root cause is unknown.

Steps to reproduce

  1. Start a separate lazy Strata server with the model and configuration listed below, without an existing main or vision engine running.
  2. POST /v1/load with {"model":"qwen3.8-flash-next-iq3_s"} and wait for loading to finish. Record elapsed time and the expert-loading throughput in the engine log.
  3. POST /v1/stt/unload with the same model, verify both engines exited, and wait five seconds. This route is supplied by our local service adapter.
  4. Load again with the same request. The slow expert read reproduces without the STT application wake-up workflow.
  5. Repeat with the backed-up 0.1.45 native main and vision engines, keeping the current Python server and configuration.

Expected behavior

Loading should not show the observed large slowdown compared with earlier runs on this machine (1.09 GiB/s in an earlier October 23 run). We are asking for diagnosis, not claiming a guaranteed throughput or a confirmed engine regression.

Actual behavior

The expert-loading stage reports 0.14–0.15 GiB/s for 46.84 GiB. Full loading takes 327–381 seconds. Loading eventually succeeds; there is no fatal loading error. Relevant warnings and raw log excerpts are included below.

Problem

Model startup became noticeably slower on October 23. Expert loading now reports 0.14–0.15 GiB/s, with full loading taking 5–6 minutes in isolated tests.

An earlier October 23 run reported 1.09 GiB/s, while a later reload reported 0.14 GiB/s, using engine 0.1.47 with the same logged launch arguments. The slowdown occurred after unload/reload, but causality has not been established.

Environment

  • Windows 10 22H2, build 19045.6466
  • AMD Ryzen 7 9800X3D
  • 96 GB RAM, configured at 6000 MT/s
  • NVIDIA RTX 3090 24 GB, driver 617.42
  • TiPro9000 2 TB NVMe SSD, PCIe 5.0 ×4
  • Model: Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S
  • Current engine: 0.1.47, commit 76f90e5843
  • Comparison engine: 0.1.45

Configuration

--expert-cache auto
--prefill auto
--spec 4
--spec-min-p 0.5
--max-context 262144
--kv int8
--kv-resident 32768
--conversation-cache-mib 12288
--conversation-cache-slots 6
--vision
--vram-reserve-mib 700
--batch 3

Native expert packs, PLE GGUF, MTP and the vision projector are enabled; model files are on the NVMe SSD.

Controlled tests

Tests on October 24, 2026 (UTC+8) used a separate localhost server, the same model files and parameters, and no inference requests.

Engine Test Full load Expert throughput Unload
0.1.47 First load* 381.25 s 0.15 GiB/s 1.78 s
0.1.47 Reload 326.94 s 0.15 GiB/s 1.63 s
0.1.45 Comparison 372.05 s 0.14 GiB/s 1.71 s

During the first test an external MCP prewarm mechanism unexpectedly launched the normal service and its vision process. That service was stopped and automatic prewarming disabled before subsequent tests. The second and third tests still reproduced the slowdown.

The 0.1.45 comparison replaced only the native main and vision engines, retaining the current Python server. This was not a full application rollback.

After each unload, both engine processes exited, available RAM returned to approximately 76 GiB, and free GPU memory returned to approximately 22 GiB.

Log excerpts

0.1.47, second load:

strata generate: expert arena read unbuffered (0 of 16 probe reads from the file cache; 14.4 GiB available, 51.1 GiB of files)
strata generate: expert arena: large pages are resident without a lock; cudaHostRegister of the whole arena FAILED (out of memory); 33 slices pinned (31 GiB); large pages (2097152 B)
strata generate: loaded 46.84 GiB at 0.15 GiB/s

0.1.45:

strata generate: expert arena read unbuffered (0 of 16 probe reads from the file cache; 14.9 GiB available, 51.1 GiB of files)
strata generate: expert arena: large pages are resident without a lock; cudaHostRegister of the whole arena FAILED (out of memory); 34 slices pinned (32 GiB); large pages (2097152 B)
strata generate: loaded 46.84 GiB at 0.14 GiB/s

Both versions also warned that PLE direct I/O measured approximately 20 MB/s. This may not have the same cause as slow expert loading.

Observations and limitations

  • Direct isolated loading bypassing the STT wake-up workflow still reproduced the slowdown.
  • Approximately 12 GiB of GPU memory remained free during much of the slow loading phase.
  • Main-engine cumulative CPU time was approximately 11–12 seconds per full load.
  • NVMe SMART reported no critical warnings, media errors or error-log entries.
  • No matching disk, NVMe, WHEA or display-driver warnings/errors were found in the system-log window checked during testing.
  • RAM/VRAM stress tests, reduced-context comparisons, and controlled buffered-versus-unbuffered file-read comparisons have not been performed.
  • This does not establish a version regression or rule out storage, configuration or Windows environment issues.

Questions

  1. Which diagnostics best distinguish storage/Windows I/O issues from Strata's expert-loading behavior?
  2. Is there a supported way to compare buffered and unbuffered expert loading?
  3. Could memory pressure or the pinned-memory fallback contribute even when large-page allocation succeeds?
  4. Which additional logs or traces would help?
Originally created by @chonger1209 on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3897 ## Area Engine ## Reproduction status Reproduced locally with actual load/unload tests; this is not an unconfirmed static-analysis finding. Root cause is unknown. ## Steps to reproduce 1. Start a separate lazy Strata server with the model and configuration listed below, without an existing main or vision engine running. 2. POST `/v1/load` with `{"model":"qwen3.8-flash-next-iq3_s"}` and wait for loading to finish. Record elapsed time and the expert-loading throughput in the engine log. 3. POST `/v1/stt/unload` with the same model, verify both engines exited, and wait five seconds. This route is supplied by our local service adapter. 4. Load again with the same request. The slow expert read reproduces without the STT application wake-up workflow. 5. Repeat with the backed-up 0.1.45 native main and vision engines, keeping the current Python server and configuration. ## Expected behavior Loading should not show the observed large slowdown compared with earlier runs on this machine (1.09 GiB/s in an earlier October 23 run). We are asking for diagnosis, not claiming a guaranteed throughput or a confirmed engine regression. ## Actual behavior The expert-loading stage reports 0.14–0.15 GiB/s for 46.84 GiB. Full loading takes 327–381 seconds. Loading eventually succeeds; there is no fatal loading error. Relevant warnings and raw log excerpts are included below. ## Problem Model startup became noticeably slower on October 23. Expert loading now reports **0.14–0.15 GiB/s**, with full loading taking **5–6 minutes** in isolated tests. An earlier October 23 run reported **1.09 GiB/s**, while a later reload reported **0.14 GiB/s**, using engine 0.1.47 with the same logged launch arguments. The slowdown occurred after unload/reload, but causality has not been established. ## Environment - Windows 10 22H2, build 19045.6466 - AMD Ryzen 7 9800X3D - 96 GB RAM, configured at 6000 MT/s - NVIDIA RTX 3090 24 GB, driver 617.42 - TiPro9000 2 TB NVMe SSD, PCIe 5.0 ×4 - Model: Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S - Current engine: 0.1.47, commit 76f90e58436d - Comparison engine: 0.1.45 ## Configuration ```text --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --max-context 262144 --kv int8 --kv-resident 32768 --conversation-cache-mib 12288 --conversation-cache-slots 6 --vision --vram-reserve-mib 700 --batch 3 ``` Native expert packs, PLE GGUF, MTP and the vision projector are enabled; model files are on the NVMe SSD. ## Controlled tests Tests on October 24, 2026 (UTC+8) used a separate localhost server, the same model files and parameters, and **no inference requests**. | Engine | Test | Full load | Expert throughput | Unload | |---|---|---:|---:|---:| | 0.1.47 | First load* | 381.25 s | 0.15 GiB/s | 1.78 s | | 0.1.47 | Reload | 326.94 s | 0.15 GiB/s | 1.63 s | | 0.1.45 | Comparison | 372.05 s | 0.14 GiB/s | 1.71 s | *During the first test an external MCP prewarm mechanism unexpectedly launched the normal service and its vision process. That service was stopped and automatic prewarming disabled before subsequent tests. The second and third tests still reproduced the slowdown.* The 0.1.45 comparison replaced only the native main and vision engines, retaining the current Python server. **This was not a full application rollback.** After each unload, both engine processes exited, available RAM returned to approximately 76 GiB, and free GPU memory returned to approximately 22 GiB. ## Log excerpts 0.1.47, second load: ```text strata generate: expert arena read unbuffered (0 of 16 probe reads from the file cache; 14.4 GiB available, 51.1 GiB of files) strata generate: expert arena: large pages are resident without a lock; cudaHostRegister of the whole arena FAILED (out of memory); 33 slices pinned (31 GiB); large pages (2097152 B) strata generate: loaded 46.84 GiB at 0.15 GiB/s ``` 0.1.45: ```text strata generate: expert arena read unbuffered (0 of 16 probe reads from the file cache; 14.9 GiB available, 51.1 GiB of files) strata generate: expert arena: large pages are resident without a lock; cudaHostRegister of the whole arena FAILED (out of memory); 34 slices pinned (32 GiB); large pages (2097152 B) strata generate: loaded 46.84 GiB at 0.14 GiB/s ``` Both versions also warned that PLE direct I/O measured approximately **20 MB/s**. This may not have the same cause as slow expert loading. ## Observations and limitations - Direct isolated loading bypassing the STT wake-up workflow still reproduced the slowdown. - Approximately 12 GiB of GPU memory remained free during much of the slow loading phase. - Main-engine cumulative CPU time was approximately 11–12 seconds per full load. - NVMe SMART reported no critical warnings, media errors or error-log entries. - No matching disk, NVMe, WHEA or display-driver warnings/errors were found in the system-log window checked during testing. - RAM/VRAM stress tests, reduced-context comparisons, and controlled buffered-versus-unbuffered file-read comparisons have **not** been performed. - This does **not** establish a version regression or rule out storage, configuration or Windows environment issues. ## Questions 1. Which diagnostics best distinguish storage/Windows I/O issues from Strata's expert-loading behavior? 2. Is there a supported way to compare buffered and unbuffered expert loading? 3. Could memory pressure or the pinned-memory fallback contribute even when large-page allocation succeeds? 4. Which additional logs or traces would help?
Author
Owner

@github-actions[bot] commented on GitHub (Oct 24, 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:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

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

<!-- gh-comment-id:6378132244 --> @github-actions[bot] commented on GitHub (Oct 24, 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: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". 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](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 24, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6378250558 --> @github-actions[bot] commented on GitHub (Oct 24, 2026): Thanks, this follows the format now.
Author
Owner

@chonger1209 commented on GitHub (Oct 24, 2026):

Follow-up: partial improvement after a reboot and a change in the Windows launch environment; the cause is still unknown.

On October 24 (UTC+8), Windows was rebooted at approximately 14:06. With the same 0.1.47 engine, model and logged inference arguments, the subsequent load reported:

strata generate: PCIe probe: 26.9 GB/s host->device
strata generate: expert arena: large pages are resident without a lock; cudaHostRegister of the whole arena FAILED (out of memory); 33 slices pinned (31 GiB); large pages (2097152 B)
strata generate: loaded 46.84 GiB at 0.36 GiB/s

The service reported expert loading complete at 152 seconds into its startup progress. The complete load request ran from 14:12:53 to readiness at 14:16:06 (about 193 seconds). The reported expert throughput improved from the previous 0.13–0.15 GiB/s, but remains below the earlier 1.09 GiB/s observation.

Two launch/memory details may be useful:

  • Different process ancestry: previously the service was started beneath Codex -> MCP Python -> startup helper. It is now launched by an independent Windows scheduled task: Task Scheduler service -> persistent pythonw host -> Python service -> native engine. We verified that Codex is no longer an ancestor. This was a local lifecycle change, not an engine update. We have not compared the old and new Job limits, tokens, or effective I/O priorities.
  • Large pages succeeded in this run. Some other historical runs fell back to 4 KiB pages. However, the slow controlled 0.14–0.15 GiB/s tests in the original report also successfully used large pages, so large-page success alone does not explain the improvement. Whole-arena CUDA registration still failed and fell back to the 31 GiB pinned slices shown above.

We also discovered that the new scheduled task had the default Priority 7, and the running pythonw host and Python service processes were verified as Below Normal. We could not query the native engine's priority due to AccessDenied. The task remains configured to run with ordinary user privileges.

After this load, we changed the task configuration to Priority 4 (Normal). The running service was not restarted, and its host/service processes still had Below Normal priority when checked. Therefore, the improvement to 0.36 GiB/s cannot be attributed to that priority configuration change. Its effect has not yet been tested.

These are observational differences, not a controlled A/B result: the reboot and process-launch changes are confounded. We are leaving the current service running rather than interrupting active work for more tests.

Would comparing Windows Job/resource limits, process/token context, or CPU/I/O priority be a useful next diagnostic? Are there specific read-only measurements you would recommend capturing during the next naturally occurring load?

The loading issue is not resolved.

<!-- gh-comment-id:6380962594 --> @chonger1209 commented on GitHub (Oct 24, 2026): Follow-up: partial improvement after a reboot and a change in the Windows launch environment; the cause is still unknown. On October 24 (UTC+8), Windows was rebooted at approximately 14:06. With the same 0.1.47 engine, model and logged inference arguments, the subsequent load reported: ```text strata generate: PCIe probe: 26.9 GB/s host->device strata generate: expert arena: large pages are resident without a lock; cudaHostRegister of the whole arena FAILED (out of memory); 33 slices pinned (31 GiB); large pages (2097152 B) strata generate: loaded 46.84 GiB at 0.36 GiB/s ``` The service reported expert loading complete at 152 seconds into its startup progress. The complete load request ran from 14:12:53 to readiness at 14:16:06 (about 193 seconds). The reported expert throughput improved from the previous 0.13–0.15 GiB/s, but remains below the earlier 1.09 GiB/s observation. Two launch/memory details may be useful: - **Different process ancestry:** previously the service was started beneath Codex -> MCP Python -> startup helper. It is now launched by an independent Windows scheduled task: Task Scheduler service -> persistent pythonw host -> Python service -> native engine. We verified that Codex is no longer an ancestor. This was a local lifecycle change, not an engine update. We have not compared the old and new Job limits, tokens, or effective I/O priorities. - **Large pages succeeded in this run.** Some other historical runs fell back to 4 KiB pages. However, the slow controlled 0.14–0.15 GiB/s tests in the original report also successfully used large pages, so large-page success alone does not explain the improvement. Whole-arena CUDA registration still failed and fell back to the 31 GiB pinned slices shown above. We also discovered that the new scheduled task had the default **Priority 7**, and the running pythonw host and Python service processes were verified as **Below Normal**. We could not query the native engine's priority due to AccessDenied. The task remains configured to run with ordinary user privileges. After this load, we changed the task configuration to **Priority 4 (Normal)**. **The running service was not restarted**, and its host/service processes still had Below Normal priority when checked. Therefore, the improvement to 0.36 GiB/s cannot be attributed to that priority configuration change. Its effect has not yet been tested. These are observational differences, not a controlled A/B result: the reboot and process-launch changes are confounded. We are leaving the current service running rather than interrupting active work for more tests. Would comparing Windows Job/resource limits, process/token context, or CPU/I/O priority be a useful next diagnostic? Are there specific read-only measurements you would recommend capturing during the next naturally occurring load? The loading issue is not resolved.
Author
Owner

@chonger1209 commented on GitHub (Oct 29, 2026):

Follow-up: recent expert-arena loading is much faster, but the cause is still unconfirmed.

Two naturally occurring starts after Windows reboots now report the following (times are UTC+8):

Engine start Engine Expert-arena throughput
2026-10-28 15:49:37 0.1.52 46.84 GiB at 2.12 GiB/s
2026-10-29 07:32:23 0.1.52 46.84 GiB at 3.24 GiB/s

Both starts used 2 MiB large pages. The October 29 log says:

strata generate: expert arena: large pages are resident without a lock; cudaHostRegister limited to 8 GiB by the engine (multi-GPU under WDDM, or remote experts); 8 slices pinned (7 GiB); large pages (2097152 B)
strata generate: loaded 46.84 GiB at 3.24 GiB/s
strata generate: session is up (engine 0.1.52)

These figures describe the expert-arena stage, not total application startup time.

Relevant changes since the original report:

  • Source/API server updated to Strata 0.2.7; official CUDA 13 Qwen engine 0.1.52, build commit a42cc3d7df70.
  • The machine now has RTX 3090 24 GB + RTX 5060 Ti 16 GB, instead of the original single 3090. Layer order is 5060 Ti first (12 layers), then 3090 (36 layers plus head/MTP).
  • Two batch slots, one group; 256K context, INT8 KV and 32768 KV-resident cells. Conversation cache: 8 GiB / 6 slots. VRAM reserves: 2048/1536 MiB; stage-weight trimming enabled.
  • Expert-arena CUDA registration is now explicitly capped at 8 GiB, as shown above, rather than the earlier whole-arena registration failure and 31-32 GiB fallback.
  • The same IQ3_S model and NVMe storage are retained. The independent Windows scheduled-task host remains in use at Normal priority; RAM remains 96 GB.

This is observational evidence, not an isolated engine-version or large-page A/B. Large pages also succeeded in the original slow runs, and the earlier 0.36 GiB/s follow-up, so their success alone does not explain the improvement. We have not repeated the original isolated load/unload comparison under the new setup, and have not established a specific fix for the original slowdown.

I am leaving this issue open for now: recent starts are much better, but the root cause and longer-term recurrence remain unknown.

<!-- gh-comment-id:6486726843 --> @chonger1209 commented on GitHub (Oct 29, 2026): Follow-up: recent expert-arena loading is much faster, but the cause is still unconfirmed. Two naturally occurring starts after Windows reboots now report the following (times are UTC+8): | Engine start | Engine | Expert-arena throughput | | --- | --- | --- | | 2026-10-28 15:49:37 | 0.1.52 | 46.84 GiB at 2.12 GiB/s | | 2026-10-29 07:32:23 | 0.1.52 | 46.84 GiB at 3.24 GiB/s | Both starts used 2 MiB large pages. The October 29 log says: ```text strata generate: expert arena: large pages are resident without a lock; cudaHostRegister limited to 8 GiB by the engine (multi-GPU under WDDM, or remote experts); 8 slices pinned (7 GiB); large pages (2097152 B) strata generate: loaded 46.84 GiB at 3.24 GiB/s strata generate: session is up (engine 0.1.52) ``` These figures describe the expert-arena stage, not total application startup time. Relevant changes since the original report: - Source/API server updated to Strata 0.2.7; official CUDA 13 Qwen engine 0.1.52, build commit `a42cc3d7df70`. - The machine now has RTX 3090 24 GB + RTX 5060 Ti 16 GB, instead of the original single 3090. Layer order is 5060 Ti first (12 layers), then 3090 (36 layers plus head/MTP). - Two batch slots, one group; 256K context, INT8 KV and 32768 KV-resident cells. Conversation cache: 8 GiB / 6 slots. VRAM reserves: 2048/1536 MiB; stage-weight trimming enabled. - Expert-arena CUDA registration is now explicitly capped at 8 GiB, as shown above, rather than the earlier whole-arena registration failure and 31-32 GiB fallback. - The same IQ3_S model and NVMe storage are retained. The independent Windows scheduled-task host remains in use at Normal priority; RAM remains 96 GB. This is observational evidence, not an isolated engine-version or large-page A/B. Large pages also succeeded in the original slow runs, and the earlier 0.36 GiB/s follow-up, so their success alone does not explain the improvement. We have not repeated the original isolated load/unload comparison under the new setup, and have not established a specific fix for the original slowdown. I am leaving this issue open for now: recent starts are much better, but the root cause and longer-term recurrence remain unknown.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. 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:6659789712 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. 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#1666
No description provided.