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#2414
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/14
Author: @Vistawizard
Created: 9/26/2026
Status: ✅ Merged
Merged: 9/26/2026
Merged by: @Niko1221
Base:
main← Head:fix/linux-cpu-pool-affinity📝 Commits (1)
f333c71CPU pool: fix dangling else in the Linux physical_cores() branch📊 Changes
1 file changed (+3 additions, -2 deletions)
View changed files
📝
src/kernels/cpu/pool.cpp(+3 -2)📄 Description
Fixes #13. Root cause of #11.
In
physical_cores()(Linux branch), theelsehad no braces, so it bound to the innerif (CPU_ISSET(i, &set))instead of thesched_getaffinitycheck. Every CPU id outside the affinity mask then appended allhardware_concurrency()ids again: on a 16-CPU machine,(1024 − 16) × 16 + 15= 16 143 pool workers, load average > 10 000, and the server never becomes ready.This PR braces both branches, so the fallback only runs when
sched_getaffinityfails. Behaviour on Windows is unchanged.Tested on Debian 13 (Proxmox LXC, 16 CPUs), RTX 3060 12 GB, Ryzen 9 5950X, IQ2_XS, 32K context:
16143 expert-pool workers, hang15 expert-pool workers + the host thread, ready in 48 s, ~40.5 tok/s decode, 421 tok/s prefill (16.5K prompt)With this, the
--pool-workersworkaround from #11 is no longer needed.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q1SEDU9H9DCuipw7SB1haY
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.