How to improve disk I/O performances with VMware Workstation

Posted by virtualization.info Staff   |   Monday, November 21st, 2005   |  

Even on a 2 GB RAM workstation (as mine) VMware virtual machines can run slowly. Too slowly sometimes.

This can depend on a large amount of factors but we can reduce the number to 4 critical issues:

  1. Antivirus real-time protection
    You probably run VMware Workstation on your everyday working computer, and you probably want to stay secure running an antivirus software.

    The most useful feature of any AV is the real-time protection, catching and monitoring I/O accesses of every process for suspicious activities.
    This feature can greatly impact on your VMs performances and should be fine-tuned for virtualization.

    So be sure to create an exclusion filter on your real-time protection settings for .vmdk (VMware virtual disk) and .vmem (VMware virtual memory) files. In this way countinous I/O operations on your virtual machines will not be hit by antivirus checking.

    Note: if you plan to run liveCD operating systems (like Knoppix) inside your VMs or simply often use CD images for installing new software, I highly recommend to exclude .iso files too from AV checking.

  2. HostOS disk fragmentation
    A really performance hitter for virtual machines is a fragmented host OS disk.

    VMs virtual disks are very large (4 GBs at minimum on the average) and are created by default as non preallocated. In other words your virtual disk grow as you install more software on the guest OS till reaching your defined disk limit.
    If you use only one physical disk for everyday work and VMs storing, you probably will use space around a growing virtual disk, obliging your host OS to fragment virtual machines more and more.

    So be sure to:

    • Create a dedicated partition for virtual machines only
    • Create guest OSes virtual disks with Allocate all disk space now option
    • Schedule a daily defragmentation for your virtual machines directories (maybe at launch time or during the night)
  3. Memory trimming
    Workstation checks which part of the guest OS virtual memory is not used and allocates it back to the host OS. This permits to have more concurrent virtual machines running but everytime the guest OS asks back for its memory it suffers a performance degradation.

    So, if you have enough free RAM for all planned concurrent VMs, be sure to disable memory trimming for guest OSes adding the following line to the virtual machine configuration (.vmx) file:

    MemTrimRate=0

    Note: Memory trimming can be disabled through GUI since Workstation 6.0.

  4. Page sharing (quoted from VMware documentation)
    VMware uses a page sharing technique to allow guest memory pages with identical contents to be stored as a single copy-on-write page. Page sharing decreases host memory usage, but consumes system resources, potentially including I/O bandwidth.

    You may want to avoid this overhead for guests for which host memory is plentiful and I/O latency is important. To disable page sharing, add the following line to the virtual machine configuration (.vmx) file:

    sched.mem.pshare.enable=FALSE option

These suggestions will work well for every VMware Workstation 5.x and Player 1.x since both share same engine.


Labels: ,

blog comments powered by Disqus


virtualization.info Newest articles
Microsoft releases Azure Stack TP1

February 1st, 2016

During Ignite 2015, back in September, Microsoft announced Microsoft Azure Stack as the building block for its hybrid cloud strategy.
What Microsoft is saying with this move is that, despite…

Release: Ansible 2.0

January 14th, 2016

Ansible is an IT automation tool especially popular within the developers’ community, thanks to its simplicity and agentless nature.
Three months away from its acquisition by Red Hat the company announced…

Nutanix goes Public

December 23rd, 2015

Nutanix is a provider of converged infrastructure, basically a physical server containing both compute and storage driven by an Installed Hypervisor of choice, this server, called a node can…

Release: VMware vRealize Automation 7 and VMware vRealize Business Standard 7

December 23rd, 2015

Last week VMware finally completed the first major update of VMware vRealize Suite, its well known cloud management solution, releasing in GA both vRealize Automation 7 and vRealize Business Standard…

WhatMatrix.com goes Live

December 15th, 2015

virtualization.info has been following Virtualization Matrix since its early steps and we recently wrote about its crowdsourced-powered heir: WhatMatrix.
Today we are happy to report that its community, formed…

Microsoft loves Red Hat: The business implications

November 18th, 2015

As you may have heard, Microsoft recently announced its “historical” partnership with Red Hat, something that a number of analysts already claimed as a milestone for both companies but especially for…

Red Hat acquires Ansible

October 16th, 2015

Today Red Hat announced that it has signed a definitive agreement to acquire Ansible, provider of an IT automation tool popular especially within the developers’ community.
The acquisition is rumored…

Dell acquires EMC, owner of VMware and Pivotal

October 12th, 2015

Dell today announced that it signed a definitive agreement to acquire EMC Corporation for a total of $67 billion, making it the largest ever acquisition in the technology industry so…

Red Hat announces earnings for Q2 2015

October 2nd, 2015

Red Hat announced its financial results for the second quarter of fiscal year 2016.
Total revenue for the second quarter ended Augus 31, 2015 was $504 million, with an increase…

Citrix retires XenClient

September 21st, 2015

Citrix on its website announced that it started the End-of-Life process of Citrix XenClient Enterprise, the end of life date will be December 12, 2016.
XenClient consists of two technologies,…

Release: Altaro VM Backup V6

September 9th, 2015

Altaro Software, company specialized in backup for virtualized environments, specifically Microsoft Hyper-V, announced the release of Altaro VM Backup, previously known as Altaro Hyper-V Backup, rebranded to introduce VMware…

Release: CloudPhysics for vSphere

September 9th, 2015

CloudPhysics, provider of a SaaS performance and capacity analytics solution, announced to have released a new version of its SaaS offering allowing now VMware users to preempt and eliminate…

VMware announcements from its annual VMworld US conference

September 2nd, 2015

During its annual VMworld conference held between August 30 and September 3 in San Fransicso VMware made several announcements. During the keynote on Monday several data center related announcements and…

Release: VMware Workstation 12 Pro, Player 12, Fusion 8 and Fusion Pro 8

August 25th, 2015

VMware today released version 12 of its type-2 client hypervisor products for Microsoft Windows: Workstation Pro and Player and version 8 of its client hypervisor products for Mac OSX: Fusion….

 
Monthly Archive