Systems Operational
Open-Source Community Tooling | Loading...
Apache 2.0 Open-Source CLI Plugin

kubectl hw-doctor: CPU Pinning, NUMA & GPU Cluster Auditor

A lightweight (~3 MB), zero-agent kubectl plugin engineered by KubeCTL Ltd to uncover hidden CFS CPU throttling, broken Static CPUManager pinning, and NVIDIA/AMD GPU production bottlenecks in seconds.

★ View on GitHub (kubectl-ltd/kubectl-hw-doctor) Download Latest Release (v0.1.0)

What Makes kubectl hw-doctor Unique

Quick Start & CLI Usage

# Build ~3 MB static binary from source (Go 1.23+, macOS / Linux / Windows) git clone https://github.com/kubectl-ltd/kubectl-hw-doctor.git cd kubectl-hw-doctor go build -o kubectl-hw_doctor ./cmd/kubectl-hw_doctor sudo mv kubectl-hw_doctor /usr/local/bin/ # Run full CPU/NUMA + GPU diagnostic against current kubeconfig context kubectl hw-doctor # Run CPU/NUMA/CFS-Throttling or GPU sub-audits individually kubectl hw-doctor cpu --throttle-threshold 3.0 kubectl hw-doctor gpu -n ai-prod # Export structured JSON or Markdown reports for CI/CD & Slack alerts kubectl hw-doctor -o json > hw-audit.json kubectl hw-doctor -o markdown > hw-audit.md

Sample Terminal Output (kubectl hw-doctor --demo)

⚡ kubectl hw-doctor • Context: prod-eu-baremetal-01 • Mode: ALL ────────────────────────────────────────────────────────────────────────────────────────────────── 1. NODE SILICON, NUMA TOPOLOGY & GPU INVENTORY NODE CPUs CPU-MGR TOPOLOGY-MGR RSVD-CPUs 1Gi-HP GPU MODEL GPUs SHARING bm-hft-epyc-01 28 static single-numa-node 0-3 64Gi - - - bm-hft-epyc-02 32 static none - 64Gi - - - gpu-h100-node-01 94 unknown unknown - - NVIDIA-H100-80GB-HBM3 2/4 None (1 Pod = 1 Whole GPU) gpu-l40s-node-02 62 unknown unknown - - NVIDIA-L40S 2/8 Time-Slicing (x4) 2. LIVE KUBELET cADVISOR CFS CPU THROTTLING (NO PROMETHEUS REQUIRED) NAMESPACE POD CONTAINER NODE THROTTLED % PERIODS trading fix-gateway-7d8f9 order-router bm-hft-epyc-02 36.5% 438/1200 3. DIAGNOSTIC FINDINGS & REMEDIATIONS 1. [CRITICAL] CPU_PINNING_NOT_GUARANTEED (CPU/NUMA) — Pod/trading/fx-matching-engine-bad 2. [CRITICAL] CFS_CPU_THROTTLING (CPU/NUMA) — Pod/trading/fix-gateway-7d8f9 (order-router) 3. [CRITICAL] GPU_HARDWARE_XID_FAULT (GPU/AI) — Node/gpu-l40s-node-02 (Xid 79: GPU fallen off bus) 4. [CRITICAL] GPU_NVML_VERSION_MISMATCH (GPU/AI) — Pod/ai-prod/triton-vision-worker
CPU Pinning & IRQ Blueprint → GPU Sharing & Troubleshooting Guide → Need Enterprise Cluster Remediation?