<?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: The mysterious world of shmmax and shmall</title>
	<atom:link href="http://www.pythian.com/news/245/the-mysterious-world-of-shmmax-and-shmall/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/245/the-mysterious-world-of-shmmax-and-shmall/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Fri, 10 Feb 2012 13:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: What is shmmax, shmall, shmmni? Shared Memory Max &#124; Useful Stuff.</title>
		<link>http://www.pythian.com/news/245/the-mysterious-world-of-shmmax-and-shmall/#comment-629167</link>
		<dc:creator>What is shmmax, shmall, shmmni? Shared Memory Max &#124; Useful Stuff.</dc:creator>
		<pubDate>Fri, 04 Nov 2011 05:30:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/245/the-mysterious-world-of-shmmax-and-shmall#comment-629167</guid>
		<description>[...] mysterious setting has been explained pretty well here: and am reposting my findings since last time I dealt with these settings, I just solved my problem [...]</description>
		<content:encoded><![CDATA[<p>[...] mysterious setting has been explained pretty well here: and am reposting my findings since last time I dealt with these settings, I just solved my problem [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Setting shmmax, shmall oracle &#171; Just Do It. Now.</title>
		<link>http://www.pythian.com/news/245/the-mysterious-world-of-shmmax-and-shmall/#comment-507755</link>
		<dc:creator>Setting shmmax, shmall oracle &#171; Just Do It. Now.</dc:creator>
		<pubDate>Fri, 11 Feb 2011 08:27:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/245/the-mysterious-world-of-shmmax-and-shmall#comment-507755</guid>
		<description>[...] The mysterious world of shmmax and shmall  Over the Top Tales from the trenches. Motto: Bringing order to the chaos of every day DBA life. [...]</description>
		<content:encoded><![CDATA[<p>[...] The mysterious world of shmmax and shmall  Over the Top Tales from the trenches. Motto: Bringing order to the chaos of every day DBA life. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Dupuy</title>
		<link>http://www.pythian.com/news/245/the-mysterious-world-of-shmmax-and-shmall/#comment-412885</link>
		<dc:creator>Robert Dupuy</dc:creator>
		<pubDate>Wed, 10 Mar 2010 02:18:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/245/the-mysterious-world-of-shmmax-and-shmall#comment-412885</guid>
		<description>See this &quot;oracle validated configuration&quot; here: 

http://linux.oracle.com/pls/apex/f?p=102:2:4310916404894033::NO::P2_VC_ID:471</description>
		<content:encoded><![CDATA[<p>See this &#8220;oracle validated configuration&#8221; here: </p>
<p><a href="http://linux.oracle.com/pls/apex/f?p=102:2:4310916404894033::NO::P2_VC_ID:471" rel="nofollow">http://linux.oracle.com/pls/apex/f?p=102:2:4310916404894033::NO::P2_VC_ID:471</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Dupuy</title>
		<link>http://www.pythian.com/news/245/the-mysterious-world-of-shmmax-and-shmall/#comment-412883</link>
		<dc:creator>Robert Dupuy</dc:creator>
		<pubDate>Wed, 10 Mar 2010 02:16:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/245/the-mysterious-world-of-shmmax-and-shmall#comment-412883</guid>
		<description>Oracle has a certified system that has 8GB of physical RAM and 4TB SHMALL setting.

So, it is not, necessarily a &#039;recipe for paging hell&#039;.  From what I understand, it&#039;s just an upper limit.  

Using too much RAM, is a recipe for paging hell, but what do you want to happen, the system to crawl to a halt, or the system to completely stop working with errors.  Setting the limit lower, just means you will have the out of memory error.

The long term solution seems to be, don&#039;t use more memory than you need.

With that said, I have had all kinds of problems trying to set a large SGA without getting herky-jerky results on Linux.

But setting this limit lower as desribed in this article, did not change the results for me, and I suspect it isn&#039;t the answer.</description>
		<content:encoded><![CDATA[<p>Oracle has a certified system that has 8GB of physical RAM and 4TB SHMALL setting.</p>
<p>So, it is not, necessarily a &#8216;recipe for paging hell&#8217;.  From what I understand, it&#8217;s just an upper limit.  </p>
<p>Using too much RAM, is a recipe for paging hell, but what do you want to happen, the system to crawl to a halt, or the system to completely stop working with errors.  Setting the limit lower, just means you will have the out of memory error.</p>
<p>The long term solution seems to be, don&#8217;t use more memory than you need.</p>
<p>With that said, I have had all kinds of problems trying to set a large SGA without getting herky-jerky results on Linux.</p>
<p>But setting this limit lower as desribed in this article, did not change the results for me, and I suspect it isn&#8217;t the answer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don Turnblade</title>
		<link>http://www.pythian.com/news/245/the-mysterious-world-of-shmmax-and-shmall/#comment-404245</link>
		<dc:creator>Don Turnblade</dc:creator>
		<pubDate>Tue, 09 Feb 2010 23:13:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/245/the-mysterious-world-of-shmmax-and-shmall#comment-404245</guid>
		<description>Revisiting this question.  The original author left 4 GB of RAM for Linux and Cache.

Thus,  Total RAM - 4 GB RAM = SHMMAX   
   # As a percent of Physical Memory that is 100% * (1-4GB/Total)
And, SHMALL = SHMAX / PAGE_SIZE

So, for a 64 GB RAM, 64 bit system...
That is  64 GB - 4 GB RAM  = 60 GB SHMMAX
ANd, SHMALL = 60 GB / 4096 = 15 MB SHMALL

Any more than that cause paging hell as the Linux Kernel and Cache become involved in potential paging...

If I read this all right, the only adjustment is to make sure that the Linux kernal and cache fit inside that 4 GB.  If not make it larger and recompute.

If I have this right, then the basic reason for loading Physical RAM in the first place -- reducing the opportunity for paging to occur is met and maximized.  Did I get it right?</description>
		<content:encoded><![CDATA[<p>Revisiting this question.  The original author left 4 GB of RAM for Linux and Cache.</p>
<p>Thus,  Total RAM &#8211; 4 GB RAM = SHMMAX<br />
   # As a percent of Physical Memory that is 100% * (1-4GB/Total)<br />
And, SHMALL = SHMAX / PAGE_SIZE</p>
<p>So, for a 64 GB RAM, 64 bit system&#8230;<br />
That is  64 GB &#8211; 4 GB RAM  = 60 GB SHMMAX<br />
ANd, SHMALL = 60 GB / 4096 = 15 MB SHMALL</p>
<p>Any more than that cause paging hell as the Linux Kernel and Cache become involved in potential paging&#8230;</p>
<p>If I read this all right, the only adjustment is to make sure that the Linux kernal and cache fit inside that 4 GB.  If not make it larger and recompute.</p>
<p>If I have this right, then the basic reason for loading Physical RAM in the first place &#8212; reducing the opportunity for paging to occur is met and maximized.  Did I get it right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robby</title>
		<link>http://www.pythian.com/news/245/the-mysterious-world-of-shmmax-and-shmall/#comment-399489</link>
		<dc:creator>Robby</dc:creator>
		<pubDate>Thu, 21 Jan 2010 10:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/245/the-mysterious-world-of-shmmax-and-shmall#comment-399489</guid>
		<description>Dear Paul,

so, from the articel above, we summarized:
server 2 Quad Xeon, 16GB memory

shmmax = 17179869184 (16GB) more than this = hell paging

maximum amount of memory = shmall * pagesize
16GB = shmall * 4096 (default)
shmall = 16GB / 4096 = 4194304 (4MB)

is this right?

&quot;Making shmall larger than free RAM is a recipe for paging hell and much gnashing of teeth.&quot; -&gt; means shmall can be set to max 17179869184? more than that, hell paging?

&quot;Oracle recommends half the RAM, we pushed the envelope and chose 75% as 8 gigabytes of free for OS and cache is just wasteful.&quot; -&gt; recommends shmall or shmmax? if it&#039;s shmmax, why from the formula above i&#039;ve got shmall=4MB even2 farrrrrrrrrrrrrrrrrrrrr from half of memory (8GB)

from Oracle 10g Release 2 Linux x86 documentation
shmmax = Half the size of physical memory (in bytes)

Regards,

Robby
Junior DBA</description>
		<content:encoded><![CDATA[<p>Dear Paul,</p>
<p>so, from the articel above, we summarized:<br />
server 2 Quad Xeon, 16GB memory</p>
<p>shmmax = 17179869184 (16GB) more than this = hell paging</p>
<p>maximum amount of memory = shmall * pagesize<br />
16GB = shmall * 4096 (default)<br />
shmall = 16GB / 4096 = 4194304 (4MB)</p>
<p>is this right?</p>
<p>&#8220;Making shmall larger than free RAM is a recipe for paging hell and much gnashing of teeth.&#8221; -&gt; means shmall can be set to max 17179869184? more than that, hell paging?</p>
<p>&#8220;Oracle recommends half the RAM, we pushed the envelope and chose 75% as 8 gigabytes of free for OS and cache is just wasteful.&#8221; -&gt; recommends shmall or shmmax? if it&#8217;s shmmax, why from the formula above i&#8217;ve got shmall=4MB even2 farrrrrrrrrrrrrrrrrrrrr from half of memory (8GB)</p>
<p>from Oracle 10g Release 2 Linux x86 documentation<br />
shmmax = Half the size of physical memory (in bytes)</p>
<p>Regards,</p>
<p>Robby<br />
Junior DBA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://www.pythian.com/news/245/the-mysterious-world-of-shmmax-and-shmall/#comment-392527</link>
		<dc:creator>George</dc:creator>
		<pubDate>Mon, 14 Dec 2009 16:48:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/245/the-mysterious-world-of-shmmax-and-shmall#comment-392527</guid>
		<description>not 34 G, 32 G of RAM</description>
		<content:encoded><![CDATA[<p>not 34 G, 32 G of RAM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://www.pythian.com/news/245/the-mysterious-world-of-shmmax-and-shmall/#comment-392525</link>
		<dc:creator>George</dc:creator>
		<pubDate>Mon, 14 Dec 2009 16:47:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/245/the-mysterious-world-of-shmmax-and-shmall#comment-392525</guid>
		<description>what is potential harm of having shmmax too high? i noticed on my RAC system i have shmmax = 21474836480 while oracle recommends 
&quot;(4 GB - 1 byte), or half the size of physical memory (in bytes), whichever is lower&quot; - we have 34 G RAM. It is 11g and we switched to using hugepages, previously used AMM - upon oracle support recommendation.

thanks,
--george</description>
		<content:encoded><![CDATA[<p>what is potential harm of having shmmax too high? i noticed on my RAC system i have shmmax = 21474836480 while oracle recommends<br />
&#8220;(4 GB &#8211; 1 byte), or half the size of physical memory (in bytes), whichever is lower&#8221; &#8211; we have 34 G RAM. It is 11g and we switched to using hugepages, previously used AMM &#8211; upon oracle support recommendation.</p>
<p>thanks,<br />
&#8211;george</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A Chess</title>
		<link>http://www.pythian.com/news/245/the-mysterious-world-of-shmmax-and-shmall/#comment-378805</link>
		<dc:creator>A Chess</dc:creator>
		<pubDate>Sun, 11 Oct 2009 07:00:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/245/the-mysterious-world-of-shmmax-and-shmall#comment-378805</guid>
		<description>Very well written useful information.
Thanks much!</description>
		<content:encoded><![CDATA[<p>Very well written useful information.<br />
Thanks much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukas</title>
		<link>http://www.pythian.com/news/245/the-mysterious-world-of-shmmax-and-shmall/#comment-366109</link>
		<dc:creator>Lukas</dc:creator>
		<pubDate>Mon, 13 Jul 2009 10:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/245/the-mysterious-world-of-shmmax-and-shmall#comment-366109</guid>
		<description>Just had an interesting query from a client who is trying to increase SGA + PGA memory beyond 12GB on a system with 32GB. If he adds +1GB to any area, the instance is not starting up. Not only it&#039;s not starting, but it&#039;s also not giving any hints, errors or other clues what&#039;s wrong. Alert log just says &quot;Starting ORACLE instance (normal)&quot; and nothing more (it&#039;s 10.2.0.3 RAC).

It boiled down to the possibility that shmall is too small (3279547 ~ 12.5G). 

Thanks for the hint Paul!</description>
		<content:encoded><![CDATA[<p>Just had an interesting query from a client who is trying to increase SGA + PGA memory beyond 12GB on a system with 32GB. If he adds +1GB to any area, the instance is not starting up. Not only it&#8217;s not starting, but it&#8217;s also not giving any hints, errors or other clues what&#8217;s wrong. Alert log just says &#8220;Starting ORACLE instance (normal)&#8221; and nothing more (it&#8217;s 10.2.0.3 RAC).</p>
<p>It boiled down to the possibility that shmall is too small (3279547 ~ 12.5G). </p>
<p>Thanks for the hint Paul!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

