O'Reilly logo

KVM Virtualization Cookbook by Konstantin Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

There is more...

In this recipe, we saw examples on how to manually assign a KVM process to a NUMA node by editing the XML definition of the guest. Some Linux distributions such as RHEL/CentOS 7 and Ubuntu 16.04 provide the numad (NUMA daemon) service, which aims at automatically balancing processes between NUMA nodes by monitoring the current memory topology:

  1. To install the service on Ubuntu 16.04, run:
root@kvm:~# lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 16.04.2 LTSRelease: 16.04Codename: xenialroot@kvm2:~# apt install numad...root@kvm:~#
  1. To start the service, execute the following code:
root@kvm:~# service numad startroot@kvm2:~# pgrep -lfa numad12601 /usr/bin/numad -i 15root@kvm:~#

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required