[GH-ISSUE #3887] [GUI] a stale --pool-workers is inherited into every new instance record #1657

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

Originally created by @gitddpsm on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3887

Draft: new issue (form: bug_report.yml)

Submit at: https://github.com/Niko1221/Strata/issues/new?template=bug_report.yml

Title

[GUI] a stale --pool-workers is inherited into every new instance record, and with 9 workers on 6 cores the engine did not reach "session is up"

Area

[GUI] (the desktop app)

Desktop app, Terminal or source?

Desktop app (Windows, Linux or Mac)

What happened

My model would not load. The app was writing --pool-workers 9 into the engine command line on a
6-physical-core CPU (i7-8700K: 6 cores / 12 threads). The engine warns about it on every start, and on
one start it never became ready — the log ends right after the profile fill asks for 0 pairs ahead
and session is up never arrives, so the load hit its deadline.

strata cpu pool: warning: 9 CPU expert workers are configured, but this CPU has 6 physical cores.
  Two workers on one core share its memory bandwidth and slow each other down.
  Recommended: --pool-workers 5 (or leave it out: the engine picks that by itself). It still runs as configured.

The number is not computed by anything in the current app. It is inherited: an instance record created
on 2026-10-21 carries --pool-workers 9, and every record created afterwards copies args forward.

  • native-instances/a5d7bf61-….json (created 2026-10-21, context 204800): … --mmap-experts --pool-workers 9 --vram-reserve-mib 2457
  • native-instances/496fbdda-….json (created 2026-10-23, context 65536): same --pool-workers 9
  • the app's own rule would give 4: host/server/native-resources.mjs:63 → Math.max(1, Math.floor(cores * 0.8))
  • setup.py's recommend_pool_workers() is a no-op on a non-hybrid CPU, so it did not write it either

Smallest steps or command that reproduce it

  1. On a 6-core CPU, install once with a config that has --pool-workers 9 (mine came from a 2026-10-21
    calibration run), or add the flag by hand to a saved instance record.

  2. Load the model in the desktop app and read the engine start line in the log
    (%LOCALAPPDATA%\Strata\install\strata-<model>.log): the command line contains --pool-workers 9,
    and the engine prints the warning above.

  3. Remove the flag (and the pending entry in %LOCALAPPDATA%\Strata\tuning\recheck.json), load again
    — same record, same model, same GPU:

    CPU pool: 5 workers by default (6 physical cores, 12 logical processors; …)
    expert cache auto: 4.82 GiB free, 2048 MiB reserved (+218 MiB for the draft head) -> 2662 slots
    pre-filled 2662 of 2662 slots from the profile in 3.5 s (791 MB/s); slot 0 verified
    session is up (engine 0.1.47)
    

    vs. the same record with the flag, on the failed start:

    9 pool workers on logical processors 2,4,6,8,10, the host thread on 0
    expert cache auto: 4.82 GiB free, 2457 MiB reserved (+218 MiB for the draft head) -> 2253 slots
    the profile fill asks for 0 pairs ahead (STRATA_FILL_AHEAD)
    … (log ends; no "pre-filled", no "session is up")
    

What I could reproduce deterministically: the inherited flag and the warning (every start), and that
removing it gives 5 workers / 2662 slots / session is up. What I saw once and could not reproduce
on demand: the start that stops at the profile fill asks for 0 pairs ahead.

Reproduction status

Reproduced locally (the inheritance and its effect on the start line; the non-ready start was observed
once on 2026-10-23 22:25:05 and not repeated).

Strata version

Strata 0.2.1 · control 0.1.46 · engine 0.1.47-windows-x86_64-cuda-cuda13 · harness 0.2.1-alpha.3

Graphics card, memory and system

RTX 3080 Ti 12 GB · 24 GB RAM · Windows 10 19045 (i7-8700K, 6 cores / 12 threads)

Model, size and settings

Qwen3.8-Flash-Next-Gyro-S TQ1_0 · 58 GB gguf + 25.8 GB expert pack · 65536 context · pictures on · --mmap-experts · --expert-cache auto · --vram-reserve-mib 2048

Logs

Start with the flag (2026-10-23 22:25:05), the one that never became ready:

[strata] 2026-10-23 22:25:05 engine started: …\strata.exe --serve --pack … --native …
  --max-context 65536 --kv int8 --mmap-experts --vision --pool-workers 9 --vram-reserve-mib 2457
strata generate: memory guard: limit 23.9 GiB (source: meminfo), current 7.8 GiB, … available 16.2 GiB, floor 2560 MiB
strata generate: experts via mmap (--mmap-experts; the A/B arm of R2.1)
strata cpu pool: warning: 9 CPU expert workers are configured, but this CPU has 6 physical cores. …
strata generate: CPU pool tasks/phase: 30 (automatic), participating threads: 10
strata generate: 9 pool workers on logical processors 2,4,6,8,10, the host thread on 0 (draining too)
strata generate: expert cache auto: 4.82 GiB free, 2457 MiB reserved (+218 MiB for the draft head) -> 2253 slots
strata generate: expert cache 2253 slots, 2.20 GiB of VRAM; policy is
strata generate: the profile fill asks for 0 pairs ahead (STRATA_FILL_AHEAD)

Without the flag (2026-10-23 23:39:27), same model and settings:

[strata] 2026-10-23 23:39:27 engine started: …\strata.exe --serve --pack … --native …
  --max-context 65536 --kv int8 --mmap-experts --vision --vram-reserve-mib 2048
strata generate: CPU pool tasks/phase: 18 (automatic), participating threads: 6
strata generate: CPU pool: 5 workers by default (6 physical cores, 12 logical processors; bounded by every physical core but the host's)
strata generate: 5 pool workers on logical processors 2,4,6,8,10, the host thread on 0 (draining too)
strata generate: expert cache auto: 4.82 GiB free, 2048 MiB reserved (+218 MiB for the draft head) -> 2662 slots
strata generate: pre-filled 2662 of 2662 slots from the profile in 3.5 s (791 MB/s); slot 0 verified
strata generate: 5 expert-pool workers + the host thread
strata generate: session is up (engine 0.1.47)

What I would ask for

  1. Do not inherit --pool-workers into a new instance record unless the person set it explicitly, or
    re-validate it against the current CPU when the record is reused.
  2. Surface the engine's own "Recommended: --pool-workers 5" warning in the UI — it sat in the log for
    days and is the only breadcrumb that leads to the fix.
  3. Reconcile %LOCALAPPDATA%\Strata\tuning\recheck.json at startup: it still had a pending
    engine_changed entry for 0.1.46 -> 0.1.47 from 2026-10-21, and a re-check can rewrite the arguments.
  • #3781 — [Engine] 0.1.47 default CPU expert-pool sizing collapses to 1 worker on an unusual topology
    (defaults, not inheritance; same --pool-workers symptom class)
  • #3708 — [Engine] NUMA pool split and the socket bound behind plan_pool_workers()
  • #3488 — [GUI] the "lost host child" dead-end that followed this hung start (comment posted there,
    not a re-report)

Note on this report

The hung start fed a second failure: the interrupted load left an orphaned control child and every later
load was refused with lost host child is still present; retry after it exits (see my comment on #3488).
I mention it only as the consequence — the two reports are otherwise separate.

Statements above are from this machine's logs; the two candidate causes for the non-ready start
(the stale worker count and the 2457 MiB reserve) were not isolated against each other, so I am not
claiming which one stopped it.

Originally created by @gitddpsm on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3887 # Draft: new issue (form: bug_report.yml) Submit at: <https://github.com/Niko1221/Strata/issues/new?template=bug_report.yml> **Title** ``` [GUI] a stale --pool-workers is inherited into every new instance record, and with 9 workers on 6 cores the engine did not reach "session is up" ``` --- ### Area `[GUI] (the desktop app)` ### Desktop app, Terminal or source? `Desktop app (Windows, Linux or Mac)` ### What happened My model would not load. The app was writing `--pool-workers 9` into the engine command line on a 6-physical-core CPU (i7-8700K: 6 cores / 12 threads). The engine warns about it on every start, and on one start it never became ready — the log ends right after `the profile fill asks for 0 pairs ahead` and `session is up` never arrives, so the load hit its deadline. ``` strata cpu pool: warning: 9 CPU expert workers are configured, but this CPU has 6 physical cores. Two workers on one core share its memory bandwidth and slow each other down. Recommended: --pool-workers 5 (or leave it out: the engine picks that by itself). It still runs as configured. ``` The number is not computed by anything in the current app. It is **inherited**: an instance record created on 2026-10-21 carries `--pool-workers 9`, and every record created afterwards copies `args` forward. * `native-instances/a5d7bf61-….json` (created 2026-10-21, context 204800): `… --mmap-experts --pool-workers 9 --vram-reserve-mib 2457` * `native-instances/496fbdda-….json` (created 2026-10-23, context 65536): same `--pool-workers 9` * the app's own rule would give 4: `host/server/native-resources.mjs:63` → `Math.max(1, Math.floor(cores * 0.8))` * `setup.py`'s `recommend_pool_workers()` is a no-op on a non-hybrid CPU, so it did not write it either ### Smallest steps or command that reproduce it 1. On a 6-core CPU, install once with a config that has `--pool-workers 9` (mine came from a 2026-10-21 calibration run), or add the flag by hand to a saved instance record. 2. Load the model in the desktop app and read the engine start line in the log (`%LOCALAPPDATA%\Strata\install\strata-<model>.log`): the command line contains `--pool-workers 9`, and the engine prints the warning above. 3. Remove the flag (and the pending entry in `%LOCALAPPDATA%\Strata\tuning\recheck.json`), load again — same record, same model, same GPU: ``` CPU pool: 5 workers by default (6 physical cores, 12 logical processors; …) expert cache auto: 4.82 GiB free, 2048 MiB reserved (+218 MiB for the draft head) -> 2662 slots pre-filled 2662 of 2662 slots from the profile in 3.5 s (791 MB/s); slot 0 verified session is up (engine 0.1.47) ``` vs. the same record with the flag, on the failed start: ``` 9 pool workers on logical processors 2,4,6,8,10, the host thread on 0 expert cache auto: 4.82 GiB free, 2457 MiB reserved (+218 MiB for the draft head) -> 2253 slots the profile fill asks for 0 pairs ahead (STRATA_FILL_AHEAD) … (log ends; no "pre-filled", no "session is up") ``` What I could reproduce deterministically: the inherited flag and the warning (every start), and that removing it gives 5 workers / 2662 slots / `session is up`. What I saw **once** and could not reproduce on demand: the start that stops at `the profile fill asks for 0 pairs ahead`. ### Reproduction status `Reproduced locally` (the inheritance and its effect on the start line; the non-ready start was observed once on 2026-10-23 22:25:05 and not repeated). ### Strata version `Strata 0.2.1 · control 0.1.46 · engine 0.1.47-windows-x86_64-cuda-cuda13 · harness 0.2.1-alpha.3` ### Graphics card, memory and system `RTX 3080 Ti 12 GB · 24 GB RAM · Windows 10 19045 (i7-8700K, 6 cores / 12 threads)` ### Model, size and settings `Qwen3.8-Flash-Next-Gyro-S TQ1_0 · 58 GB gguf + 25.8 GB expert pack · 65536 context · pictures on · --mmap-experts · --expert-cache auto · --vram-reserve-mib 2048` ### Logs Start with the flag (2026-10-23 22:25:05), the one that never became ready: ``` [strata] 2026-10-23 22:25:05 engine started: …\strata.exe --serve --pack … --native … --max-context 65536 --kv int8 --mmap-experts --vision --pool-workers 9 --vram-reserve-mib 2457 strata generate: memory guard: limit 23.9 GiB (source: meminfo), current 7.8 GiB, … available 16.2 GiB, floor 2560 MiB strata generate: experts via mmap (--mmap-experts; the A/B arm of R2.1) strata cpu pool: warning: 9 CPU expert workers are configured, but this CPU has 6 physical cores. … strata generate: CPU pool tasks/phase: 30 (automatic), participating threads: 10 strata generate: 9 pool workers on logical processors 2,4,6,8,10, the host thread on 0 (draining too) strata generate: expert cache auto: 4.82 GiB free, 2457 MiB reserved (+218 MiB for the draft head) -> 2253 slots strata generate: expert cache 2253 slots, 2.20 GiB of VRAM; policy is strata generate: the profile fill asks for 0 pairs ahead (STRATA_FILL_AHEAD) ``` Without the flag (2026-10-23 23:39:27), same model and settings: ``` [strata] 2026-10-23 23:39:27 engine started: …\strata.exe --serve --pack … --native … --max-context 65536 --kv int8 --mmap-experts --vision --vram-reserve-mib 2048 strata generate: CPU pool tasks/phase: 18 (automatic), participating threads: 6 strata generate: CPU pool: 5 workers by default (6 physical cores, 12 logical processors; bounded by every physical core but the host's) strata generate: 5 pool workers on logical processors 2,4,6,8,10, the host thread on 0 (draining too) strata generate: expert cache auto: 4.82 GiB free, 2048 MiB reserved (+218 MiB for the draft head) -> 2662 slots strata generate: pre-filled 2662 of 2662 slots from the profile in 3.5 s (791 MB/s); slot 0 verified strata generate: 5 expert-pool workers + the host thread strata generate: session is up (engine 0.1.47) ``` ## What I would ask for 1. Do not inherit `--pool-workers` into a new instance record unless the person set it explicitly, or re-validate it against the current CPU when the record is reused. 2. Surface the engine's own "Recommended: --pool-workers 5" warning in the UI — it sat in the log for days and is the only breadcrumb that leads to the fix. 3. Reconcile `%LOCALAPPDATA%\Strata\tuning\recheck.json` at startup: it still had a `pending` `engine_changed` entry for `0.1.46 -> 0.1.47` from 2026-10-21, and a re-check can rewrite the arguments. ## Possibly related * #3781 — `[Engine]` 0.1.47 default CPU expert-pool sizing collapses to 1 worker on an unusual topology (defaults, not inheritance; same `--pool-workers` symptom class) * #3708 — `[Engine]` NUMA pool split and the socket bound behind `plan_pool_workers()` * #3488 — `[GUI]` the "lost host child" dead-end that followed this hung start (comment posted there, not a re-report) ## Note on this report The hung start fed a second failure: the interrupted load left an orphaned control child and every later load was refused with `lost host child is still present; retry after it exits` (see my comment on #3488). I mention it only as the consequence — the two reports are otherwise separate. Statements above are from this machine's logs; the two candidate causes for the non-ready start (the stale worker count and the 2457 MiB reserve) were **not** isolated against each other, so I am not claiming which one stopped it.
Author
Owner

@Niko1221 commented on GitHub (Oct 26, 2026):

Fixed in 0.2.3: the app counts physical cores (80 percent, rounded up) and lowers a saved larger worker count when the model is loaded under the Work preference. 0.2.1 had written 9 from 12 logical threads. Please update; if the stale value is still there after loading once, tell us.

<!-- gh-comment-id:6423147993 --> @Niko1221 commented on GitHub (Oct 26, 2026): Fixed in 0.2.3: the app counts physical cores (80 percent, rounded up) and lowers a saved larger worker count when the model is loaded under the Work preference. 0.2.1 had written 9 from 12 logical threads. Please update; if the stale value is still there after loading once, tell us.
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#1657
No description provided.