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#9
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 @Vistawizard on GitHub (Sep 26, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/13
Summary
On Linux, the engine hangs right after loading: the CPU expert pool is created with thousands of workers instead of one per core. This is the root cause of #11 (closed with the
--pool-workers 6workaround), and it affects every Linux machine where the process affinity mask doesn't cover all 1024CPU_SETSIZEslots, i.e. basically all of them.Symptoms
Load average climbs past 10 000, all cores at 100%, and the server never becomes ready. #11 shows the same thing on Debian 14.
Root cause
A dangling
elseinsrc/kernels/cpu/pool.cpp, Linux branch ofphysical_cores():Without braces, the
elsebelongs to the innerif (CPU_ISSET(i, &set)). So for every CPU id that is not in the affinity mask, allhardware_concurrency()ids are appended again. On my 16-CPU Proxmox LXC: (1024 − 16) × 16 + 16 − 1 (skip_first) = 16 143, exactly the number in the log. Windows uses a different branch, which is why it doesn't show up there.Fix
Add braces so the
elsebelongs to thesched_getaffinitycheck (PR incoming):Verified
With the fix, on Debian 13 (Proxmox LXC, 16 CPUs), RTX 3060 12 GB, Ryzen 9 5950X (AVX2), DDR4-3200, IQ2_XS, 32K context:
15 expert-pool workers + the host thread; server ready in 48 s--n-cpu-moe 40): ~10.9 tok/s decode, 227 tok/s prefillThanks for Strata, it's a great piece of work.
@Niko1221 commented on GitHub (Sep 26, 2026):
Fixed by #14, thanks for tracking it down! Pull main and rerun ./setup.sh, and you won't need --pool-workers anymore.