After a live migration of a virtual machine between two servers with NUMA architecture, the CPU affinity is set to "any CPU". As a result, the migrated virtual machine uses memory across multiple nodes, which degrades performance of the virtual machine.
Workaround: Before performing the
live migration of virtual machines, configure CPU pinning in the
guest vm.cfg
file. For example, to pin a
virtual machine with 4 VCPUs to physical CPUs 4, 5, 6, and 7, add
the following line to the vm.cfg
:
cpu = "4-7"
Bug 22382809