﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Craig Outcalt  / SQL Server Memory Management Explained / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 19:51:44 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>One thing that I don't quite understand...The last query in your article,----------------------------------------------WITH  MPAPlans        AS (SELECT  plan_handle                  , SUM(size_in_bytes) / 1024 / 8 AS numPages            FROM    sys.dm_exec_cached_plans            GROUP BY plan_handle)--------------------------------------------------The execution plans  should be mainly cached in buffer pool.  So I think the CTE actually sum all the cache bytes from buffer pool and MPA.  So the query result is not exactly how much space that the execution plans taking in MPA, right?</description><pubDate>Sat, 10 Nov 2012 19:16:26 GMT</pubDate><dc:creator>kurt.yang</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>One thing that I don't quite understand...The last query in your article</description><pubDate>Sat, 10 Nov 2012 19:03:38 GMT</pubDate><dc:creator>kurt.yang</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>Good stuff!  Though not necessarily related, I have found the practice of allocating a small hard drive space for OS and installed programs can come back to bite you after a server gets some age.  As we have installed updates to the C: drive, we have run into space issues, and in fact, have stopped installing updates.  I expect this will cause pagefile problems eventually if the problem keeps growing.  The 2GB of memory on the '03 server doesn't seem nearly as big as it did back when it was purchased!</description><pubDate>Mon, 10 Oct 2011 11:00:25 GMT</pubDate><dc:creator>Caruncles</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>Thanks for the article Craig.  I added this one to the briefcase.</description><pubDate>Tue, 20 Sep 2011 19:54:36 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>Thanks, I did reduce the max memory in SQL 2008R2sp1, and the current memory still grew back to 17GB. It appears that no matter what I put in for the max mem, we still go back into that paging issue. Yes, some users have said it is slow. The current mem stays pegged at 17.8 all day and even at night when no one is around.</description><pubDate>Tue, 20 Sep 2011 19:17:19 GMT</pubDate><dc:creator>jerome.landis</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>[quote][b]giles.middleton (9/20/2011)[/b][hr]I believe there's an error in the article, circa 4,700,000 K is not 4.7MB, it's 4.7GB."The Available counter will show how many KB are available to the host;400 MB is probably as low as you would want to see it. The image above shows ~4.7 MB in the Available counter"[/quote]Typo, thanks!I'll get it fixed.</description><pubDate>Tue, 20 Sep 2011 18:11:38 GMT</pubDate><dc:creator>SQLBOT</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>[quote][b]jerome.landis (9/20/2011)[/b][hr]Yes, i have the situation where the current memory is 17.8GB and the total mem is 16.6GB. How do i correct this situation?Question 2# on your screen shot, the page faults delta is 13891, I guess you had an issue before the screen shot? How did you fix or create the issue?[/quote]answer #1The gut instinct is to reduce the amount of memory that the machine is using (maybe give SQL Server less using the max server memory setting... check the page life expectancy on your instances).Either that or install more memory.  you are in a 'bad place' right now.  I would imagine someone has noticed some performance issues before now... although keep monitoring the situation... it could be that you were running dbcc checkdb and reindixing and updating statistics all at once on 3 different instances... check to see how much is system cache, how much SQL is using You'll discover your course as you discover more information.  Feel free to private message me if you have some other questions on the topic.#2.  Page faults are normal, but the screenshot was from my laptop, not a server.  I don't know what I was doing around then.  It looks like I was working hard! :)</description><pubDate>Tue, 20 Sep 2011 18:10:02 GMT</pubDate><dc:creator>SQLBOT</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>Yes, i have the situation where the current memory is 17.8GB and the total mem is 16.6GB. How do i correct this situation?Question 2# on your screen shot, the page faults delta is 13891, I guess you had an issue before the screen shot? How did you fix or create the issue?</description><pubDate>Tue, 20 Sep 2011 15:19:21 GMT</pubDate><dc:creator>jerome.landis</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>[quote][b]GregoryLPalmer (9/20/2011)[/b][hr]Nice article, I noticed one issue. You refer to the program you're running as process monitor in the article but I believe it is actually Process Explorer. Lost some time tracking down that issue since I haven't used either one in a long time. If you want to throw in a link, it is [url=http://technet.microsoft.com/nl-nl/sysinternals/bb896653%28en-us%29.aspx]here[/url] on the TechNet site. I also noticed that the interface has changed in the new version.[/quote]Good Catch Greg.Critical Error.I will update it laterYes I intended to say "Process Explorer".http://technet.microsoft.com/en-us/sysinternals/bb896653I almost always say the wrong one when I mean the other.:blush:</description><pubDate>Tue, 20 Sep 2011 11:25:49 GMT</pubDate><dc:creator>SQLBOT</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>[quote][b]Lucas Beris (9/20/2011)[/b][hr]Hi, great article! I have a doubt when you say:[quote]When the Current counter is larger than your Available counter it indicates that you are paging to disk[/quote] Isn´t part of the current memory already used by my process, that's why the available memory is lower? And maybe my process is not swapping to disk?Thanks,LKZ:[/quote]thanks for the question.I believe I meant to write :[quote]When the Current counter is larger than your Total counter[/quote]I'll need to edit the article later.</description><pubDate>Tue, 20 Sep 2011 11:21:49 GMT</pubDate><dc:creator>SQLBOT</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>This was excellent;  I appreciate your detailed sources, as well.</description><pubDate>Tue, 20 Sep 2011 08:12:29 GMT</pubDate><dc:creator>swellguy</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>Hi, great article! I have a doubt when you say:[quote]When the Current counter is larger than your Available counter it indicates that you are paging to disk[/quote] Isn´t part of the current memory already used by my process, that's why the available memory is lower? And maybe my process is not swapping to disk?Thanks,LKZ:</description><pubDate>Tue, 20 Sep 2011 07:19:57 GMT</pubDate><dc:creator>Lucas Beris</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>Can you clarify that current should be less than available?See mine...</description><pubDate>Tue, 20 Sep 2011 07:13:24 GMT</pubDate><dc:creator>Sailor</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>Good article. Thanks.</description><pubDate>Tue, 20 Sep 2011 04:29:15 GMT</pubDate><dc:creator>mohammed moinudheen</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>I believe there's an error in the article, circa 4,700,000 K is not 4.7MB, it's 4.7GB."The Available counter will show how many KB are available to the host;400 MB is probably as low as you would want to see it. The image above shows ~4.7 MB in the Available counter"</description><pubDate>Tue, 20 Sep 2011 02:17:52 GMT</pubDate><dc:creator>giles.middleton</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>[quote][b]stuart-717928 (9/20/2011)[/b][hr]I've just installed the latest version of Process Monitor 2.96 and cannot find an option to show the system information as you mention. Would you perhaps elaborate for us as there is no View option in this version of the program.[/quote]I linked the correct program in my post above.</description><pubDate>Tue, 20 Sep 2011 01:21:16 GMT</pubDate><dc:creator>GregoryLPalmer</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>I've just installed the latest version of Process Monitor 2.96 and cannot find an option to show the system information as you mention. Would you perhaps elaborate for us as there is no View option in this version of the program.</description><pubDate>Tue, 20 Sep 2011 01:18:22 GMT</pubDate><dc:creator>stuart-717928</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>Nice article, I noticed one issue. You refer to the program you're running as process monitor in the article but I believe it is actually Process Explorer. Lost some time tracking down that issue since I haven't used either one in a long time. If you want to throw in a link, it is [url=http://technet.microsoft.com/nl-nl/sysinternals/bb896653%28en-us%29.aspx]here[/url] on the TechNet site. I also noticed that the interface has changed in the new version.</description><pubDate>Tue, 20 Sep 2011 01:16:25 GMT</pubDate><dc:creator>GregoryLPalmer</dc:creator></item><item><title>RE: SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>Good article, Craig! Learnt a few new things today with respect to troubleshooting memory pressure on the server.Thank-you for taking the time out to compile your findings and write the article.</description><pubDate>Tue, 20 Sep 2011 00:22:17 GMT</pubDate><dc:creator>Nakul Vachhrajani</dc:creator></item><item><title>SQL Server Memory Management Explained</title><link>http://www.sqlservercentral.com/Forums/Topic1177620-1403-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/Memory/74867/"&gt;SQL Server Memory Management Explained&lt;/A&gt;[/B]</description><pubDate>Mon, 19 Sep 2011 21:55:26 GMT</pubDate><dc:creator>SQLBOT</dc:creator></item></channel></rss>