SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Basic Memory Question - > 2147483647 2g limit? Or.is it even enabled?


Basic Memory Question - > 2147483647 2g limit? Or.is it even enabled?

Author
Message
rmaggio
rmaggio
SSC Rookie
SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)

Group: General Forum Members
Points: 33 Visits: 87
I have a question regarding the memory settings. I have new installs of 64bit sql server, and when I just do a default install, the Properties > Memory settings have a panel that has a checkbox to use AWE to allocate memory, and then 2 numeric boxes below, one with zero and one with 2147483647. My question is, Are the 2 boxes with the numbers related to the AWE checkbox, and is this what's used to limit the memory allocation? The reason is that this particular box is a VMWare install, and has 32g of memory allocated. There are 4 instances of SQL Server running here. Can I limit the memory used by the 4 instances, or should I just leave it and let it take what it needs. There seems to be plenty available as the instances are separated for a variety of requirements, but performance/load isn't one of them. Or should I enable this feature and just set each instance to max out at something below 8g?
Thanks for any insight

Bob
Not a downstroke, fistpicker
MANU-J.
MANU-J.
SSCrazy
SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)

Group: General Forum Members
Points: 2928 Visits: 8766
You don't need to switch on AWE. However it is recommended you grant the SQL
service account the "Lock Pages in Memory" right (you can do this by going
to Start>Programs>Administrative Tools>Local Security Policy and expanding
Local Policies>User Rights Assignment). For more details see
http://blogs.msdn.com/slavao/archive/2005/11/15/493019.aspx

Also, to keep memory usage under control by each instance set max server memory parameter under sp_configure.

MJ
EdVassie
EdVassie
SSCertifiable
SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)

Group: General Forum Members
Points: 5806 Visits: 3866
It is important to set the maximum memory limit for 64-bit SQL Server. The memory reported as available to SQL Server includes the page file size, so if you have a page file then SQL Server will try to use it as part of its memory pool. You are then looking at what should be memory to memory transfers being disk to memory, which will badly hurt your performance.

When deciding how much memory to allocate to SQL Server, you must first take out what is needed by Windows, Anti-Virus, file cache, and other components that are always running. You can divide the rest up between your SQL instances. If they are all of the same importance, give them all the same memory. Otherwise give the most important instances the most memory.

Original author: SQL Server FineBuild 1-click install and best practice configuration of SQL Server 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005. 14 Mar 2017: now over 40,000 downloads.Disclaimer: All information provided is a personal opinion that may not match reality.Quote: When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist. - Archbishop Hélder Câmara
BobAtDBS
BobAtDBS
SSC-Addicted
SSC-Addicted (424 reputation)SSC-Addicted (424 reputation)SSC-Addicted (424 reputation)SSC-Addicted (424 reputation)SSC-Addicted (424 reputation)SSC-Addicted (424 reputation)SSC-Addicted (424 reputation)SSC-Addicted (424 reputation)

Group: General Forum Members
Points: 424 Visits: 364
I'd set the max on each instance to total up to about 2.5 gig less than the total RAM installed. On our 64 bit servers, (single instance) it seems that with max RAM set to 13.5 Gig the peak still gets up close to 16 Gig.

And I'd firmly echo the thought that 64 bit installs need the lock pages in memory setting for the account running SQL Server. Failing to do that on one machine left me with intermittant "slow to a crawl" episodes as windows decided to page out sql server from time to time.


Student of SQL and Golf, Master of Neither
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search