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
Pluribus Networks raises $50 million in Series D funding

January 29th, 2015

Pluribus Networks has announced that it has closed a $50 million Series D funding. The round was led by Temasek Holdings, an investment company based in Singapore with a…

VMware results for Q4 2014 and full year

January 28th, 2015

On January 27, VMware released the financial results for the third quarter and full year 2014.
The revenues for the fourth quarter were $1.70 billion for an increase of 15% compared…

Ravello Systems raises $28 million and announces major release of HVX

January 27th, 2015

Cloud computing startup called Ravello Systems announces to have secured $28 million funding and to have boost a total of $54 million capital led by Qualcomm Incorporated, through its…

Amazon updates AWS plugin for Microsoft System Center Virtual Machine Manager

January 22nd, 2015

In October last year, Amazon released the AWS System Manager for Microsoft System Center Virtual Machine Manager (SCVMM). AWS System Manager is an add-in for SCVMM which allows customers to…

VMware announces vCloud Air Disaster Recovery

January 22nd, 2015

VMware has announced that later this quarter it will release an updated disaster recovery solution for its IaaS solution vCloud Air (formerly vCloud Hybrid Service). The solution which will be…

Paper: Cisco Unified Computing System with VMware Horizon 6 with View and Virtual SAN

January 20th, 2015

Cisco and VMware have released a paper titled: "Cisco Unified Computing System with VMware Horizon 6 with View and Virtual SAN". The paper which contains 59 pages describes a reference…

Release: Xen Project Hypervisor 4.5

January 19th, 2015

The Xen Project, the community which develops the Xen hypervisor under the GNU General Public License (GPLv2) last week announced the availability version 4.5 of the Xen Hypervisor. With major…

Microsoft and Persistent Systems release solution for Azure IaaS data center migration

January 15th, 2015

Microsoft, together with partner Persistent Systems has developed and released a tool which helps customers to move complete Infrastructure as a Service (Iaas) deployments from one Microsoft datacenter to…

Citrix announcements from its annual Summit partner conference

January 15th, 2015

Before and during its annual Summit partner conference, held on January 13 and 14, Citrix made several announcements. First of all Citrix announced the acquisition of Sanbolic, which virtualization.info already…

Citrix announces XenServer 6.5 – UPDATED

January 13th, 2015

Citrix today announced the next version of its virtualization platform XenServer which is a commercial product based on the open-source Xen Project hypervisor. XenServer 6.5 will be the follow up…

Citrix Acquires Sanbolic

January 12th, 2015

Citrix today announced that its has completed its acquisition of Sanbolic. Sanbolic which has a product called Sanbolic Scale-Out Platform which can be seen as an aggregation of both local…

Survey: State of the VDI and SBC union 2015

January 12th, 2015

Two years ago, Project Virtual Reality Check (VRC) started a survey asking participants to provide more insight in the non-technical issues related to Virtual Desktop Infrastructure (VDI) and Server Based…

Paper: VMware Mirage 5.0 Reviewer’s Guide

January 9th, 2015

VMware has released a reviewers guide for its End User Computing solution Horizon version 5. The paper titled: "VMware Mirage 5.0 Reviewer’s Guide" contains 209 pages and allows readers to…

Microsoft updates Azure with availability of G-series, Docker image support and a public preview of Azure Key Vault

January 9th, 2015

Microsoft yesterday announced several updates to its Microsoft Azure cloud platform. Updates include the availability of the new G-series type of VM’s, the availability of Ubuntu image with a…

 
Monthly Archive