topology-aware: add DRA memory devices and memory claims #902
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 396 lines diff across 4 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.358
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #902"
general
weight: 0.35
bart0sh
The topology-aware policy now publishes DRA memory devices next to its CPU devices. A pod can claim memory on a NUMA node, a socket or the machine. The policy pins the containers of the pod to the claimed memory nodes.
The DRA section of the topology-aware docs describes the memory devices and the memory claims. It has an example claim with CPUs and memory on one socket.
Memory devices
memdevnuma000.memdevsocket000,memdevsocket000hbmandmemdevmachinepmem.memory. A request takes whole mebibytes. The smallest request is 1Mi.level,memoryType,dra.cpu/socketID,resource.kubernetes.io/numaNodeandresource.kubernetes.io/pcieRoot.Memory claims
cpuset.mems. Its own memory zone stays there too.CLAIMED_MEMS.Nodes without CPUs
A NUMA node without CPUs now gets the package of its closest DRAM node with CPUs. A node with equally close nodes in two packages gets no package. So a socket can now have HBM and PMEM memory devices.
This also changes the
cpu-packagesmemory policy. It now includes the nodes without CPUs in each socket. The memory-policy plugin uses it too, for instance in itsinterleave-cpu-packagesclass.Breaking changes
dra.cpu/levelattribute is nowlevel, in thetopology-aware.nri.iodomain. Claims that selectdra.cpu/levelneed the new name.dra.cpu/cpuamount.Testing
cpuset.mems,CLAIMED_MEMS, restarts and the package of nodes without CPUs.cpuset.mems,CLAIMED_MEMSand the capacities of all memory devices. It checks them again after a plugin restart.dra.cpu/levelin that revision. It now selectslevel. It needs a run too.