<?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>Hypervisor.fr &#187; ballooning</title>
	<atom:link href="http://www.hypervisor.fr/?feed=rss2&#038;tag=ballooning" rel="self" type="application/rss+xml" />
	<link>http://www.hypervisor.fr</link>
	<description>French Bare-Metal weblog</description>
	<lastBuildDate>Wed, 26 Jun 2024 22:42:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hypervisor Wars : Core Parking GreenbullshIT</title>
		<link>http://www.hypervisor.fr/?p=3037</link>
		<comments>http://www.hypervisor.fr/?p=3037#comments</comments>
		<pubDate>Sat, 04 Jun 2011 23:46:34 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[ballooning]]></category>
		<category><![CDATA[Bullshit]]></category>
		<category><![CDATA[DPM]]></category>
		<category><![CDATA[swapping]]></category>
		<category><![CDATA[TPS]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=3037</guid>
		<description><![CDATA[Il y a quelques semaines, Microsoft a posté sur le TechNet Edge une série de vidéos au titre pour le moins évocateur : Virtualization Jump Start. Le but étant d&#8217;enfumer les ignorants avec une petite mise en scène hautement propagandesque qui rappelle celle des impayables guignols de la virtualization.

L’initiative pourrait rester valable si elle n&#8217;était pas gavée de gros morceaux de bullshit comme ce magnifique [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Il y a quelques semaines, Microsoft a posté sur le TechNet Edge une série de vidéos au titre pour le moins évocateur : <a href="http://technet.microsoft.com/en-us/edge/ff832960.aspx?category=Jump%20Start" target="_blank">Virtualization Jump Start</a>. Le but étant d&#8217;enfumer les ignorants avec une petite mise en scène hautement propagandesque qui rappelle celle des impayables <a href="http://www.hypervisor.fr/?p=701" target="_blank">guignols de la virtualization</a>.</p>
<p><iframe frameborder="0" width="480" height="270" src="http://www.dailymotion.com/embed/video/xj3wq2?logo=0&#038;hideInfos=1"></iframe><br />
L’initiative pourrait rester valable si elle n&#8217;était pas gavée de gros morceaux de bullshit comme ce magnifique tableau comparatif :</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/parking/SS-2011-05-06_02.16.05.png" title=" " rel="lightbox[3037]"><img class="size-medium wp-image-3077 aligncenter" title=" " src="http://files.hypervisor.fr/img/parking/SS-2011-05-06_02.16.05.png" alt="" width="300" height="224" /></a></p>
<p style="text-align: center;">
<p style="text-align: justify;">Notre <a href="http://bullshito.net/wp-content/uploads/2010/01/bullshit-o-meter.jpg" target="_blank">bullshit-o-meter</a>, déjà dans le rouge, a totalement grillé sur <a href="http://technet.microsoft.com/en-us/edge/virtualization-jump-start-02-differentiating-microsoft-vmware" target="_blank">la séquence comparative Core Parking vs DPM (extrait ci-dessus)</a>. Notre brave Symon (&#8220;Microsoft Technical Evangelist&#8221; en chemise bleu) semble persuadé qu&#8217;un serveur allumé consomme autant qu&#8217;un serveur éteint (où l&#8217;inverse). <a href="http://www.microsoft.com/windowsserver2008/en/us/r2-management.aspx" target="_blank">Et pourtant</a> :</p>
<blockquote>
<p style="text-align: left;">The Core Parking feature allows Windows Server 2008 R2 to consolidate processing onto the fewest number of possible processor cores, and suspends inactive processor cores</p>
</blockquote>
<p style="text-align: justify;">Même si le CPU représente une part non négligeable de la consommation d&#8217;un serveur, il n&#8217;est question en moyenne que d&#8217;<strong>1/4 à 1/3 de la consommation totale</strong>. Mais <a href="http://4sysops.com/archives/scvmm-2012-review-part-4-bare-metal-configuration-dynamic-power-optimization/" target="_blank">quelque chose nous dit</a> que M$ a fini par s&#8217;en apercevoir, ils n&#8217;ont juste pas encore prévenu Symon. Néanmoins, pour pouvoir consolider au maximum il faut un peu mieux que <a href="http://www.vcritical.com/2011/04/hyper-v-dynamic-memory-not-quite-ready-to-demo/" target="_blank">Dynamic Memory</a>&#8230;</p>
<p style="text-align: justify;">Démonstration avec un cluster, hébergeant 66 VM (W2K3 &#8211; 2Go), composé de 12 serveurs bi Xeon 5345 + 8Go de RAM sous ESXi 4.1 build 348481. Les VM de ce cluster devant etre dispo à 100% entre 8h et 19h, <a href="http://www.vmware.com/files/pdf/Distributed-Power-Management-vSphere.pdf" target="_blank">Distributed Power Management</a> est programmé dans vCenter pour s&#8217;activer à 20h et se désactiver à 7h (hors WE). Résultat, <strong>9 serveurs sur 12 OFF</strong> (pour Symon, ça veut plus d’électricité du tout) en heures creuses, c&#8217;est à dire 60% du temps dans notre cas :</p>
<p style="text-align: left;"><a href="http://files.hypervisor.fr/img/parking/Screenshot-2011-06-03_23.22.19.png" title=" " rel="lightbox[3037]"><img class="aligncenter size-medium wp-image-3065" title=" " src="http://www.hypervisor.fr/wp-content/uploads/2011/06/Screenshot-2011-06-03_23.22.19-300x114.png" alt="" width="300" height="114" /></a><a href="http://files.hypervisor.fr/img/parking/Screenshot-2011-06-03_23.14.17.png" title=" " rel="lightbox[3037]"><img class="aligncenter size-medium wp-image-3066" title=" " src="http://www.hypervisor.fr/wp-content/uploads/2011/06/Screenshot-2011-06-03_23.14.17-300x150.png" alt="" width="300" height="150" /></a>Evidemment, impossible d&#8217;atteindre ce taux de consolidation hallucinant de 600% sans l&#8217;aide de <a href="http://www.vmware.com/files/pdf/techpaper/vsp_41_perf_memory_mgmt.pdf" target="_blank">TPS, Ballooning, Memory compression et Hypervisor swapping</a> :</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/parking/Screenshot-2011-06-03_23.43.09.png" title=" " rel="lightbox[3037]"><img class="aligncenter size-full wp-image-3095" title=" " src="http://www.hypervisor.fr/wp-content/uploads/2011/06/Screenshot-2011-06-03_23.43.09.png" alt="" width="486" height="266" /></a></p>
<p style="text-align: center;">
<p style="text-align: left;">Ça, c&#8217;est du GreenIT et <a href="http://www.hypervisor.fr/?p=317" target="_blank">c&#8217;est dispo depuis 2008</a> !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=3037</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Super Size my VM</title>
		<link>http://www.hypervisor.fr/?p=2775</link>
		<comments>http://www.hypervisor.fr/?p=2775#comments</comments>
		<pubDate>Tue, 29 Mar 2011 01:32:40 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[Test]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[ballooning]]></category>
		<category><![CDATA[memory overcommit]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=2775</guid>
		<description><![CDATA[ESX ignore totalement la nature et l&#8217;importance du contenu des pages de vos VM (il connait uniquement les statistiques d&#8217;utilisation), mais il peut faire appel au driver qui controle le ballooning &#8220;In-Guest&#8221; pour forcer le &#8220;Guest OS&#8221; à liberer des pages disponibles ou à deplacer des pages peut ou pas utilisées dans le swap du [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">ESX ignore <strong>totalement </strong>la nature et l&#8217;importance du contenu des pages de vos VM (il connait uniquement les statistiques d&#8217;utilisation), mais il peut faire appel au driver qui controle le ballooning &#8220;In-Guest&#8221; pour forcer le &#8220;Guest OS&#8221; à liberer des pages disponibles ou à deplacer des pages peut ou pas utilisées dans le swap du &#8220;Guest OS&#8221;. Cela fonctionne très bien <strong>seulement si la VM à le temps d&#8217;effectuer cette opération</strong>. Ainsi, lors d&#8217;une forte contention meme brève, ESX n&#8217;attendra pas que la VM &#8220;rende&#8221; des pages et commencera à compresser (si possible et uniquement à partir de la version 4.1) puis swapper <strong>aléatoirement </strong>des pages vers le fichier de swap de la VM (potentiellement catastrophique pour les performances) :</p>
<p style="text-align: center;"><a href="http://hypervisor.free.fr/img/memory_contention.png" title="memory_contention" rel="lightbox[2775]"><img class="aligncenter size-full wp-image-2801" title="memory_contention" src="http://www.hypervisor.fr/wp-content/uploads/2011/03/memory_contention.png" alt="" width="496" height="259" /></a><em><span style="font-size: x-small;">(1-contention rapide / 2-contention lente)</span></em></p>
<p style="text-align: justify;">De plus, comme indiqué dans le <a href="http://pubs.vmware.com/vsphere-esx-4-1/resmgmt/r_overhead_memory_on_virtual_machines.html" target="_blank">Resource Management Guide</a>, plus la VM est riche en vCPU et en vRAM, plus elle imposera un overhead important au VMkernel. Cet overhead est réservé et donc totalement &#8220;perdu&#8221;. Il ne sera pas non plus soumis aux differents mécanismes de récupération d&#8217;ESX (Transparent Page Sharing &gt; Memory Idle Tax/Ballooning &gt; Memory Compression &gt; Hypervisor Swapping).</p>
<p style="text-align: justify;">On ne parle que d&#8217;une centaine de Mo pour une VM avec 1 vCPU et 1Go de vRAM, mais un petit one-liner de PowerCLI nous permet de savoir de combien on parle pour une infra de plus de 1200 VM :</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #008080; font-style: italic;">-ForegroundColor</span> Red <span style="color: #008080; font-style: italic;">-BackgroundColor</span> Yellow $<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>math<span style="color: #000000;">&#93;</span>::round<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>Get<span style="color: pink;">-</span>View <span style="color: pink;">-</span>ViewType virtualmachine <span style="color: #008080; font-style: italic;">-Property</span> Summary<span style="color: pink;">,</span>Runtime<span style="color: pink;">|?</span><span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.runtime.PowerState <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;poweredOn&quot;</span><span style="color: #000000;">&#125;</span><span style="color: pink;">|</span>select <span style="color: #008080; font-style: italic;">-ExpandProperty</span> Summary<span style="color: pink;">|</span>select <span style="color: #008080; font-style: italic;">-ExpandProperty</span> Runtime<span style="color: pink;">|</span>Measure<span style="color: pink;">-</span>Object <span style="color: #008080; font-style: italic;">-Sum</span> <span style="color: #008080; font-style: italic;">-Property</span> MemoryOverhead<span style="color: #000000;">&#41;</span>.sum<span style="color: pink;">/</span>1GB<span style="color: pink;">,</span><span style="color: #804000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: pink;">/</span> $<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>math<span style="color: #000000;">&#93;</span>::round<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>Get<span style="color: pink;">-</span>View <span style="color: pink;">-</span>ViewType virtualmachine <span style="color: #008080; font-style: italic;">-Property</span> Summary<span style="color: pink;">,</span>Runtime<span style="color: pink;">|?</span><span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.runtime.PowerState <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;poweredOn&quot;</span><span style="color: #000000;">&#125;</span><span style="color: pink;">|</span>select <span style="color: #008080; font-style: italic;">-ExpandProperty</span> Summary<span style="color: pink;">|</span>select <span style="color: #008080; font-style: italic;">-ExpandProperty</span> Config<span style="color: pink;">|</span>Measure<span style="color: pink;">-</span>Object <span style="color: #008080; font-style: italic;">-Sum</span> <span style="color: #008080; font-style: italic;">-Property</span> MemorySizeMB<span style="color: #000000;">&#41;</span>.sum<span style="color: pink;">/</span>1KB<span style="color: pink;">,</span><span style="color: #804000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></pre></div></div>

<p><a href="http://hypervisor.free.fr/img/MemoryOverhead.png" title="MemoryOverhead" rel="lightbox[2775]"><img class="aligncenter size-full wp-image-2779" title="MemoryOverhead" src="http://www.hypervisor.fr/wp-content/uploads/2011/03/MemoryOverhead.png" alt="" width="517" height="179" /></a></p>
<p>Presque 220Go d&#8217;overhead sur environ 3,8To de vRAM attribué, soit près de 6% !</p>
<p style="text-align: justify;">Il est donc <strong>nettement plus judicieux de bien determiner la taille de vRAM nécéssaire au </strong>&#8220;<strong>Guest OS</strong>&#8220;<strong> et de tailler au plus juste</strong> plutot que mettre une valeur trop large au risque de voir la VM en souffrir plutot que d&#8217;en bénéficier (idem pour les vCPU d&#8217;ailleurs).</p>
<p>A lire tous les soirs après s&#8217;etre brossé les dents : <a href="http://www.vmware.com/files/pdf/techpaper/vsp_41_perf_memory_mgmt.pdf" target="_blank">Understanding Memory Resource Management in VMware ESX 4.1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=2775</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>I love swapping</title>
		<link>http://www.hypervisor.fr/?p=2493</link>
		<comments>http://www.hypervisor.fr/?p=2493#comments</comments>
		<pubDate>Thu, 02 Dec 2010 08:15:12 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[Kb]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[ballooning]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=2493</guid>
		<description><![CDATA[Si vous pensez encore que désactiver le ballooning est la solution à vos problèmes de performances ou de gestion de mémoire, lisez le post de Frank : Disable ballooning?


Consultez aussi la liste des Advanced Memory Attributes pour avoir une idée des possibilités de tuning.
]]></description>
			<content:encoded><![CDATA[<p>Si vous pensez encore que désactiver le ballooning est la solution à vos problèmes de performances ou de gestion de mémoire, lisez le post de Frank : <a href="http://frankdenneman.nl/2010/11/disable-ballooning/" target="_blank">Disable ballooning?</a></p>
<p style="text-align: center;">
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/ballooning.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/ballooning.png" alt="" width="418" height="384" /></a></p>
<p style="text-align: left;">Consultez aussi la liste des <a href="http://pubs.vmware.com/vsp40u1_i/wwhelp/wwhimpl/js/html/wwhelp.htm#href=resmgmt/r_advanced_memory_attributes.html#1_24_8_7_8_1" target="_blank">Advanced Memory Attributes</a> pour avoir une idée des possibilités de tuning.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=2493</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
