2.3 Managing Domain 0 Memory

When the host is set up, a percentage of system memory is reserved for the hypervisor, and all remaining memory is automatically allocated to Domain0.

A better solution is to set a minimum and maximum amount of memory for domain 0, so the memory can be allocated appropriately to the hypervisor. An appropriate minimum amount would at least be 512 MB.

On 64bit machine with more than 480 GB RAM Setting a maximum amount needs to be set, otherwise the machine may refuse to boot. Set the value at or below the boundary of 480 GB—the difference is reserved for the hypervisor (to be used for guest VMs).

2.3.1 Setting a Maximum Amount of Memory

  1. Determine the amount of memory to set for domain 0.

  2. At Domain0, type xm list to view the currently allocated memory.

  3. Run YaST > Boot Loader.

  4. Select the Xen section.

  5. In Additional Xen Hypervisor Parameters, add dom0_mem= mem_amount where mem_amount is the maximum amount of memory to allocate to Domain0. Add K, M, or G, to specify the size, for example, dom0_mem=768M.

  6. Restart the computer to apply the changes.

2.3.2 Setting a Minimum Amount of Memory

To set a minimum amount of memory for Domain0, edit the dom0-min-mem parameter in the /etc/xen/xend-config.sxp file and restart xend. For more information, see Section 4.2, Controlling the Host by Modifying xend Settings.