<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Does ASLR really hurt memory sharing in VMware vSphere?</title>
	<atom:link href="http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/</link>
	<description>Trends and insight into legal technology, infrastructure and strategic thinking.</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:59:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Matt Liebowitz</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/comment-page-1/#comment-204</link>
		<dc:creator>Matt Liebowitz</dc:creator>
		<pubDate>Tue, 15 Jun 2010 21:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1142#comment-204</guid>
		<description>There is a small overhead to using TPS in general as CPU must be used to scan for identical memory pages.  This is present whether using large pages or small.

ESX keeps track of identical pages that could be shared once large pages are broken up so the overhead to break up the pages and begin sharing is likely minimal.  These days with 6 and 8 core CPUs there is usually ample CPU resources available.

Since this blog post came out I&#039;ve written another one that helps clarify how TPS behaves when using Nehalem processors.  This post generated a lot of questions on TPS so I felt it was important to write another specifically on that topic.

http://blogs.kraftkennedy.com/index.php/2010/05/27/vmware-kb-clarifies-page-sharing-on-nehalem-processors/

Thanks for reading!

Matt
@mattliebowitz</description>
		<content:encoded><![CDATA[<p>There is a small overhead to using TPS in general as CPU must be used to scan for identical memory pages.  This is present whether using large pages or small.</p>
<p>ESX keeps track of identical pages that could be shared once large pages are broken up so the overhead to break up the pages and begin sharing is likely minimal.  These days with 6 and 8 core CPUs there is usually ample CPU resources available.</p>
<p>Since this blog post came out I&#8217;ve written another one that helps clarify how TPS behaves when using Nehalem processors.  This post generated a lot of questions on TPS so I felt it was important to write another specifically on that topic.</p>
<p><a href="http://blogs.kraftkennedy.com/index.php/2010/05/27/vmware-kb-clarifies-page-sharing-on-nehalem-processors/" rel="nofollow">http://blogs.kraftkennedy.com/index.php/2010/05/27/vmware-kb-clarifies-page-sharing-on-nehalem-processors/</a></p>
<p>Thanks for reading!</p>
<p>Matt<br />
@mattliebowitz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sbrown23</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/comment-page-1/#comment-203</link>
		<dc:creator>sbrown23</dc:creator>
		<pubDate>Tue, 15 Jun 2010 19:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1142#comment-203</guid>
		<description>Matt - you mentioned TPS will break up large pages on a Nehalem system when memory is overcommitted.  What kind of overhead is there from the process of breaking up the large 2MB pages into 4KB pages?   I assume there must be some impact to performance from that process.</description>
		<content:encoded><![CDATA[<p>Matt &#8211; you mentioned TPS will break up large pages on a Nehalem system when memory is overcommitted.  What kind of overhead is there from the process of breaking up the large 2MB pages into 4KB pages?   I assume there must be some impact to performance from that process.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Liebowitz</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/comment-page-1/#comment-174</link>
		<dc:creator>Matt Liebowitz</dc:creator>
		<pubDate>Thu, 13 May 2010 13:14:43 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1142#comment-174</guid>
		<description>Robert,

I don&#039;t think TPS is becoming useless.  TPS still works correctly when you overcommitt memory, which is when you really need it to work in the first place.  And as this blog post showed I wasn&#039;t able to see any measurable difference with the ASLR feature of modern operating systems.

I&#039;m confident VMware will continue to improve TPS and it will remain a viable and important feature.

Matt
@mattliebowitz</description>
		<content:encoded><![CDATA[<p>Robert,</p>
<p>I don&#8217;t think TPS is becoming useless.  TPS still works correctly when you overcommitt memory, which is when you really need it to work in the first place.  And as this blog post showed I wasn&#8217;t able to see any measurable difference with the ASLR feature of modern operating systems.</p>
<p>I&#8217;m confident VMware will continue to improve TPS and it will remain a viable and important feature.</p>
<p>Matt<br />
@mattliebowitz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/comment-page-1/#comment-172</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Thu, 13 May 2010 00:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1142#comment-172</guid>
		<description>So... TPS is becaming useless (with new processores and Modern OSs)... More marketing tha technical feature...</description>
		<content:encoded><![CDATA[<p>So&#8230; TPS is becaming useless (with new processores and Modern OSs)&#8230; More marketing tha technical feature&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Virtualization Short Take #39 &#171; #EMCworld 2010</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/comment-page-1/#comment-165</link>
		<dc:creator>Virtualization Short Take #39 &#171; #EMCworld 2010</dc:creator>
		<pubDate>Fri, 07 May 2010 19:06:46 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1142#comment-165</guid>
		<description>[...] impact on VMware&#8217;s transparent page sharing (TPS). Matt Liebowitz decided to test it and posted the results of his testing. Turns out that&#8212;right now, anyway&#8212;there is no measurable difference in memory savings [...]</description>
		<content:encoded><![CDATA[<p>[...] impact on VMware&#8217;s transparent page sharing (TPS). Matt Liebowitz decided to test it and posted the results of his testing. Turns out that&#8212;right now, anyway&#8212;there is no measurable difference in memory savings [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: #EMCworld 2010 &#187; Virtualization Short Take #39</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/comment-page-1/#comment-163</link>
		<dc:creator>#EMCworld 2010 &#187; Virtualization Short Take #39</dc:creator>
		<pubDate>Wed, 05 May 2010 22:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1142#comment-163</guid>
		<description>[...] impact on VMware&#8217;s transparent page sharing (TPS). Matt Liebowitz decided to test it and posted the results of his testing. Turns out that&#8212;right now, anyway&#8212;there is no measurable difference in memory savings [...]</description>
		<content:encoded><![CDATA[<p>[...] impact on VMware&#8217;s transparent page sharing (TPS). Matt Liebowitz decided to test it and posted the results of his testing. Turns out that&#8212;right now, anyway&#8212;there is no measurable difference in memory savings [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Liebowitz</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/comment-page-1/#comment-161</link>
		<dc:creator>Matt Liebowitz</dc:creator>
		<pubDate>Tue, 04 May 2010 13:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1142#comment-161</guid>
		<description>Didier,

VMkernel swap shouldn&#039;t be affected when using large pages.  That said, swap should only kick in when memory is already scarce, so at that point the large pages would already be broken up into smaller pages and would be shared.  The same is true for ballooning, though there are cases where ballooning could occur even without memory being scarce (such as when using memory limits).

I hope people aren&#039;t getting the impression that large pages are a bad thing.  Some tests have shown that workloads may perform better even when the guest OS doesn&#039;t support large pages natively. ESX will break up the large pages only when memory has been overcommitted so there isn&#039;t much of a need to proactively disable the use of large pages.

Hope this helps you and others who are wondering about this.

Matt
@mattliebowitz</description>
		<content:encoded><![CDATA[<p>Didier,</p>
<p>VMkernel swap shouldn&#8217;t be affected when using large pages.  That said, swap should only kick in when memory is already scarce, so at that point the large pages would already be broken up into smaller pages and would be shared.  The same is true for ballooning, though there are cases where ballooning could occur even without memory being scarce (such as when using memory limits).</p>
<p>I hope people aren&#8217;t getting the impression that large pages are a bad thing.  Some tests have shown that workloads may perform better even when the guest OS doesn&#8217;t support large pages natively. ESX will break up the large pages only when memory has been overcommitted so there isn&#8217;t much of a need to proactively disable the use of large pages.</p>
<p>Hope this helps you and others who are wondering about this.</p>
<p>Matt<br />
@mattliebowitz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PiroNet</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/comment-page-1/#comment-160</link>
		<dc:creator>PiroNet</dc:creator>
		<pubDate>Tue, 04 May 2010 09:52:10 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1142#comment-160</guid>
		<description>Hi Matt,
Excellent post!

&gt;Transparent Page Sharing isn’t able to share large 
&gt;pages

What about swapping which is one of the three (so far) solution to free up memory when overcommiting?

Does swapping happen in 2MB blocks as well or does vSphere split it off in 4KB chunks or simply vSphere doesn&#039;t swapp at all?

Thx,
Didier</description>
		<content:encoded><![CDATA[<p>Hi Matt,<br />
Excellent post!</p>
<p>&gt;Transparent Page Sharing isn’t able to share large<br />
&gt;pages</p>
<p>What about swapping which is one of the three (so far) solution to free up memory when overcommiting?</p>
<p>Does swapping happen in 2MB blocks as well or does vSphere split it off in 4KB chunks or simply vSphere doesn&#8217;t swapp at all?</p>
<p>Thx,<br />
Didier</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Fretwell</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/comment-page-1/#comment-159</link>
		<dc:creator>Ian Fretwell</dc:creator>
		<pubDate>Sat, 01 May 2010 09:55:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1142#comment-159</guid>
		<description>Hi Matt,

Many thanks for this - the CPU is an Athlon II X4 (whitebox system at home) so you&#039;re probably right. I&#039;m not actually running out of memory so I&#039;ll follow you&#039;re advice and leave things as they are.

Thanks again,

Ian.</description>
		<content:encoded><![CDATA[<p>Hi Matt,</p>
<p>Many thanks for this &#8211; the CPU is an Athlon II X4 (whitebox system at home) so you&#8217;re probably right. I&#8217;m not actually running out of memory so I&#8217;ll follow you&#8217;re advice and leave things as they are.</p>
<p>Thanks again,</p>
<p>Ian.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Liebowitz</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/comment-page-1/#comment-158</link>
		<dc:creator>Matt Liebowitz</dc:creator>
		<pubDate>Fri, 30 Apr 2010 01:25:45 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1142#comment-158</guid>
		<description>Hey Ian,

I suspect that you&#039;re not actually seeing a problem with ASLR.  I assume you&#039;re using modern processors like an Intel Nehalem?  If that is the case, what you&#039;re seeing is most likely expected and normal.

Intel Nehalem and AMD Barcelona/Shanghai (among others) use large memory pages (2MB) as opposed to small pages (4K).  Transparent Page Sharing isn&#039;t able to share large pages, so memory sharing essentially doesn&#039;t occur.  It sounds like this is a problem but it is actually expected behavior and isn&#039;t broken.

When you reach the point where you&#039;ve overcommited memory (assign more RAM to VMs than is physically available), ESX will break up those large memory pages into small pages and begin to share them.  At that point memory sharing will occur normally.  You can force this behavior all the time instead by changing the advanced setting Mem.AllocGuestLargePage to 0.  You can then reboot your guest and memory sharing will occur almost immediately.

Assuming this is your issue (and I suspect it is if the server is relatively new), I wouldn&#039;t rush to enable this setting. The behavior you&#039;re seeing is normal and isn&#039;t broken, and memory sharing will kick in when you overcommit and actually need it.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Hey Ian,</p>
<p>I suspect that you&#8217;re not actually seeing a problem with ASLR.  I assume you&#8217;re using modern processors like an Intel Nehalem?  If that is the case, what you&#8217;re seeing is most likely expected and normal.</p>
<p>Intel Nehalem and AMD Barcelona/Shanghai (among others) use large memory pages (2MB) as opposed to small pages (4K).  Transparent Page Sharing isn&#8217;t able to share large pages, so memory sharing essentially doesn&#8217;t occur.  It sounds like this is a problem but it is actually expected behavior and isn&#8217;t broken.</p>
<p>When you reach the point where you&#8217;ve overcommited memory (assign more RAM to VMs than is physically available), ESX will break up those large memory pages into small pages and begin to share them.  At that point memory sharing will occur normally.  You can force this behavior all the time instead by changing the advanced setting Mem.AllocGuestLargePage to 0.  You can then reboot your guest and memory sharing will occur almost immediately.</p>
<p>Assuming this is your issue (and I suspect it is if the server is relatively new), I wouldn&#8217;t rush to enable this setting. The behavior you&#8217;re seeing is normal and isn&#8217;t broken, and memory sharing will kick in when you overcommit and actually need it.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

