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:
- 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.
- 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)
- 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:
Note: Memory trimming can be disabled through GUI since Workstation 6.0.
- 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:
These suggestions will work well for every VMware Workstation 5.x and Player 1.x since both share same engine.
blog comments powered by Disqus
virtualization.info Newest articles
April 23rd, 2015
VMware has released a paper titled: "VMware AlwaysOn Desktop Design Guide". The paper which contains 30 pages describes a high-availability solution for virtual desktops (VDI) and is based on View…
April 22nd, 2015
Microsoft has released a free ebook titled:"Microsoft System Center Operations Manager Field Experience". System Center Operations Manager provides the monitoring component as part of the Microsoft System Center Suite….
April 22nd, 2015
In February this year, VMware acquired Immidio including its products AppScriber and Immidio Flex+. Now VMware has rebranded the product as VMware User Environment Manager.
User Environment Manager is available…
April 21st, 2015
VMware yesterday announced to new projects, Project Photon and Project Lightwave. Project Photon is a Linux Operating System which is optimized to run on vSphere and capable of running what…
April 21st, 2015
Docker has released version 1.6 of its container virtualization solution, Docker Engine. Also updates for Registry, Compose, Swarm and Machine and a preview of a client for Microsoft Windows…
April 16th, 2015
Lately it’s been a busy time for Docker, after disclosing the availability of its orchestration tools and the acquisition of SocketPlane, the open-source project that automates the deployment of…
April 15th, 2015
Docker, provider of the Docker container virtualization platform has announced that it has raised $ 95 million in a series D funding round. The round was led by Insight…
April 14th, 2015
VMware has released a paper titled: "How VMware Mirage Complements and Extends Microsoft System Center Configuration Manager". The paper, which contains 28 pages details how VMware Mirage, VMware’s centralized image…
April 13th, 2015
VMware has released a paper titled: "VMware Horizon 6 Storage Considerations". The paper which contains 36 pages takes a close look at the most important questions and challenges that face…
April 8th, 2015
In October last year, Microsoft announced that support for Docker container virtualization in its next version of Windows Server through the Windows Server Containers technology. Today Microsoft announced several…
April 7th, 2015
Oracle last week announced the availability of a beta for version 5.0 of its type-2 virtualization platform VM Virtualbox. VM Virtualbox, which was originally developed by InnoTek became part of…
March 30th, 2015
Last week Microsoft announced new features for its Azure Backup solution. Azure Backup is a Microsoft solution which protects files and folders by providing multiple copies in multiple geographies….
March 30th, 2015
On March 25 Red Hat announced its financial results for the fourth quarter of 2014.
Total revenue for the first quarter ended February 28, 2015 was $464 million, with an increase…
March 25th, 2015
Oracle has released a new version of its virtualization platform VM Virtualbox. Version 4.3.26 is considered a maintenance release which can be installed on top of version 4.3. The update…