<?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/"
	>

<channel>
	<title>vPivot &#187; monitor</title>
	<atom:link href="http://vpivot.com/tag/monitor/feed/" rel="self" type="application/rss+xml" />
	<link>http://vpivot.com</link>
	<description>Scott Drummonds on Virtualization</description>
	<lastBuildDate>Wed, 01 Feb 2012 06:46:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>A Performance Tip for ESX 3.0 and ESX 3.5</title>
		<link>http://vpivot.com/2010/04/20/a-performance-tip-for-esx-3-0-and-esx-3-5/</link>
		<comments>http://vpivot.com/2010/04/20/a-performance-tip-for-esx-3-0-and-esx-3-5/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 22:37:28 +0000</pubDate>
		<dc:creator>drummonds</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[amd]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://vpivot.com/?p=415</guid>
		<description><![CDATA[Do you have any running instances of ESX 3.5 or older?  Are those instances running on processors that are no more than a couple of years old?  If so, I have a tip for you: update your hosts to ESX 4.0. Seriously, upgrade to vSphere already. It&#8217;s been out for a year! All kidding aside, [...]]]></description>
			<content:encoded><![CDATA[<p>Do you have any running instances of ESX 3.5 or older?  Are those instances running on processors that are no more than a couple of years old?  If so, I have a tip for you: update your hosts to ESX 4.0.  Seriously, upgrade to vSphere already.  It&#8217;s been out for a year!</p>
<p><span id="more-415"></span></p>
<p>All kidding aside, yesterday I wrote an article about a sneaky trick to leverage improved hardware assist performance on ESX 3.5 virtual machines that defaulted to binary translation.  I learned very late in the day that the recommended guidance only works for AMD processors.  The text below is from the original post but has since been updated to reflect my newly discovered information.</p>
<h2>Begin Updated Article</h2>
<p>Do you have any running instances of ESX 3.5 or older?  Are those instances running on AMD processors that are no more than a couple of years old?  If so, I have a tip for you: force hardware assist in those virtual machines.  In most situations application performance will improve by 10% or more.  Details follow.</p>
<p>ESX&#8217;s monitor presents virtual hardware to virtual machines&#8217; guest operating systems.  VMware&#8217;s multi-mode monitor uses three technologies to do this: hardware assist, para-virtualization, and binary translation.  Hardware assist has gotten much faster over the years, as this figure demonstrates.</p>
<div id="attachment_418" class="wp-caption alignnone" style="width: 570px"><a href="http://vpivot.com/wp-content/uploads/2010/04/vmexit_latency.png"><img class="size-full wp-image-418" title="VMEXIT Latencies" src="http://vpivot.com/wp-content/uploads/2010/04/vmexit_latency.png" alt="" width="560" height="294" /></a><p class="wp-caption-text">The latency of the VMEXIT instruction is shown on Intel VT systems.  The longer this instruction takes to execute, the worse the virtual machine performs.</p></div>
<p>Johan De Gelas included his take on monitor mode performance when he reported &#8220;Virtualization Round Trip Latency&#8221; in a <a href="http://it.anandtech.com/show/2964/the-intel-xeon-5670-six-improved-cores">recent article on the new Xeon 5600</a>.  His results reiterate the trend I have been sharing with my audiences for over a year now.</p>
<p>Because hardware assist was once so slow, older versions of ESX would utilize our faster-performing binary translation in many situations.  But virtualization assist in today&#8217;s processors&#8211;and here I am talking about Intel and AMD processors manufactured in the past two years&#8211;is generally faster than binary translation. This means your virtual machines running on ESX 3.5 on shiny new processors may not be reaching their full potential performance.</p>
<p>The fix is simple: force hardware assist for your ESX 3.0 and ESX 3.5 virtual machines running on newer AMD processors.  You can do this with the following lines in your virtual machines&#8217; VMX files:</p>
<blockquote><p>monitor.virtual_mmu = hardware</p></blockquote>
<p>A reboot is then required.  But this setting only works for AMD processors, where RVI (AMD&#8217;s hardware memory management unit) is available.  With this setting both AMD-V and RVI are forced on.  This setting is ignored on Intel processors, whose hardware MMU is not leveraged on ESX 3.5.</p>
<p>These changes are not needed with vSphere because its default monitor modes favor hardware assist more than ESX 3.5 and earlier.  You can see vSphere&#8217;s default monitor modes in our wonderful <a href="http://www.vmware.com/files/pdf/perf-vsphere-monitor_modes.pdf">monitor modes paper</a>.</p>
<p>As one example of the magnitude of performance increase this small change can produce, look to the <a href="http://www.vmware.com/files/pdf/perf_vsphere_sql_scalability.pdf">SQL Server performance paper</a> we released last year.  Here is one graph I lifted from that document.</p>
<p><a href="http://vpivot.com/wp-content/uploads/2010/04/monitor_performance.png"><img class="alignnone size-full wp-image-419" title="SQL Server Performance of Different Monitor Modes" src="http://vpivot.com/wp-content/uploads/2010/04/monitor_performance.png" alt="" width="584" height="333" /></a></p>
<p>This figure shows AMD-V improving performance by 18% over binary translation on virtual machines running SQL Server 2008.  More gain is possible when the hardware memory management unit is utilized.</p>
<p>Because of ESX 3.5&#8242;s continued wide deployment, it may very well be running millions of virtual machines.  Many those virtual machines are running on newer AMD processors that can benefit from this change.  Go forth and reconfigure those virtual machines to claim the performance to which you are entitled!</p>
]]></content:encoded>
			<wfw:commentRss>http://vpivot.com/2010/04/20/a-performance-tip-for-esx-3-0-and-esx-3-5/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Newer Processors and Virtualization Performance</title>
		<link>http://vpivot.com/2009/09/16/newer-processors-and-virtualization-performance/</link>
		<comments>http://vpivot.com/2009/09/16/newer-processors-and-virtualization-performance/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 20:08:33 +0000</pubDate>
		<dc:creator>drummonds</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[amd]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[ept]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[rvi]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[vmkernel]]></category>

		<guid isPermaLink="false">http://vpivot.com/?p=18</guid>
		<description><![CDATA[[New content has been added to this is an update to an old article from the performance community.] Newer processors are much more important to virtualized environments than the non-virtualized counterpart. Generational improvements have not just increased the raw compute power, they have also reduced virtualization overheads. This blog entry will describe three key changes [...]]]></description>
			<content:encoded><![CDATA[<p><em>[New content has been added to this is an update to an <a href="http://communities.vmware.com/blogs/drummonds/2009/06/02/newer-processors-and-virtualization-performance">old article from the performance community</a>.]</em></p>
<p>Newer processors are much more important to virtualized environments than the non-virtualized counterpart. Generational improvements have not just increased the raw compute power, they have also reduced virtualization overheads.  This blog entry will describe three key changes that have particularly impacted virtual performance.</p>
<h2><span id="more-18"></span>Hardware Assist Is Faster</h2>
<p>In 2008, with the launch of the Opteron 1300, 2300 and 8300 parts, AMD became the first CPU vendor to produce a hardware memory management unit equipped to support virtualization.  They called this technology Rapid Virtualization Indexing (RVI).  This year Intel did the same with Extended Page Tables (EPT) on its Xeon 5500 line.  Both vendors have been providing the ability to virtualize privileged instructions since 2006, with continually improving results.  Consider the following graph showing the latency of one key instruction from Intel:</p>
<p><img class="jive-image-thumbnail jive-image" src="http://communities.vmware.com/servlet/JiveServlet/downloadImage/38-3171-5926/vmexit_latencies.png" alt="vmexit_latencies.png" width="620" /></p>
<p>This instruction, VMEXIT, is called each time the guest exits to the kernel.  The graph shows its latency (delay) in completing this instruction, which represents a wait time incurred by the guest.  Clearly Intel has made great strides in reducing VMEXIT&#8217;s wait time from its Netburst parts (Prescott and Cedar Mill) to its Core architecture (Merom and Penryn) and on to its current generation, Core i7 (Nehalem).  AMD processors have shown commensurate gains with AMD-V.</p>
<p>In a recent <a href="http://www.vmware.com/files/pdf/perf_vsphere_sql_scalability.pdf">white paper detailing SQL Server on vSphere</a>, the following graph showed the gains derived by using AMD-V in the Opteron 8324 (Shanghai).</p>
<div id="attachment_33" class="wp-caption alignnone" style="width: 609px"><img class="size-full wp-image-33" title="Monitor Mode and SQL Server Performance" src="http://vpivot.com/wp-content/uploads/2009/06/picture-3.png" alt="Binary translation, AMD-V, and AMV-V plus RVI are measured using SQL Server." width="599" height="343" /><p class="wp-caption-text">Binary translation, AMD-V, and AMV-V plus RVI are measured using SQL Server.</p></div>
<p>This graph shows the practical value of the great gains that CPU manufacturers have made with virtualization assist.  Hardware assist can now be regularly relied upon for great performance.</p>
<h2>Pipelines Are Shorter</h2>
<p>The longest pipelines in the x86 world were in Intel&#8217;s Netburst processors.  These processor&#8217;s pipelines had twice as many stages at their counterparts at AMD and twice as many as the generation of Intel CPUs that followed.  The increased pipeline length would have enabled support for 8 GHz silicon, had it arrived.  Instead, silicon switching speeds hit a wall at 4 GHz and Intel (and its customers) were forced to suffer the drawbacks of large pipelines.</p>
<p>Large pipelines are not necessarily a problem for desktop environments, where single threaded applications used to dominate the market.  But in the enterprise, application thread counts were larger.  Furthermore, consolidation in virtual environments drove thread counts even higher.  With more contexts in the processor, the number of pipeline stalls and flushes increased, and efficiency fell.</p>
<p>Because of decreased efficiency of consolidated workloads on processors with long pipelines, VMware has often recommended that performance-intensive VMs be run on processors no older than 2-3 years.  This excludes Intel&#8217;s Netburst parts.  VI3 and vSphere will do a fine job at virtualizing your less-demanding applications on any supported processors.  But you should use newer parts for applications that hold your highest performance expectations.</p>
<h2>Caches Are Larger</h2>
<p>A cache is highly effective when it fully contains the software&#8217;s working set.  The addition from the hypervisor of even a small about of code will change the working set and reduce cache hit rate.  I&#8217;ve attempted to illustrate this concept with the following simplified view of the relationship between cache hit rates, application working set, and cache sizes:</p>
<div id="attachment_34" class="wp-caption alignnone" style="width: 610px"><img class="size-full wp-image-34" title="Cache Size, Working Set, and Performance" src="http://vpivot.com/wp-content/uploads/2009/06/cache_size_perf.png" alt="Performance drops with small cache systems for even small increases to working set size." width="600" height="400" /><p class="wp-caption-text">Performance drops with small cache systems for even small increases to working set size.</p></div>
<p>This graph is based on a model that greatly simplifies working sets and the hypervisor&#8217;s impact on them.  Assuming that ESX increases the working set by 256 KB, this graph shows the decrease cache hit rate due to the contributions of the hypervisor.  Notice that with very small caches and very small application working sets, the cache hit rate suffers greatly due to the addition of even 256 KB of virtualization code.  And even up to 2 MB, a 10% decrease in cache hit rate can be seen in some applications.  With a 256 KB contribution by the kernel, cache hit rates do not change significantly with cache sizes of 4 MB and beyond.</p>
<p>In some cases a 10% improvement in cache hit rate can double application throughput.  This means that a doubling of cache size can profoundly effect the performance of virtual applications as compared to native.  Given ESX&#8217;s small contribution to the working set, you can see why we at VMware recommend that customers run their performance-intensive workloads on CPUs with 4 MB caches or larger.</p>
]]></content:encoded>
			<wfw:commentRss>http://vpivot.com/2009/09/16/newer-processors-and-virtualization-performance/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

