Citrix XenServer Optimization

Source: Internet
Author: User

XenServerDomain0 memory Adjustment

XenServerDomain0 uses MB of memory by default. Each time a VM is started, a Qemu-DM process is started in Domain0, occupying approximately 6 MB of memory space, therefore, when the number of virtual machines is large, we need to increase the Domain0 memory to support more virtual machines. Because Domain0 is a 32-bit operating system, the maximum memory size supported is 4 GB. For how to change the Domain0 memory, refer to CTX124806-XenServerSingleServerScalabilitywithXenDesktopIn the example above, change the Xen command line containing dom0_mem = 2940M under/boot/exlinux. conf.

XenServer5.6 to XenServer6.0:

To modify the previous settings, complete these steps:

1. log on to Domain0 as root using the XenCenter control port or SSH.

2. Make sure to back up the original/boot/extlinux. conf file. To prevent future modifications from causing XenServer to fail.

3. Use vi to open/boot/extlinux. conf.

4. The following changes are added only to the labelxe and labelxe-serial sections.

Make the following changes:

Labelxe # XenServerkernelmboot. c32append/boot/xen.gz dom0_mem =752 MLowmem_emergency_pool = 1 Mcrashkernel = 64M @ 32 Mconsole = com1vga = mode-0x0311-/boot/vmlinuz-2.6-xenroot = LABEL = root-certificate = hvcconsole = hvc0console = tty0quietvga = 785splash-/boot/initrd-2.6-xen.img
Changed:
Labelxe # XenServerkernelmboot. c32append/boot/xen.gz dom0_mem =2940 MLowmem_emergency_pool = 1 Mcrashkernel = 64M @ 32 Mconsole = com1vga = mode-0x0311-/boot/vmlinuz-2.6-xenroot = LABEL = root-certificate = hvcconsole = hvc0console = tty0quietvga = 785splash-/boot/initrd-2.6-xen.img

Dom0_mem = 2940M is adjusted to allocate more memory to Dom0, which means it can better process more virtual machines. After changing this setting and restarting, make sure that the size of the newly configured dom0 Memory takes effect.

XenServer6.1 method:

XenServer6.1 provides simpler commands to set the Domain0 memory.

  1. Log on to Domain0 as root using the XenCenter control port or SSH.
  2. Run the following command:

/Opt/xensource/libexec/xen-cmdline-set-xendom0_mem = <nn> M, max: <nn> M

  1. Restart XenServer to make sure the change takes effect.
  2. Log on to Domain0 and run the free command to make sure the change takes effect.You can also modify it during installation:
650) this. width = 650; "style =" border-top: # ddd 1px solid; border-right: # ddd 1px solid; border-bottom: # ddd 1px solid; border-left: # ddd 1px solid; "alt =" spacer.gif "src ="/e/u/themes/default/images/spacer.gif "/>

650) this. width = 650; "title =" 1.jpg" alt = "155200245.jpg" src =" http://img1.51cto.com/attachment/201310/155200245.jpg "/>

Press F2 to go to the advanced installation menu.

650) this. width = 650; "title =" 2.jpg" alt = "155256898.jpg" src =" http://img1.51cto.com/attachment/201310/155256898.jpg "/>

Enter shell and press enter to enter the command line

650) this. width = 650; "title =" 3.jpg" alt = "155629654.jpg" src =" http://img1.51cto.com/attachment/201310/155629654.jpg "/>

Run the following command in bash-3.2 #: vi/opt/xensource/installer/constants. py

650) this. width = 650; "title =" 4.jpg" alt = "155820.59.jpg" src =" http://www.bkjia.com/uploads/allimg/131228/04195W091-3.jpg "/>

Edit the Constants. py file

Modify DOM0_MEM = 752 to DOM0_MEM = 2940, and modify root_size = 4096 to root_size = 10240.

650) this. width = 650; "title =" 5.jpg" alt = "160004317.jpg" src =" http://www.bkjia.com/uploads/allimg/131228/04195TN5-4.jpg "/>

After the changes are completed, Press ESC key-> input:-> enter wq-> press enter to save the file, and then enter exit to exit the command line interface.

To retain the CPU cores used independently for Domain0, you can limit the DomainU operation to other CPU cores. For example, on a 2*8 core server, to set Core0 to be retained to Domain0, run the following command:

EchoSettingCPUmaskonVM

VMLIST = 'xevm-listis-control-domain = false | grep "uuid (RO)" | awk '{print $5 }''

ForVMin $ VMLIST

Do

EchoSetting $ VM

Xevm-param-setuuid = $ VMVCPUs-params: mask = 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

Done

This article is from the blog "I get a year of chaos Floating Life", please be sure to keep this source http://tasnrh.blog.51cto.com/4141731/1304581

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.