VMFAQ.com - FAQing about virtualization since 2008
Search:     Advanced search
Browse by category:
Contact Us

Recommended performance tuning options for Linux guests

Add comment
Views: 3101
Votes: 1
Comments: 0
Posted: 23 Jan, 2008
by: Huhtinen H.
Updated: 09 Mar, 2008
by: Huhtinen H.

Linux guests' performance may be improved if they have been created without much thought.

Always use a single VCPU when the CPU capacity requirement of the VM allows it.

Install VMware Tools and keep it updated.

Add the options "nosmp noapic nolapic clock=pit" to the guest's kernel (2.6) parameters. Don't add "nosmp" if using more than one VCPU.

Note clock=pit is depracted since kernel 2.6.16. Use clocksource=pit instead if your kernel is newer than that.

On RHEL 5.1 (and variants such as CentOS 5.1) add the option divider=10 to the kernel boot parameters. This causes the default clock tick rate, 1000HZ to be divided by 10, so HZ=100. On other distros, try using a kernel with Hz=100. Most 2.6 desktop distros are using HZ=1000, while the server distros tend to use HZ=100 or HZ=250.

See also http://kb.vmware.com/kb/775 and http://bugs.centos.org/view.php?id=2189

 You might also benefit from optimizing the host: I need more performance out of my VMware environment

Also read
document My virtual machine's clock is inaccurate. What can be done to make it more accurate?

Others in this Category
document I have 64bit CPU but I can't boot/install 64bit guests?
document Can I grow an existing virtual disk (.vmdk file)?
document My virtual machine's clock is inaccurate. What can be done to make it more accurate?
document I have a Linux host and can't bridge connections via a wireless NIC
document Accessing content in VMDK files without booting a VM
document Using USB devices in virtual machines
document Setting up samba between host and guest
document Booting an existing physical Windows installation as a virtual machine
document I need more performance out of my VMware environment



RSS