Previous page

Next page

Locate page in Contents

Print this page

Binding CPUs to NUMA Nodes

On systems with a NUMA (Non-Uniform Memory Access) architecture, you can configure Containers to use CPUs from specific NUMA nodes only. Let us assume the following:

  • Your physical server has 8 CPUs installed.
  • The CPUs are divided into 2 NUMA nodes: NUMA node 0 and NUMA node 1. Each NUMA node has 4 CPUs.
  • You want the processes in Container 101 to be executed on the processors from NUMA node 1.

To set Container 101 to use the processors from NUMA node 1, run the following command:

# prlctl set 101 --nodemask 1

To check that Container 101 is now bound to NUMA node 1, use this command:

# vzlist 101 -o nodemask

NODEMASK

1

To unbind Container 101 from NUMA node 1, execute this command:

# prlctl set 101 --nodemask all

Now Container 101 should be able to use all CPUs on the server again.

Note: For more information on NUMA, visit http://lse.sourceforge.net/numa .