VMware Performance Enhancing Tweaks (Over-the-Counter Solutions)

I have been using VMware virtualization for quite a few years now, and even though it is generally fast and reliable platform, it does require some extra tuning to improve its performance. Here is a brief collection of tweaks that I personally use on Windows and Mac to speed up and improve I/O performance of VMware virtual machines. These tweaks have become particularly useful in the past couple of years, since larger amount of available RAM on computers and desire to reduce unnecessary write operations to SSD drives, such as full memory swap files.

Tweak: Disable memory swap files .vmem files

In the VMware settings.ini file add the following line:

mainMem.useNamedFile = "FALSE"

Settings.ini file is located file either at C:\ProgramData\VMware\VMware Workstation\ or C:\Documents and Settings\All Users\Application Data\VMware\VMware Workstation\ folders, depending on your operating system.

Note: Unfortunately this parameter does not work for VMware Player, as it always creates virtual machine’s full memory swap file.

For VMware Fusion on Mac and Linux instead of mainMem.useNamedFile you have to set mainMem.backing flag.
VMware Fusion Config files are located at: /Users/username/Library/Preferences/VMware Fusion/preferences and /Users/username/Library/Preferences/VMware Fusion/config

mainMem.backing = "swap"

Tweak: Disable log files for VM

Open your .vmx file in a text editor and add the following line:

logging = "FALSE"

Alternatively you can specify a different location to store the log file, if you ever need them:

log.filename = "c:\Windows\Temp\vm1.log"

Tweak: Disable Unity Mode

Unity might be a great feature for running virtual desktops operating systems, but it is not the most useful for virtualizing server OS. An annoying sign of enabled unity is GuestAppsCache or caches folder with a large number of files in its appData-subfolder. In order to disable it for your VM, open your .vmx file in a text editor and add the following line:

isolation.tools.unity.disable="TRUE"
unity.allowCompositingInGuest="FALSE"
unity.enableLaunchMenu = "FALSE"
unity.showBadges = "FALSE"
unity.showBorders = "FALSE"
unity.wasCapable = "FALSE"

Tweak: Disk & Memory I/O Performance Optimization

Disable memory trimming:
MemTrimRate = "0"

Disable page sharing:
sched.mem.pshare.enable = "FALSE"

Disable snapshots if you are not using them and prefer full backups:
snapshot.disabled = "TRUE"

Disable scale down of memory allocation:
MemAllowAutoScaleDown = "FALSE"

References:

VMware: Troubleshooting hosted disk I/O performance problems
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1008885

VMware: Disk I/O Performance Tips
http://www.vmware.com/support/ws5/doc/ws_performance_diskio.html

VMware: Defragmentation overview
http://blogs.vmware.com/teamfusion/2008/10/tip-defragmenta.html

VMware: Disabling the Workstation Log File or Storing the Log File in a Different Location
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1028

Blog: How can I prevent VMware Workstation Unity Mode from disabling Windows Aero?
http://www.windowsitpro.com/article/virtualization2/q-how-can-i-prevent-vmware-workstation-unity-mode-from-disabling-windows-aero-

 

LinkedInBookmark/FavoritesShare

4 thoughts on “VMware Performance Enhancing Tweaks (Over-the-Counter Solutions)”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>