Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Memory configuration SQL Server 2005 on Windows 2003

Posted on 2008-10-04
2
Medium Priority
?
978 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
placebo69a earned 2000 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

688 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