<?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>The VMguy &#187; Memory</title>
	<atom:link href="http://vmguy.com/wordpress/index.php/archives/category/tipsandtricks/tatmemory/feed" rel="self" type="application/rss+xml" />
	<link>http://vmguy.com/wordpress</link>
	<description>Virtualization for the little guy</description>
	<lastBuildDate>Wed, 25 Jan 2012 03:27:34 +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>How to determine your vRAM footprint in vCenter</title>
		<link>http://vmguy.com/wordpress/index.php/archives/1692</link>
		<comments>http://vmguy.com/wordpress/index.php/archives/1692#comments</comments>
		<pubDate>Wed, 20 Jul 2011 10:00:21 +0000</pubDate>
		<dc:creator>The VMguy</dc:creator>
				<category><![CDATA[Memory]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[vsphere5]]></category>

		<guid isPermaLink="false">http://vmguy.com/wordpress/?p=1692</guid>
		<description><![CDATA[Unless you&#8217;ve been under a rock this past week you have probably heard about the licensing changes that VMware has delivered with vSphere 5.0.  Many of my customers have reacted negatively to the new licensing saying that they won&#8217;t fit into the new model.  When I asked my customers what their vRAM footprint was, most [...]]]></description>
			<content:encoded><![CDATA[<p>Unless you&#8217;ve been under a rock this past week you have probably heard about the <a href="http://www.vmware.com/products/vsphere/upgrade-center/licensing.html" target="_blank">licensing changes</a> that VMware has delivered with vSphere 5.0.  Many of my customers have reacted negatively to the new licensing saying that they won&#8217;t fit into the new model.  When I asked my customers what their vRAM footprint was, most customers could not begin to guess what they were using.  Here&#8217;s how you can tell from vCenter with a quick export into Excel and a few formula tweaks:</p>
<p>Go into your vCenter (if you have more than one, you will need to do this for each.)  Go into the &#8220;Hosts and Clusters&#8221; view.  On the left pane, select the vCenter Server itself.  On the right pane, select the &#8220;Virtual Machines&#8221; tab.  You can optionally click the &#8220;State&#8221; field title to sort by state.  You may also click the host field to sort VMs by the host names (I would recommend this if you have multiple clusters with multiple editions of ESXi).  You can then right-click the virtual machine titles and add the field for &#8220;Memory Size&#8221; as shown below.  Right-click right on the word &#8220;State&#8221; in the title of the column.</p>
<p><img class="aligncenter size-full wp-image-1693" title="Screen shot 2011-07-19 at 5.11.26 PM" src="http://www.vmguy.com/uploads/Screen-shot-2011-07-19-at-5.11.26-PM.png" alt="" width="296" height="196" /></p>
<p>Once the Memory field has been added (it will probably be far on the right), drag the filed so it&#8217;s just to the right of the &#8220;State&#8221; field.  Now go to the &#8220;File&#8221; Menu at the top of the vSphere client and select &#8220;File&#8221; then &#8220;Export&#8221; and then &#8220;Export List&#8221;.  Export the file selecting &#8220;Excel Workbook&#8221; as the file type.  Once exported, open the list in Excel.  In Excel, add a column to the right of the memory column like so:</p>
<p><img class="aligncenter size-medium wp-image-1694" title="Screen shot 2011-07-19 at 5.20.35 PM" src="http://www.vmguy.com/uploads/Screen-shot-2011-07-19-at-5.20.35-PM-300x83.png" alt="" width="300" height="83" /></p>
<p>Edit Cell D2 and put in this formula:   <em>=IF(B2=&#8221;Powered On&#8221;,VALUE(LEFT(C2,(LEN(C2)-3))),0)</em></p>
<p>Copy this formula down the entire column.  This checks to see if the VM state is powered on (you do not draw from your vRAM license if it is not).  It then removes the &#8220;MB&#8221; and converts the value to a numeric so you can sum them up.</p>
<p>Scroll down to the last row and edit the cell in the next empty row in the memory column to something like this:  <em>=ROUNDUP(SUM(D2:D65)/1024,0)</em></p>
<p><em></em> Where D65 is actually the last cell with the memory data in it, your row number will vary depending on how many VMs you have.</p>
<p>The ROUNDUP will round up the memory allocation (in case you have some VM&#8217;s with 4000MB allocated to them instead of 4096MB) and you need to divide the sum by 1024 to convert to GB of vRAM.</p>
<p>If you would rather run a PowerCLI script to gather the info, you can find a great article on how to do it <a href="http://www.virtu-al.net/2011/07/14/vsphere-5-license-entitlements/" target="_blank">here</a>.</p>
<p>I hope your number turns out ok.  If it does not, all is not lost.  There are ways to shrink your vRAM footprint so the impact of the licensing is not as bad.  If you would like me to have a look, email me, I can provide a service to see how much vRAM you have allocated but never use.  That may prolong the next license purchase a bit or perhaps soften the expense.  The new licensing does not need to always be negative, maybe we just need to learn how to size our VMs with the licensing in mind.</p>
<p>UPDATE: If you copy and paste these formulas into Excel, the ASCII is different for some reason.  Just backspace over the quotes (&#8220;) and readd them.  The quotes are what Excel has an issue with.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fvmguy.com%2Fwordpress%2Findex.php%2Farchives%2F1692';
  addthis_title  = 'How+to+determine+your+vRAM+footprint+in+vCenter';
  addthis_pub    = 'thevmguy';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://vmguy.com/wordpress/index.php/archives/1692/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>White Paper: RVI Performance</title>
		<link>http://vmguy.com/wordpress/index.php/archives/179</link>
		<comments>http://vmguy.com/wordpress/index.php/archives/179#comments</comments>
		<pubDate>Mon, 17 Nov 2008 23:01:12 +0000</pubDate>
		<dc:creator>The VMguy</dc:creator>
				<category><![CDATA[Memory]]></category>
		<category><![CDATA[EPT]]></category>
		<category><![CDATA[Extended Page Table]]></category>
		<category><![CDATA[Rapid Virtualization Indexing]]></category>
		<category><![CDATA[RVI]]></category>

		<guid isPermaLink="false">http://VMGUY.COM/wordpress/?p=179</guid>
		<description><![CDATA[Most people are going to read that title and say, &#34;Dave, what is RVI and why do I care?&#34; Here&#8217;s why: When a virtual machine is running, inside the VM, the operating system maps out pages of RAM.  The hypervisor then addresses and stores those pages in physical RAM.  The address in physical RAM typically [...]]]></description>
			<content:encoded><![CDATA[<p>Most people are going to read that title and say, &quot;Dave, what is RVI and why do I care?&quot;</p>
<p>Here&#8217;s why: When a virtual machine is running, inside the VM, the operating system maps out pages of RAM.  The hypervisor then addresses and stores those pages in physical RAM.  The address in physical RAM typically never matches the address that the VM&#8217;s operating system knows.  The hypervisor (specifically the virtual machine monitor or VMM) has to &quot;translate&quot; the fetching and updating of pages of RAM.  This puts an extra &quot;tax&quot; on the CPU and adds to virtualization overhead.  This can specifically be seen in workloads that perform very frequent page table updates.<span id="more-179"></span></p>
<p>The solution:  AMD and Intel continue to enhance their CPUs to offload some of the functions that virtualization provides in software today.  AMD and Intel started with their AMD-V and VT Extensions respectively and now continue on to the second generation of virtualization enhancements.  AMD&#8217;s is called <a href="http://www.amd.com/us-en/Processors/ProductInformation/0,,30_118_8796_15224,00.html" target="_blank">Rapid Virtualization Indexing (RVI)</a> and Intel calls theirs <a href="http://software.intel.com/en-us/articles/best-practices-for-paravirtualization-enhancements-from-intel-virtualization-technology-ept-and-vt-d" target="_blank">Extended Page Tables (EPT).</a> What these functions do is manage the mapping of virtual pages to physical pages for fetching and updating memory so that the CPU does not have to do it in software.</p>
<p>Last week, VMware published a very interesting white paper on RVI and how it performs on some of the more demanding workloads (Specifically SQL, XenApp, and Apache).  You can find all the details and the white paper <a href="http://www.vmware.com/resources/techresources/1079" target="_blank">here</a> .</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fvmguy.com%2Fwordpress%2Findex.php%2Farchives%2F179';
  addthis_title  = 'White+Paper%3A+RVI+Performance';
  addthis_pub    = 'thevmguy';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://vmguy.com/wordpress/index.php/archives/179/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

