CPU topology, NUMA, and huge pages
Topology tuning is useful when measurement shows scheduler movement, remote memory, translation pressure, or noisy neighbor contention. It can reduce flexibility and worsen performance when copied blindly. Establish host
Topology tuning is useful when measurement shows scheduler movement, remote memory, translation pressure, or noisy-neighbor contention. It can reduce flexibility and worsen performance when copied blindly.
Establish host topology
lscpu -e=CPU,NODE,SOCKET,CORE,ONLINE
numactl --hardware
virsh nodecpumap
virsh freecell --allInspect guest placement
virsh vcpucount guest01
virsh vcpuinfo guest01
virsh vcpupin guest01
virsh numatune guest01Align vCPU placement, emulator threads, memory policy, and device locality as one design. Pinning CPU without memory locality can move the bottleneck rather than remove it.
Huge-page proof
grep -i huge /proc/meminfo
virsh dumpxml guest01 | grep -A5 memoryBackingReserve capacity before guest start and monitor fragmentation. Huge pages reduce some overhead but constrain memory allocation and operational elasticity.