<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Vivek Agarwal's Portal/Java Blog &#187; Virtualization</title>
	<atom:link href="http://vivekagarwal.wordpress.com/category/virtualization/feed/" rel="self" type="application/rss+xml" />
	<link>http://vivekagarwal.wordpress.com</link>
	<description>An IBM Gold Consultant's weblog about IBM, Lotus, WebSphere, J2EE, IT Processes, and other IT technologies</description>
	<lastBuildDate>Tue, 27 Oct 2009 03:15:20 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='vivekagarwal.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/da8f819b3926c7922045a2bb8dda8053?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Vivek Agarwal's Portal/Java Blog &#187; Virtualization</title>
		<link>http://vivekagarwal.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vivekagarwal.wordpress.com/osd.xml" title="Vivek Agarwal&#8217;s Portal/Java Blog" />
		<item>
		<title>Improving VMWare Server performance on Windows XP</title>
		<link>http://vivekagarwal.wordpress.com/2008/07/08/improving-vmware-server-performance-on-windows-xp/</link>
		<comments>http://vivekagarwal.wordpress.com/2008/07/08/improving-vmware-server-performance-on-windows-xp/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 03:45:06 +0000</pubDate>
		<dc:creator>Vivek Agarwal</dc:creator>
				<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[MemTrimRate]]></category>
		<category><![CDATA[Sched.mem.pshare.enable]]></category>
		<category><![CDATA[VMWare Performance]]></category>
		<category><![CDATA[VMWare Server Performance Tuning]]></category>

		<guid isPermaLink="false">http://vivekagarwal.wordpress.com/?p=111</guid>
		<description><![CDATA[Over the last year, we have made a big push to move our development/test environments to a virtualized environment using VMWare Server. While we have not really encountered serious performance issues with our test servers, my team was reporting very poor performance with running the development virtual machines on their laptops. Now, keep in mind [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vivekagarwal.wordpress.com&blog=929801&post=111&subd=vivekagarwal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Over the last year, we have made a big push to move our development/test environments to a virtualized environment using VMWare Server. While we have not really encountered serious performance issues with our test servers, my team was reporting very poor performance with running the development virtual machines on their laptops. Now, keep in mind that these are pretty powerful laptops with 3 or 4GB of RAM, a T9300 dual-core processor, and a 7200RPM SATA hard drive. So there was more than enough horsepower to run WebSphere Portal in a virtual machine. However, the facts did not bear it out and in fact my team was reporting that running the virtual machine was in fact slowing their laptops down to a crawl with the constant hard disk access &#8211; a build that ought to take 5-10 seconds was taking several minutes. Obviously an unacceptable situation and people had reverted to just using a local WebSphere Portal install on their native OS &#8211; the issue with the local installs was that these local installs were not configured with LDAP or all the customizations/configurations that our test VMs have. When I found out about the issue and workaround and the fact that my pet initiative had fallen by the wayside, I felt challenged to resolve this issue. I tried it out on my own laptop and was able to reproduce this issue, and 2-3 hours later, I had the issue resolved. <span id="more-111"></span></p>
<p>To reiterate, the root cause of our performance woes was the excessive disk I/O being done by VMWare. Even though, we had plenty of RAM on our laptops and had more than enough RAM allocated  to the Virtual Machine, what I noticed was that while VMWare would start by using significant amount of host RAM, over time it would release that RAM back to the host O/S. Once I realized what was going on, I did some Google searches and looked up the VMWare settings help, and had a resolution to my issue.</p>
<p>Here are the changes that I made to my laptop and to the VMWare settings to improve performance -</p>
<ol>
<li>
<h3 class="Heading2">Disable Memory Page Trimming</h3>
<p class="Body">VMware Server uses a memory trimming technique  to return unused virtual machine memory to the host machine for other uses.  Although trimming usually has little impact on performance and might be needed  in low memory situations, the I/O caused by memory trimming can sometimes  interfere with disk-oriented workload performance in a guest. To disable memory page trimming, check the<strong> Disable memory page trimming</strong> check box (Select: VM &gt; Settings &gt; Options &gt;  Advanced), and click OK.</p>
<p>Given that I have enough RAM on my laptop, my first step to improve performance was to disable memory trimming for guest VMs.</li>
<li>
<h3 class="Heading2">Disable real-time anti-virus protection</h3>
<p class="Body">Given the size of the VMWare virtual disk files and given that they are continuously being written to, I figured that my real-time anti-virus protection (Symantec AV) was probably not helping any with my disk I/O performance. So, I went ahead and excluded the VMEM (Virtual Memory &#8211; .vmem extension) and VMDK (VMWare Virtual Disk &#8211; .vmdk extension) files from the real-time scan.</p>
</li>
<li>
<h3 class="Heading2">Disable memory sharing</h3>
<p class="Body">When the first two steps did not yield the results I wanted, I did some more searching and stumbled upon this default VMWare feature of page sharing that enables VMWare to save on memory usage if multiple virtual machines are running the same operating system or the same applications. I am not sure how this works in my scenario where I only have 1 virtual machine running at a time, but it certainly appeared to me that VMWare was scaling back its memory usage resulting in  unnecessary disk I/O and this seemed like a possible culprit. I disabled memory sharing by adding a setting <em>sched.mem.pshare.enable </em> in my virtual machine configuration (.vmx) file like this:</p>
<p>sched.mem.pshare.enable = &#8220;FALSE&#8221;</li>
</ol>
<p>Well, these 3 settings did the trick for me! No more VMWare performance woes &#8211; the guest VM performs adequately without affecting performance of other applications on my host OS! Keep in mind, that you should also look into defragmenting your host disks and also shrinking your virtual disks for the best performance. I had already done these steps before I spent the time to track down the performance issues. Now, my team can go back to adopting the VMWare development virtual machines! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vivekagarwal.wordpress.com/111/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vivekagarwal.wordpress.com/111/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vivekagarwal.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vivekagarwal.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vivekagarwal.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vivekagarwal.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vivekagarwal.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vivekagarwal.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vivekagarwal.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vivekagarwal.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vivekagarwal.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vivekagarwal.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vivekagarwal.wordpress.com&blog=929801&post=111&subd=vivekagarwal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vivekagarwal.wordpress.com/2008/07/08/improving-vmware-server-performance-on-windows-xp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51b07703056eac6cc06db437b8cfe663?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vivek</media:title>
		</media:content>
	</item>
		<item>
		<title>My basic mis-steps with VMWare Server hardware/networking and their solutions</title>
		<link>http://vivekagarwal.wordpress.com/2007/08/29/my-basic-mis-steps-with-vmware-server-hardwarenetworking-and-their-solutions/</link>
		<comments>http://vivekagarwal.wordpress.com/2007/08/29/my-basic-mis-steps-with-vmware-server-hardwarenetworking-and-their-solutions/#comments</comments>
		<pubDate>Thu, 30 Aug 2007 02:54:14 +0000</pubDate>
		<dc:creator>Vivek Agarwal</dc:creator>
				<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://vivekagarwal.wordpress.com/2007/08/29/my-basic-mis-steps-with-vmware-server-hardwarenetworking-and-their-solutions/</guid>
		<description><![CDATA[This is a quick blog about some start-up issues that I ran into with VMWare Server during my initial experimentation with it. I also go into the solutions for these issues. 
The first real basic issue that I ran into was that I wanted to add a hard disk to an existing virtual machine in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vivekagarwal.wordpress.com&blog=929801&post=62&subd=vivekagarwal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is a quick blog about some start-up issues that I ran into with VMWare Server during my initial experimentation with it. I also go into the solutions for these issues. <span id="more-62"></span></p>
<p>The first real basic issue that I ran into was that I wanted to add a hard disk to an existing virtual machine in VMWare Server, and when I clicked on <em>Edit virtual machine settings</em>, the <em>Add</em> button on the <em>Hardware</em> tab in the <em>Virtual Machine Settings</em> pop-up window was grayed out.  This turned out to be a quick fix &#8211; essentially, the virtual machine was running and I could not edit the settings in that VM state &#8211; once I stopped the VM, I could change the hardware configuration on the VM to my heart&#8217;s content.</p>
<p>The next issue I ran into was that I could not simultaneously access the host machine from the VM and the VM from other machines on our network. My resolution for this issue (there might be other solutions as well) was to configure 2 ethernet adapters on the VM &#8211; one ethernet adapter was set up to be a <em>NAT </em>type network connection while the second adapter was set up to be a <em>Host-only</em> type network connection. Note that I also tried having a <em>Bridged </em>type network connection instead of a NAT type &#8211; that worked just fine in my office environment, but at home with my wireless router the bridged connection did not work out.</p>
<p>Another issue that I ran into was with accessing the hard disk on my host computer &#8211; this was not really a VMWare issue but a Vista issue. Essentially, I could not access the default admin share c$ as by default these admin shares are blocked for network access in Vista.  You can find the workaround for this issue <a href="http://firetech.blogspot.com/2007/04/vista-and-administrative-shares-c-d.html" target="_blank">here</a>.</p>
<p>These were relatively stupid and basic issues that I ran into &#8211; may not have run into them if I had read the docs but docs are for wimps!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vivekagarwal.wordpress.com/62/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vivekagarwal.wordpress.com/62/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vivekagarwal.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vivekagarwal.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vivekagarwal.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vivekagarwal.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vivekagarwal.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vivekagarwal.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vivekagarwal.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vivekagarwal.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vivekagarwal.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vivekagarwal.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vivekagarwal.wordpress.com&blog=929801&post=62&subd=vivekagarwal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vivekagarwal.wordpress.com/2007/08/29/my-basic-mis-steps-with-vmware-server-hardwarenetworking-and-their-solutions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51b07703056eac6cc06db437b8cfe663?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vivek</media:title>
		</media:content>
	</item>
		<item>
		<title>Joining the virtualization party late but better late than never!</title>
		<link>http://vivekagarwal.wordpress.com/2007/08/28/joining-the-virtualization-party-late-but-better-late-than-never/</link>
		<comments>http://vivekagarwal.wordpress.com/2007/08/28/joining-the-virtualization-party-late-but-better-late-than-never/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 02:06:31 +0000</pubDate>
		<dc:creator>Vivek Agarwal</dc:creator>
				<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://vivekagarwal.wordpress.com/2007/08/28/joining-the-virtualization-party-late-but-better-late-than-never/</guid>
		<description><![CDATA[I have been hearing the virtualization buzz for a couple of years now, but have never really tried it. About a month back, I decided to give  virtualization a whirl and  downloaded the free version of VMWare &#8211; VMWare Server.  VMware Server installs on a variety of operating systems including most flavors [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vivekagarwal.wordpress.com&blog=929801&post=60&subd=vivekagarwal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have been hearing the <a href="http://en.wikipedia.org/wiki/Virtualization" target="_blank">virtualization</a> buzz for a couple of years now, but have never really tried it. About a month back, I decided to give  virtualization a whirl and  downloaded the free version of VMWare &#8211; <a href="http://www.vmware.com/products/server/" target="_blank">VMWare Server</a>.  VMware Server installs on a variety of operating systems including most flavors of Windows and Linux, partitions a physical server into multiple virtual machines, and allows you to run Windows/Linux on these virtual machines. I currently have it installed on my Vista laptop and I love it &#8211; VMWare, not Vista just to be clear! <span id="more-60"></span>I have been creating VMWare images left, right and center. I created development images of WebSphere Portal v6.0, WebSphere Portal Express v6.0, and Lotus Quickr 8.0 on Windows XP. I have another image running <a href="http://www.apachefriends.org/en/xampp-windows.html" target="_blank">XAMPP for Windows</a> &#8211; a great package for getting jump started with Apache HTTPD 2.2.4 + Openssl 0.9.8e, MySQL 5.0.45, PHP 5.2.3, PHP 4.4.7, phpMyAdmin 2.10.3, and Zend Optimizer 3.3.0 on Windows. I installed XAMPP to get going with  <a href="http://www.phplist.com/" target="_blank">phplist</a> &#8211; a vibrant open-source tool for newsletter management. And just today, I was playing with installing Debian Linux on another virtual machine. All in all, I have gone vm-crazy! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Not only have we been creating individual developer virtual machines, but are also setting up our new test servers using VMWare. I am really sold on virtualization in the test/development environment for many reasons including -</p>
<ol>
<li>Simplifies running multiple test environments on a single system even if those test environments use the same resources &#8211; for example, same ports.</li>
<li>Simplifies backup of test environments.</li>
<li>Simplifies creation of copies of test environments &#8211; for example, if you have a virtual machine running WebSphere Portal, you can easily copy it off to another developer laptop giving that user his/her own copy of WebSphere Portal.</li>
<li>Enables us to easily provision new test servers as needed &#8211; this is true for base virtual machines running a specifc OS or complete Web/App Servers.</li>
<li>Simplifies the installation of multiple operating systems on a single system for test/development purposes</li>
</ol>
<p>As we use it more and more, I might get comfortable enough to consider running it in a production environment &#8211; or maybe a customer will force it on us! Virtualization is a powerful tool in the tool-chest of an enterprise software developer and if you have not examined it yet, you are wasting time!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vivekagarwal.wordpress.com/60/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vivekagarwal.wordpress.com/60/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vivekagarwal.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vivekagarwal.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vivekagarwal.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vivekagarwal.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vivekagarwal.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vivekagarwal.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vivekagarwal.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vivekagarwal.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vivekagarwal.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vivekagarwal.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vivekagarwal.wordpress.com&blog=929801&post=60&subd=vivekagarwal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vivekagarwal.wordpress.com/2007/08/28/joining-the-virtualization-party-late-but-better-late-than-never/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51b07703056eac6cc06db437b8cfe663?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vivek</media:title>
		</media:content>
	</item>
	</channel>
</rss>