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: 2092
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 can't find VMware documentation
document Unable to connect to MKS: Host address lookup for server
document What does ESX stand for?
document How can I convert an existing computer into a virtual one? ..or a virtual machine into a physical one?
document Is a raw lun (RDM) faster than a VMDK on a VMFS? Does physical or virtual RDM mapping make a difference?
document I'm trying to install VMware Tools on Linux, but nothing happens
document Upgrading VMware Tools fails on Windows Server 2008 with the message "Error 1316. A network error occured while attempting to read from the file C:\Windows\Installer\VMware Tools.msi"
document Which hardware can I install ESX on?
document Active Directory and VMware snapshots
document Is there a GUI for Storage VMotion?
» More articles



RSS