Make SQL use more memory

This is a discussion on Make SQL use more memory within the ms-sqlserver forums in Microsoft SQL Server category; I've got a Windows 2003 Enterprise server with 8GB of memory running SQL 2005 Standard (32 bit). According to the documentation SQL can take up to the OS maximum amount of memory (64 GB with PAE). Well, SQL isn't taking more than about 1.5GB of memory, and the Buffer Cache Hit Ratio is up close to 100. How can I make SQL use more physical memory? Thanks Dylan...

Go Back   Database Forum > Microsoft SQL Server > ms-sqlserver

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 06-21-2007, 10:40 AM
Default Make SQL use more memory

I've got a Windows 2003 Enterprise server with 8GB of memory running
SQL 2005 Standard (32 bit). According to the documentation SQL can
take up to the OS maximum amount of memory (64 GB with PAE). Well,
SQL isn't taking more than about 1.5GB of memory, and the Buffer Cache
Hit Ratio is up close to 100. How can I make SQL use more physical
memory?

Thanks
Dylan

Reply With Quote
  #2  
Old 06-21-2007, 10:47 AM
Default Re: Make SQL use more memory

If the Buffer Cache Hit Ratio is 100, that means that SQL Server doesn't
need to take any more memory. Your queries are all using data that's
already cached. SQL Server will not take memory it doesn't need.


--

Adam Machanic
SQL Server MVP

Author, "Expert SQL Server 2005 Development"
http://www.apress.com/book/bookDisplay.html?bID=10220



"dylan" wrote in message
news:1182433233.008715.247450-at-o61g2000hsh.googlegr oups.com...
> I've got a Windows 2003 Enterprise server with 8GB of memory running
> SQL 2005 Standard (32 bit). According to the documentation SQL can
> take up to the OS maximum amount of memory (64 GB with PAE). Well,
> SQL isn't taking more than about 1.5GB of memory, and the Buffer Cache
> Hit Ratio is up close to 100. How can I make SQL use more physical
> memory?
>
> Thanks
> Dylan
>


Reply With Quote
  #3  
Old 06-21-2007, 11:09 AM
Default Re: Make SQL use more memory

On Jun 21, 9:47 am, "Adam Machanic"
wrote:
> If the Buffer Cache Hit Ratio is 100, that means that SQL Server doesn't
> need to take any more memory. Your queries are all using data that's
> already cached. SQL Server will not take memory it doesn't need.
>
> --
>
> Adam Machanic
> SQL Server MVP
>
> Author, "Expert SQL Server 2005 Development"http://www.apress.com/book/bookDisplay.html?bID=10220
>
> "dylan" wrote in message
>
> news:1182433233.008715.247450-at-o61g2000hsh.googlegr oups.com...
>
> > I've got a Windows 2003 Enterprise server with 8GB of memory running
> > SQL 2005 Standard (32 bit). According to the documentation SQL can
> > take up to the OS maximum amount of memory (64 GB with PAE). Well,
> > SQL isn't taking more than about 1.5GB of memory, and the Buffer Cache
> > Hit Ratio is up close to 100. How can I make SQL use more physical
> > memory?

>
> > Thanks
> > Dylan


Ah, so you're right - I was reading my thresholds sheet wrong. I guess
I should have thought about what a ratio is before posting.

In any event, this SQL server's not very highly utilized right now.
If it becomes more highly utilized and does in fact need to take more
memory, will it, or do I need to change anything? I was reading about
enabling AWE - is that something that I should have enabled?

Thanks!

Dylan

Reply With Quote
  #4  
Old 06-21-2007, 11:16 AM
Default Re: Make SQL use more memory

"dylan" wrote in message
news:1182434972.723295.308160-at-o61g2000hsh.googlegr oups.com...
>
> In any event, this SQL server's not very highly utilized right now.
> If it becomes more highly utilized and does in fact need to take more
> memory, will it, or do I need to change anything? I was reading about
> enabling AWE - is that something that I should have enabled?


