dbTalk Databases Forums  

x64 SQL Server2008 R2 on Windows Server 2008 R2 - Max Memory usagevalue not honoured?

microsoft.public.sqlserver.server microsoft.public.sqlserver.server


Discuss x64 SQL Server2008 R2 on Windows Server 2008 R2 - Max Memory usagevalue not honoured? in the microsoft.public.sqlserver.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JimLad
 
Posts: n/a

Default x64 SQL Server2008 R2 on Windows Server 2008 R2 - Max Memory usagevalue not honoured? - 07-04-2011 , 08:57 AM






Hi,

I have been told by someone who ought to know that setting Max Memory
on a SQL server instance through the Properties-->Memory tab in SSMS
has no effect in the above environment. Is this correct?

We have a Windows 2008 R2 box with IIS 7.5 and SQL 2008 R2 x64 on it
and I want to ensure SQL doesn't grab all the memory leaving IIS and
the .NET service struggling. Do I need to do anything or is the memory
management up to the task these days?

Cheers,

James

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: x64 SQL Server2008 R2 on Windows Server 2008 R2 - Max Memory usage value not honoured? - 07-04-2011 , 12:37 PM






JimLad (jamesdbirch (AT) yahoo (DOT) co.uk) writes:
Quote:
I have been told by someone who ought to know that setting Max Memory
on a SQL server instance through the Properties-->Memory tab in SSMS
has no effect in the above environment. Is this correct?
No. "Max Server Memory" is always honored. Alhtough what you really control
is the size of the buffer cache, and SQL Server may use memory outside of
that. But that is usually not a lot.

Although, myself, I always use sp_configure directly, but that's the same
thing.

Quote:
We have a Windows 2008 R2 box with IIS 7.5 and SQL 2008 R2 x64 on it
and I want to ensure SQL doesn't grab all the memory leaving IIS and
the .NET service struggling. Do I need to do anything or is the memory
management up to the task these days?
Even if SQL Server is the only process on the machine, it's usually better
to limit the memory anyway, even if it theory it should not be necessary.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Reply With Quote
  #3  
Old   
Jeroen Mostert
 
Posts: n/a

Default Re: x64 SQL Server2008 R2 on Windows Server 2008 R2 - Max Memoryusage value not honoured? - 07-05-2011 , 12:31 AM



On 2011-07-04 19:37, Erland Sommarskog wrote:
Quote:
Even if SQL Server is the only process on the machine, it's usually better
to limit the memory anyway, even if it theory it should not be necessary.

You'll have to elaborate on that one, Erland. I don't recall seeing this in
any recommendation anywhere, and frankly I don't see why this is useful.
I've never had a server where auto-managed memory was a problem, except of
course the ones running Analysis Services and other memory hogs (for which
the setting is intended).

--
J.

Reply With Quote
  #4  
Old   
Jeroen Mostert
 
Posts: n/a

Default Re: x64 SQL Server2008 R2 on Windows Server 2008 R2 - Max Memoryusage value not honoured? - 07-05-2011 , 01:25 AM



On 2011-07-04 19:37, Erland Sommarskog wrote:
Quote:
JimLad (jamesdbirch (AT) yahoo (DOT) co.uk) writes:
I have been told by someone who ought to know that setting Max Memory
on a SQL server instance through the Properties-->Memory tab in SSMS
has no effect in the above environment. Is this correct?

No. "Max Server Memory" is always honored. Alhtough what you really control
is the size of the buffer cache, and SQL Server may use memory outside of
that. But that is usually not a lot.

Compared to the buffer pool it's not a lot, but it's not so small you can
ignore it if you're going to play around with the memory settings for a
reason.
http://blogs.technet.com/b/askperf/a...y-need-it.aspx
contains a detailed breakdown of the memory SQL Server uses aside from the
buffer pool -- along with some ideas of why you might want to limit max
server memory if you're running any sort of other application on the machine
(which still doesn't negate my observation that not setting it works just
fine if no significant other applications are present).

--
J.

Reply With Quote
  #5  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: x64 SQL Server2008 R2 on Windows Server 2008 R2 - Max Memory usage value not honoured? - 07-05-2011 , 03:22 AM



Jeroen Mostert (jmostert (AT) xs4all (DOT) nl) writes:
Quote:
You'll have to elaborate on that one, Erland. I don't recall seeing this
in any recommendation anywhere, and frankly I don't see why this is
useful. I've never had a server where auto-managed memory was a problem,
except of course the ones running Analysis Services and other memory
hogs (for which the setting is intended).
I have seen weird behaviours where the Lazywriter was taking a lot of CPU,
and which immediately went to rest when I set Max Server memory to 6 GB (on
an 8GB machine). Granted this was 32-bit SQL Server, but I also see my MVP
mates who are more into server configuration than I am to make the same
recommendation.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.