A CLI that analyzes NUMA topology for a process — shows CPU affinity, core/socket mapping, NUMA node distribution, and GPU locality. Built for diagnosing container CPU/GPU placement on Kubernetes nodes.
// momentum
// why it's here
- Active: last commit today
// how to help
// readme
numacheck
Why
On multi-socket servers, a CPU accessing memory on a remote NUMA node pays a steep latency penalty. Kubernetes can silently scatter a container’s CPUs across NUMA nodes, or place GPUs on a different node than the CPUs they serve. This destroys performance for latency-sensitive and GPU workloads, and nothing in kubectl will tell you it’s happening.
What
numacheck is a single-binary Linux CLI that reads sysfs and procfs to show you exactly where a process (or container) is placed in the machine’s NUMA topology. It reports CPU affinity, pinning status, physical core layout, NUMA node distribution, and GPU-to-NUMA locality — all rendered as a visual grid so you can spot misplacement at a glance.
Install
GOOS=linux go build -o numacheck .
Copy the binary to your target node. No external dependencies for core analysis — it reads /sys and /proc directly.
Usage
See the machine topology (no PID needed):
numacheck -topo
Check a process by PID — the grid shows which CPUs are allowed, which CPU is currently running, and which are unavailable:
numacheck -pid <PID>