Re: Allocating more memory to sql server

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Andrew J. Kelly (sqlmvpnooospam_at_shadhawk.com)
Date: 11/23/04


Date: Tue, 23 Nov 2004 17:38:52 -0500

Are you sure you have Windows 2000 Advanced Server and not just Server? You
need Win2K Adv Server and SQL EE to use more than 4GB. Does the OS
recognize all 6GB? YOu should not use Task Manager to monitor memory for
SQL Server. Use Perfmon instead. There are counters for Target and total
memory used by SQL Server that will give a better idea of the actual usage.
You also need to restart SQL Server after enabling AWE for it to take
effect.

-- 
Andrew J. Kelly  SQL MVP
"Subbaiahd" <subbaiahd@hotmail.com> wrote in message 
news:%23734AQX0EHA.2676@TK2MSFTNGP12.phx.gbl...
> Thanks for the response, it helped to improve little bit.
> after i added the swith /3GB in boot.ini file and did configure sql server
> to awe enable. i see a little improvement from 1.65 GB to 2.65 GB.  In
> windows task manager total physical memory shows as memory usage 5766448KB 
> ,
> total memory usage is only 3GB, I setup sql server to a fixed memory of
> 4.5gb. Still 3GB memory is not being used, can you please suggest what is
> going wrong.
>
> Regards,
> Subbu.
>
> "Andrew J. Kelly" <sqlmvpnooospam@shadhawk.com> wrote in message
> news:%23Zd95l$zEHA.1188@tk2msftngp13.phx.gbl...
>> The PAE switch is so the OS can use more than 4GB but you still need to
> turn
>> on AWE in SQL Server for it to use more than the 2GB you are using now.
> You
>> want to add the /3GB switch in the boot.ini to allow SQL Server to use 
>> 3GB
>> of the directly addressable memory and then by turning on AWE you can use
> up
>> to the 6GB.  But when you turn it on you want to make sure you set the 
>> MAX
>> memory setting to about 5GB since AWE does not dynamically adjust memory
>> when AWE is on.  YOu also need Enterprise Edition of SQL Server or you 
>> can
>> only use 2GB of memory regardless of the settings.
>>
>>
>> http://www.sql-server-performance.com/awe_memory.asp   Using AWE Memory
>> http://www.support.microsoft.com/?id=321363     SQL Server 7 & 2000
> memory
>> usage
>> http://www.support.microsoft.com/?id=274750     Memory config
>> http://www.support.microsoft.com/?id=283037         Large Memory Support
> Is
>> Available in Windows 2000 (AWE)
>> http://www.support.microsoft.com/?id=811891 Can not use more than 2GB of
>> memory
>>
>>
>> -- 
>> Andrew J. Kelly  SQL MVP
>>
>>
>> "Subbaiahd" <subbaiahd@hotmail.com> wrote in message
>> news:usLu%23S%23zEHA.1296@TK2MSFTNGP10.phx.gbl...
>> >I have a Dell machine, which has 4 processors, 6 gb memory , and windows
>> > 2000 adv. I have a db size of 200GB.
>> >
>> > Perfmonitor always show memory in use is 2GB and allocated to sql 
>> > server
>> > is
>> > 1.7GB,  even if i run memory and disk intensive jobs i haven't seen the
>> > values above 2GB. If i see on windows exp. help i can see that the
> system
>> > has 6gb memory.  what happened to remaining memory why it was not
>> > recognised. I setup sql server to dynamic memory configuration. I know 
>> > i
>> > have to seyup in boot.ini switches to /pae, i did, still i didnt see it
>> > improved, any suggestion are welcome.
>> >
>> > Thanks,
>> > Subbu.
>> >
>> >
>>
>>
>
> 


Relevant Pages

  • Re: Performance problems -- need guidance on scaling
    ... Thanks for the update on the FT Catalog corruption, ... will use, up to a max of 512Mb, if this memory is available. ... a server with 512 MB of RAM and a resource_usage value of 5 ... the data, you could, detach your SQL 2000 mdf & ldf files ...
    (microsoft.public.sqlserver.fulltext)
  • Re: Memory Issues
    ... Exchange and SQL Server. ... you identified memory problems and large amounts of paging. ...
    (microsoft.public.sqlserver.setup)
  • Re: Performance difference between SQL Server 2005 and 2008
    ... Yes if the data pages are all in memory then there will be no physical I/O in this case. ... Andrew J. Kelly SQL MVP ... stored procedures run slower on new server. ... In order to make comparison more accurate, I picked query ...
    (microsoft.public.sqlserver.programming)
  • Re: SQL Server user 2GB> ram
    ... I use this script to test the memory usage: ... This script will consume all of the RAM that SQL Server can provide. ... > I have enable the AWE using the following scripts: ...
    (microsoft.public.sqlserver.setup)
  • Re: Memory issues with 64-bit SQL Server 2005 on 64-bit Win 2003 Clust
    ... The Paging File usage is due to how the large memory allocation APIs work. ... Swap files for SQL do not need to be more than about 2-4 GB regardless of physical memory on the box. ... If you use Performance Monitor to track actual paging activity, you will see very little on a properly tuned SQL Server. ...
    (microsoft.public.sqlserver.clustering)