Yes, you'll have to enable AWE if you want SQL Server to use any RAM
over the 2GB user-mode VAS limit.


--

Adam Machanic
SQL Server MVP

Author, "Expert SQL Server 2005 Development"
http://www.apress.com/book/bookDisplay.html?bID=10220



Reply With Quote
  #5  
Old 06-21-2007, 11:28 AM
Default Re: Make SQL use more memory

On Jun 21, 10:16 am, "Adam Machanic"
wrote:
> "dylan" wrote in message
>
> news:1182434972.723295.308160-at-o61g2000hsh.googlegr oups.com...
>
>
>
> > In any event, this SQL server's not very highly utilized right now.
> > If it becomes more highly utilized and does in fact need to take more
> > memory, will it, or do I need to change anything? I was reading about
> > enabling AWE - is that something that I should have enabled?

>
> Yes, you'll have to enable AWE if you want SQL Server to use any RAM
> over the 2GB user-mode VAS limit.
>
> --
>
> Adam Machanic
> SQL Server MVP
>
> Author, "Expert SQL Server 2005 Development"http://www.apress.com/book/bookDisplay.html?bID=10220


Great, thanks - one last question. I see that you need to enable Lock
Pages in Memory access through group Policy. It says to:

In the Select Users or Groups dialog box, add an account with
privileges to run sqlservr.exe.

Is that referring to the user that the MSSQLSERVER service logs in as
when it starts, or is that just any user with login access to the
database? It seems like no matter what account (or accounts) I give
that access to, SQL still spits out an error saying that they don't
have access.

Reply With Quote
  #6  
Old 06-21-2007, 11:34 AM
Default Re: Make SQL use more memory

"dylan" wrote in message
news:1182436089.647770.79590-at-p77g2000hsh.googlegro ups.com...
>
> Great, thanks - one last question. I see that you need to enable Lock
> Pages in Memory access through group Policy. It says to:


As far as I know, that's only applicable to 64-bit, Enterprise Edition
SQL Server.


--

Adam Machanic
SQL Server MVP

Author, "Expert SQL Server 2005 Development"
http://www.apress.com/book/bookDisplay.html?bID=10220

Reply With Quote
  #7  
Old 06-21-2007, 11:44 AM
Default Re: Make SQL use more memory

On Jun 21, 10:34 am, "Adam Machanic"
wrote:
> "dylan" wrote in message
>
> news:1182436089.647770.79590-at-p77g2000hsh.googlegro ups.com...
>
>
>
> > Great, thanks - one last question. I see that you need to enable Lock
> > Pages in Memory access through group Policy. It says to:

>
> As far as I know, that's only applicable to 64-bit, Enterprise Edition
> SQL Server.
>
> --
>
> Adam Machanic
> SQL Server MVP
>
> Author, "Expert SQL Server 2005 Development"http://www.apress.com/book/bookDisplay.html?bID=10220



Hmm, well according to this article http://msdn2.microsoft.com/en-us/lib...3(SQL.90).aspx
AWE is not needed and cannot be configured on 64-bit operating systems.

Reply With Quote
  #8  
Old 06-21-2007, 12:09 PM
Default Re: Make SQL use more memory

"dylan" wrote in message
news:1182437032.054788.207030-at-n60g2000hse.googlegr oups.com...
>
> Hmm, well according to this article
> http://msdn2.microsoft.com/en-us/lib...3(SQL.90).aspx
> AWE is not needed and cannot be configured on 64-bit operating systems.


AWE is needed for 32-bit SQL Server, whether running on a 32-bit or
64-bit operating system. Lock Pages in Memory is only needed for 64-bit SQL
Server. You're running 32-bit SQL Server, according to your first post?


--

Adam Machanic
SQL Server MVP

Author, "Expert SQL Server 2005 Development"
http://www.apress.com/book/bookDisplay.html?bID=10220



Reply With Quote
  #9  
Old 06-21-2007, 12:40 PM
Default Re: Make SQL use more memory

