<?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; rvi</title>
	<atom:link href="http://vpivot.com/tag/rvi/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>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>

