Numa
From DWIKI
Links
- NUMA and vCPU pinning
- KVM tuning
- Checking for NUMA capabilities
- Numa policy hit/miss statistics
- Proxmox CPU affinity for VMs with nice diagram
- libvirt NUMA Tuning
- Basic VM tuning guide for multi socket motherboards
- https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/6/html/performance_tuning_guide/main-cpu
- https://forum.proxmox.com/threads/dual-socket-systems.158898/
Tools
lscpu
NUMA: NUMA node(s): 2 NUMA node0 CPU(s): 0-7,16-23 NUMA node1 CPU(s): 8-15,24-31
Where node0 has physical cores 0-7 and 16-23 are virtual/SMT
numactl
numatop
Error messages
CPU is not supported!
Doesn't work in VM? Or just doesn't know the CPU?
Fail to setup perf (probably permission denied)!
Seems you need to run it was root, with a high ulimit -n
numastat
On host
Also try per guest, get PID of guest and
numastat <PID>
On guest
Numatune
Is run on the host
lstopo
Package: hwloc Try
lstopo --of txt
Output
- PU
- Package Unit. Usually core + optional SMT
