Solved

Memory configuration SQL Server 2005 on Windows 2003

Posted on 2008-10-04
2
965 Views
Last Modified: 2010-04-21
Hi,

I have a server with the following configuration and I need help to configure memory allocation on SQL Server 2005:
- Windows 2003 Server Standard Edition
- SQL Server 2005 Standard Edition]
- 4 Gb RAM
- This server will only work as a databse server. I have 2 others servers to the application.

I want to know what is the best configuration for maximum performance. How many memory I need to setup in minimum and maximum options and what about awe option.

Thanks in advance !

Pablo Braga
0
Comment
Question by:Pablo_Braga
2 Comments
 
LVL 4

Accepted Solution

by:
placebo69a earned 500 total points
ID: 22642051
The following is leeched from a nice article regarding these settings and others.
---------------------------------------------------------------------------------------------------------------------------
Min and Max Server Memory
There are three options in SQL Server that allow you to configure memory settings:

1. Min Server Memory
2. Max Server memory
3. AWE-Enabled


These are all advanced options, to view them using SP_CONFIGURE you must set SHOW ADVANCED OPTIONS to and reconfigure

Sp_configure show advanced options, 1;RECONFIGURE;

To enable the AWE Enabled setting you must the awe-enabled option to 1 (1 = enabled, 0 = disabled, 0 is the default)

SP_CONFIGURE awe enabled, 1;

You will need to restart SQL Server for the awe-enabled option to take affect.

To achieve dynamic memory allocation you can leave the default settings for both min and max server memory, this will allow SQL Server to acquire as much memory as it needs or you can change the default values to other limited. SQL Server dynamically acquires and releases memory between then amount specified in the Min and Max settings.

To ensure that SQL Server always has 512 megabytes if memory set the min server memory to 512:

SP_CONFIGURE min server memory, 512;RECONFIGURE;

The min option will ensure that SQL Server always has a certain amount of memory to use, thus preventing other applications from stealing all the memory. The Max setting can be used to ensure that memory is available for other applications and they dont have to wait for SQL Server to release it. As an example you may want to limit SQL Server to use 1GB of memory you can configure this setting as follows:

SP_CONFIGURE Max Server Memory, 1024;RECONFIGURE;

The min and max options only require you to RECONFIGURE you do not need to restart SQL Server.

Microsoft recommends that you allow SQL Server to configure it memory usage dynamically by leaving the min and max setting as defaults, which is ideal if you have dedicated server to SQL Server but not if you budgets are tight and you have utilise all your hardware. Just ensure you dont cause excessive paging by configuring these values incorrectly.

To force SQL Server to use a fixed amount of memory set both the Min and Max values to be the same. Again avoid excessive paging by not setting the fixed memory size too large for your system.
---------------------------------------------------------------------------------------------------------------------------

In more practical terms my answer would depend on the number of instances running on your SQL server where in general you want the sum of all the maximums to be slightly less than the machine's total RAM.
So for 1 instance - 3.5GB
For 2 instances - 1.75GB each
For 3 instances - 1.15GB each
For 4 instances - 875MB each
etc.
Let me know if this helps. :)
0
 

Author Closing Comment

by:Pablo_Braga
ID: 31503413
Thanks for you response. The article you send is very good and also will help me in this task.
Thank you !

Pablo
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Suggested Solutions

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how the fundamental information of how to create a table.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now