On Jun 21, 11:09 am, "Adam Machanic"
wrote:
> "dylan" wrote in message
>
> news:1182437032.054788.207030-at-n60g2000hse.googlegr oups.com...
>
>
>
> > Hmm, well according to this article
> >http://msdn2.microsoft.com/en-us/lib...3(SQL.90).aspx
> > AWE is not needed and cannot be configured on 64-bit operating systems.

>
> AWE is needed for 32-bit SQL Server, whether running on a 32-bit or
> 64-bit operating system. Lock Pages in Memory is only needed for 64-bit SQL
> Server. You're running 32-bit SQL Server, according to your first post?
>
> --
>
> Adam Machanic
> SQL Server MVP
>
> Author, "Expert SQL Server 2005 Development"http://www.apress.com/book/bookDisplay.html?bID=10220


I really need to read these things better, I didn't see in your
previous post that you were talking about Enterprise Edition SQL
Server, I thought you meant 64 Bit Windows 2003 Enterprise Edition.
Yes, I am running 32 bit SQL Server Standard on 32 Bit Windows 2003
Enterprise. Given that, I can't get AWE to enable. When I try to
enable it, I get the following error:

Alter Failed (Microsoft.SQLServer.SMO)
Additional information
+ An exception occured while executing a Transact-SQL statement or
batch.
(Microsoft.SQLServer.ConnectionInfo)
+ Address Windowing Extensions (AWE) requires the "lock pages in
memory" privilege which is not currently present in the access token
of the process.

When I looked that up, I found that I needed to enable the Enable the
Lock Pages in Memory Option. Using this article
http://msdn2.microsoft.com/en-us/lib...0(SQL.90).aspx I tried
to do that, but it is still not working. Any insight?

Thanks very much for your help.

Reply With Quote
  #10  
Old 06-21-2007, 12:54 PM
Default Re: Make SQL use more memory

Do you have the /PAE switch enabled in boot.ini ?


--

Adam Machanic
SQL Server MVP

Author, "Expert SQL Server 2005 Development"
http://www.apress.com/book/bookDisplay.html?bID=10220



"dylan" wrote in message
news:1182440393.064379.241090-at-p77g2000hsh.googlegr oups.com...
> On Jun 21, 11:09 am, "Adam Machanic"
> wrote:
>> "dylan" wrote in message
>>
>> news:1182437032.054788.207030-at-n60g2000hse.googlegr oups.com...
>>
>>
>>
>> > Hmm, well according to this article
>> >http://msdn2.microsoft.com/en-us/lib...3(SQL.90).aspx
>> > AWE is not needed and cannot be configured on 64-bit operating systems.

>>
>> AWE is needed for 32-bit SQL Server, whether running on a 32-bit or
>> 64-bit operating system. Lock Pages in Memory is only needed for 64-bit
>> SQL
>> Server. You're running 32-bit SQL Server, according to your first post?
>>
>> --
>>
>> Adam Machanic
>> SQL Server MVP
>>
>> Author, "Expert SQL Server 2005
>> Development"http://www.apress.com/book/bookDisplay.html?bID=10220

>
> I really need to read these things better, I didn't see in your
> previous post that you were talking about Enterprise Edition SQL
> Server, I thought you meant 64 Bit Windows 2003 Enterprise Edition.
> Yes, I am running 32 bit SQL Server Standard on 32 Bit Windows 2003
> Enterprise. Given that, I can't get AWE to enable. When I try to
> enable it, I get the following error:
>
> Alter Failed (Microsoft.SQLServer.SMO)
> Additional information
> + An exception occured while executing a Transact-SQL statement or
> batch.
> (Microsoft.SQLServer.ConnectionInfo)
> + Address Windowing Extensions (AWE) requires the "lock pages in
> memory" privilege which is not currently present in the access token
> of the process.
>
> When I looked that up, I found that I needed to enable the Enable the
> Lock Pages in Memory Option. Using this article
> http://msdn2.microsoft.com/en-us/lib...0(SQL.90).aspx I tried
> to do that, but it is still not working. Any insight?
>
> Thanks very much for your help.
>


Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 05:34 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.