Numa: Difference between revisions
From DWIKI
m →Links Tag: wikieditor |
m →numatop Tag: wikieditor |
||
| (13 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
=Links= | =Links= | ||
*[https://docs.redhat.com/en/documentation/Red_Hat_Enterprise_Linux/7/html/Virtualization_Tuning_and_Optimization_Guide/sect-Virtualization_Tuning_Optimization_Guide-NUMA-NUMA_and_libvirt.html#sect-Virtualization_Tuning_Optimization_Guide-NUMA-VCPU_Pinning NUMA and vCPU pinning] | |||
*[https://docs.rockylinux.org/10/guides/virtualization/kvm_tuning/ KVM tuning] | |||
*[https://www.baeldung.com/linux/numa-test-support Checking for NUMA capabilities] | *[https://www.baeldung.com/linux/numa-test-support Checking for NUMA capabilities] | ||
*[https://docs.kernel.org/admin-guide/numastat.html Numa policy hit/miss statistics] | *[https://docs.kernel.org/admin-guide/numastat.html Numa policy hit/miss statistics] | ||
*[https://dev.to/sergelogvinov/proxmox-cpu-affinity-for-vms-4dhb Proxmox | *[https://dev.to/sergelogvinov/proxmox-cpu-affinity-for-vms-4dhb Proxmox CPU affinity for VMs] with nice diagram | ||
*[https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/virtualization_tuning_and_optimization_guide/sect-virtualization_tuning_optimization_guide-numa-numa_and_libvirt libvirt NUMA Tuning] | *[https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/virtualization_tuning_and_optimization_guide/sect-virtualization_tuning_optimization_guide-numa-numa_and_libvirt libvirt NUMA Tuning] | ||
*[https://forums.unraid.net/topic/99282-basic-vm-tuning-guide-for-multi-socket-motherboards/ 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://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= | =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== | ==numactl== | ||
| Line 14: | Line 26: | ||
Doesn't work in VM? | Doesn't work in VM? | ||
Or just doesn't know the CPU? | 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== | ==numastat== | ||
*[https://docs.kernel.org/admin-guide/numastat.html Numa policy hit/miss statistics] | *[https://docs.kernel.org/admin-guide/numastat.html Numa policy hit/miss statistics] | ||
===On host=== | |||
Also try per guest, get PID of guest and | |||
numastat <PID> | |||
===On guest=== | |||
==Numatune== | |||
Is run on the host | |||
==lstopo== | |||
*https://www.thomas-krenn.com/en/wiki/Display_Linux_CPU_topology_with_lstopo | |||
Package: '''hwloc''' | |||
Try | |||
lstopo --of txt | |||
===Output=== | |||
; PU : Package Unit. Usually core + optional SMT | |||
Latest revision as of 12:34, 30 March 2026
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
