Product Documentation

VM CPU and Memory Allocation

Oct 16, 2015

When you create a new VM, you can allocate virtual CPUs, specify the number of cores-per-socket you would like to present to the VM's vCPUs, and set initial memory resources to the new VM. You can change the settings at anytime after the new VM is created.

Option Description
Number of vCPUs Enter the number of virtual CPUs (vCPUs) you would like to allocate to the new VM.

To ensure you get the best performance out of the new VM, the number of vCPUs you assign to the VM should not exceed the number of physical CPUs on the server.

Note: This value can be changed later, if needed. For more information, see Change VM properties: CPU. For information about the maximum number of vCPUs supported on a VM, refer to the XenServer Configuration Limits document.
Topology Specify the topology for the vCPU.

By default, XenServer allocates one core per socket for each vCPU. For example, allocating 4 vCPUs will appear as 4 sockets with 1 core per socket. Click the Topology drop-down list to change this setting and select an option from the list.

Note: The cores-per-socket setting depends on the number of sockets present on the server and the operating system installed. Some operating systems have restrictions on the number of CPUs. You should comply with the operating system requirements when setting this option.
Memory Enter the amount of memory you want to allocate to the VM.

The XenServer templates provide typical VM configurations and set reasonable defaults for the memory, based on the type of guest operating system. You should also take into account the following considerations when deciding how much memory you initially allocate to a new VM:

  • The kinds of applications that will run on the VM.
  • Other virtual machines that will be using the same memory resource.
  • Applications that will run on the server alongside the virtual machine.

You can adjust the memory allocation after the new VM is created on the VM's Memory tab, where you can also enable Dynamic Memory Control (DMC) to allow dynamic reallocation of memory between VMs in the same pool. See the Help topics in the Configuring VM memory folder for details.