mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #390] [MERGED] docs: GLM's CPU lane shares the engine's CPUs with the decode and tier threads - give it enough of them #508
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#508
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/mw00/project-maya/pull/390
Author: @somnergy
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @mw00
Base:
main← Head:pr/docs-glm-cpu-lane-cores📝 Commits (1)
c99e8d8docs: GLM's CPU lane shares the engine's CPUs with the decode and tier threads - give it enough of them📊 Changes
1 file changed (+10 additions, -0 deletions)
View changed files
📝
docs/SETTINGS.md(+10 -0)📄 Description
Summary
Docs only: one paragraph in
docs/SETTINGS.md, next to the tuning section. The GLM CPU lane's threads share the engine's CPUs with the thread that issues every decode step and the tiers' service threads, which are busy most of the time while experts sit in RAM. The default lane size leaves a third of the cores free only when the engine may use every CPU of a host without SMT (cores >= hardware_concurrency()infast_cpu_lane_setup); confined to fewer CPUs (taskset, a container's cpuset), the lane takes every core it may use and a decode step waits for a time slice. #359 makes the same point for DeepSeek's lane.Why
Measured under several concurrent Claude Code sessions (agentic coding: long multi-turn conversations, subagents, tool calls) through the Anthropic Messages API with
--parallel 8, Maya-L with ~85% of its experts in VRAM:Measured
Hardware: 2x NVIDIA RTX PRO 5000 Blackwell 72 GB, each on PCIe 5.0 x8; Intel Core Ultra 9 285K (8 P + 16 E cores, no SMT, no AVX-512); 96 GB DDR5; driver 615.71.09, CUDA 13.4. Model: Maya-L (IQ3_S / IQ4_XS experts), ~85% in VRAM, the rest pinned in RAM.
The 8-core row's decode is not an isolated comparison (other settings changed with the CPUs); the 16- and 24-CPU rows ran the same settings and decoded the same per request.
Recommendation
With experts in RAM, give the engine all the CPUs you can - on a hybrid CPU the efficiency cores too, not the performance cores alone (an E-core computes an expert more slowly, ~0.24 ms here, but a lane that waits for a core is slower still). Where it must stay confined, set
MAYA_GLM_CPU_LANE(orMAYA_GLM_CPU_LANE<n>) lower so a few of its cores stay free. With every expert in VRAM the lane has nothing to compute and this does not matter.How it was verified
Docs only; the rule it describes is
fast_cpu_lane_setupinsrc/core/glm_fast_path.cuon main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.