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
EMC acquires Virtustream

May 26th, 2015

EMC has acquired Virtustream, a Infrastructure as a Service (IaaS) provider originally funded among the others from SAP for 1.2 billion US dollars. Virtustream also provides a Cloud Management Platform…

Release: Midokura Enterprise MidoNet (MEM)

May 25th, 2015

Japanese startup Midokura focused on network virtualization announced the availability of Midokura Enterprise MidoNet (MEM). MidoNet is a scalable network virtualization solution integrated with OpenStack Kilo networking project and…

Release: Red Hat CloudForms 3.2

May 20th, 2015

Red Hat yesterday announced the release of version 3.2. of its cloud management software, CloudForms. CloudForms allows the management of hypervisors from Red Hat, VMware and Microsoft as well as…

Gartner predicts that Worldwide Cloud IaaS spending will grow around 33 percent is 2015

May 20th, 2015

Besides releasing their annual Magic Quadrant for Cloud Infrastructure as a Service, research and consulting firm Gartner also made some predicitons about the growth of Cloud Infrastructure as a Service…

Gartner releases its Magic Quadrant for Cloud Infrastructure as a Service for 2015

May 20th, 2015

Gartner this week updated its Magic Quadrant for Cloud Infrastructure as a Service (IaaS) for the year 2015. The Magic Qudrant for 2014 was released in May last year (covered…

Red Hat announces the Cloud Suite for Applications

May 19th, 2015

Red Hat yesterday announced a new Suite which bundles its cloud portfolio to manage both Infrastructure as a Service (IaaS) and Platform as a Service (PaaS) workloads. The suite, which…

VMware announces new SaaS offering for building, delivering and managing desktops and applications

May 18th, 2015

A day before the start of Citrix annual Synergy conference, rival VMware announced project Enzo. Project Enzo is the name of a new Software as a Service offering from VMware…

Announcements from Citrix annual Synergy Conference

May 18th, 2015

Last week, Citrix held its annual Synergy conference in Orlando. During the conference Citrix made several announcements which will be summarized in this blogpost.
Citrix Workspace Cloud, which is a…

Is Cisco planning to acquire Nutanix? – UPDATED

May 18th, 2015

Last Friday, Storage Newsletter published an article written by Jared Rinderer a senior research analyst at the Equity Capital Research Group stating that Cisco is planning to acquire Nutanix. While…

Release: Citrix XenServer 6.5 Service Pack 1

May 18th, 2015

During its annual Synergy conference last week, Citrix announced the availability of Service Pack 1 for version 6.5 of its virtualization platform XenServer. Version 6.5 of XenServer was released in…

Infographic: OpenStack adoption in Italy

May 11th, 2015

The IT roadmap throughout the digital transformation process is a journey, long and complex, and must not be underestimated. Like any other journey it starts with a first step which…

.infonews welcomes Alessandro Fontana as a team member

May 11th, 2015

12 years ago, in 2003, virtualization.info started to track virtualization market and, in 2010, cloudcomputing.info was launched as a sister publication with a focus on the cloud computing market.
In…

Microsoft announcements from its annual Ignite conference

May 10th, 2015

Last week, Microsoft held its annual Ignite conference in Chicago, Illinois. Ignite is the new name for a series of technical conferences targeted to IT Professionals, which replaces the…

Release: Update Rollup 6 for Microsoft System Center 2012 R2 and Windows Azure Pack – UPDATED

April 30th, 2015

Microsoft has released Update Rollup 6 for the following products within the System Center 2012 R2 suite: Service Manager (SCSM), Operations Manager (SCOM), Virtual Machine Manager (SCVMM) and Service…

 
Monthly Archive