• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 448
  • Last Modified:

Set Minimum and Mximum Server memory in SQL 2005

Hello experts,

I have SQL 2005 server with 5 instances, running on W2K3 OS and 6GB RAM (AWE enabled). How should i go about setting min and max server memory setting.
In one of the instances when I executed the following query, I got the results as shown in emded image.
SELECT   SUM(virtual_memory_reserved_kb) / 1024 AS [virtual memory allocated, MB],   SUM(virtual_memory_committed_kb) / 1024 AS [virtual memory committed, MB],      SUM(awe_allocated_kb) / 1024 AS [AWE allocated, Mb]  FROM      sys.dm_os_memory_clerks

 Screenshot
It says AWE allocated mem (mb) is 3202 whereas virtual memory allocated is 2611 MB.

Is this because I have set min and max mem as follows.
 Scsreenshot 1
Please advise, what is the best practice to set these options.

Thanks and Regards
0
goprasad
Asked:
goprasad
1 Solution
 
idmedellinCommented:
All the instances are for production, or some of them are for other purposes, like test or development?
0
 
EL_BarbadoCommented:
Hi,

Virtual Memory allocated and AWE memory Allocated are not additive. Under your scenario, your AWE memory should not go over what you have as Maximum Server memory.

Best practice is take your maximum server memory (6 GB) and reduce it by at least 1 GB. This gives you 5 GB to work with. Then, assuming all SQL instances are equal in terms of priority, you slice up the remaining memory among the instances. So, on each instance you should allocate 1024 MB of Maximum. If the instances are not equal then you can allocate memory differently but only up to 5GB in total.

Hope this helps
0
 
goprasadAuthor Commented:
Hi El Barbado,

I have 5 x instances - therefore allocate 1024 max in maximum server memory settings to each of these instances? Is this is correct?
0
 
Daniel_PLDB Expert/ArchitectCommented:
If you don't want to prioritize any of them yes, set up 1024 MB as max server memory for each instance.
0
 
EL_BarbadoCommented:
Yes, 1024 MB for each instance is correct In your particular situation. Please understand that this amount of memory is not ideal unless each instance is only used lightly by a few users.  Memory is cheap these days. Consider upgrading memory.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now