Groups | Blog | Home
all groups > sql server clustering > may 2005 >

sql server clustering : 2003 & SQL 2000 Clustering Memory



Andrew J. Kelly
5/28/2005 12:00:00 AM
Is 6GB the total memory? How much do you want each instance of SQL Server
to use? They can not both have 6GB. If 6GB is all you have then you
probably should not use AWE since the memory is no longer dynamic. If you
use /3GB on each instance they will each have 3GB to use but that leaves 0
for the OS.

--
Andrew J. Kelly SQL MVP


[quoted text, click to view]

Alistair Keay
5/28/2005 3:45:01 AM
I see that there was a another query about this. But to confirm
If I wish to have active\active SQL on a server with 6Gb of memory should I
use

AWE enabled
PAE enabled

But not /3Gb (even though there are articles which state that you should for
4 to 16Gb of memory server)

What recomendations are there for the AWE setting so that SQL can failover?

--
Thanks for any help,
Rodney R. Fournier [MVP]
5/29/2005 2:57:54 PM
That is not my understanding of how the /3GB switch actually works. When you
add the /3GB to the boot.ini file it allows ALL applications to use 3GB of
working memory and the OS then only gets 1GB (normally is 2GB for App, 2 GB
for OS). It does not simply give 3GB to each SQL Instance. If you run
WordPad, the two SQL instances and the calculator they will all get 3GB of
working memory. As you can see from this example, paging would occur if both
SQL's actually need that much memory.

Cheers,

Rod

MVP - Windows Server - Clustering
http://www.nw-america.com - Clustering Website
http://www.msmvps.com/clustering - Blog

[quoted text, click to view]

Andrew J. Kelly
5/29/2005 5:01:24 PM
I didn't think that is what I stated. Yes each application (in this case
SQL Server) will be able to use up to 3GB of memory. That memory is still
dynamic and each instance will only use it as it needs it. The point I was
trying to make was there is a real possibility that both instances will use
upwards of 3GB. That means they may spend a lot of time allocating and
deallocating memory between each other and the OS. SQL Server will always
try to leave some memory for the OS (when not using AWE) so that paging does
not occur but in this case it very well may.

--
Andrew J. Kelly SQL MVP


"Rodney R. Fournier [MVP]" <rod@die.spam.die.nw-america.com> wrote in
message news:%23HBx3iIZFHA.2400@TK2MSFTNGP10.phx.gbl...
[quoted text, click to view]

Chris
5/31/2005 3:59:27 PM
I dealt with the exact same thing and unfortunately do not have any good
information for you. You can put in the boot switched to your hearts
content, but until you set SQL to AWE enabled you won't gain any benefit.
The problem is, once you set SQL AWE enabled it can no longer dynamically set
it's memory.

So say you have 2 nodes with 6 GB of RAM and set both to AWE enabled. SQL
will grab up all the memory it can when it starts up. The probelm occurs
when you go to fail node A over into node B. Node A will not start because
there's not enough memory there for it to start. You can get around this by
setting max_memory so there's enough for each server to run on the same node,
but then you're wasting the memory. So in your case, you'd need to set
max_memory on each SQL server at 2.5 GB so if they both fail into the same
node they only use 5 GB, leaving 1 GB free for the SO.

There's a good article detailing this here.
http://www.sql-server-performance.com/rn_sql_server_clustering_2000_to_2005_3.asp

Check out the bottom of this page discussing memory. Hope it helps.

[quoted text, click to view]
Alistair Keay
5/31/2005 4:17:39 PM
Thanks for your posts.
The total server memory is 6 Gb so that needs to be shared with the OS & SQL
instances.
Oringinally the requirement was for an active passive SQL cluster. (Servers
to have total 4 Gb each)
It was later decided that a non bussines critical SQL instance should be run
on the other node so a further 2 Gb was specified on each server bringing the
total up to 6Gb on each server.

From your comments I assume you wouldn't recommned using AWE.

Thanks again for any comments
--
Thanks for any help,
Alistair


[quoted text, click to view]
Alistair Keay
6/1/2005 8:49:17 AM
Thanks. Quite a good article.

I will follow your advice and test.
I will use AWE with memory capped on SQL as per your advice.

I will enable PAE.

I am still not clear however if I should use the /3Gb switch. For the memory
I have I have found two technet articles _ one which says I should and the
other which says I shouldn't.




--
Thanks for any help,
Alistair


[quoted text, click to view]
Andrew J. Kelly
6/1/2005 7:54:09 PM
If you don't enable /3GB you can only use 2GB per instance.


--
Andrew J. Kelly SQL MVP


[quoted text, click to view]

Alistair Keay
6/2/2005 3:59:02 AM
Thank you all for your help _ much appreciated.

--
Thanks for any help,
Alistair


[quoted text, click to view]
AddThis Social Bookmark Button