OCPBUGS-116486: PPC: split reserved CPUs across NUMA nodes by default #1676
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.52) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 427 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.363
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #1676"
general
weight: 0.35
MarSik
Reserved CPU allocation across NUMA nodes
Summary
This PR improves how the Performance Profile Creator (
PPC) assigns reserved CPUs on multi-NUMA-node hosts. It makes splitting reserved CPUs across NUMA nodes the default, and changes the split to hand out whole physical cores round-robin so valid requests no longer fail on an odd per-node count.It contains two commits:
1.
PPC: reserve whole cores round-robin across NUMA nodes when hyperthreading is enabled2.
PPC: split reserved CPUs across NUMA nodes by defaultProblem
reservedCPUCountevenly and required each NUMA node to hold the same number. When that per-node number was odd it aborted:For example,
--reserved-cpu-count=102on a 2-NUMA-node host tried to put 51 CPUs on each node and failed, even though 102 whole cores are perfectly allocatable.--topology-manager-policy=single-numa-nodewith--split-reserved-cpus-across-numa=truewas rejected as an error, even though splitting across NUMA nodes is the desirable behavior whenever the hardware exposes more than one NUMA node.Changes
Whole-core round-robin allocation
Split across NUMA by default
--split-reserved-cpus-across-numatotrue.--topology-manager-policy.Example
--reserved-cpu-count=102on a 2-NUMA-node, 104-CPU host now splits52/50instead of failing:PPC: 2 isolated CPUs allocated: 51,103
``
51The leftover whole core (
,103`) is left isolated.<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Reserved CPUs are now split across NUMA nodes by default, including when using the single-NUMA-node topology policy.
With hyperthreading enabled, CPU allocation distributes whole physical cores round-robin across NUMA nodes, skipping nodes without available cores. The number of reserved CPUs must be a multiple of logical processors per core.
Documentation
Updated help and README guidance to explain NUMA splitting, allocation behavior, and how to disable splitting.
Bug Fixes
* The tool now completes successfully in supported NUMA-splitting scenarios and provides guidance when splitting is disabled across multiple nodes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->