Monday, March 19, 2012
8GB memory installation
OS: 2000 advanced server
SQL enterprise
We have just added an extra 6GB of memory to our database server which
brings the total to 8. The problem we are having is that the OS is only using
3Gb of memory.
We have run the SP that is recommended for AWE and entered the /3GB /PAE in
the boot.ini file and restarted the machine.
The server still refuses to use more than 3GB. Any ideas?
Did you re-configure SQL, the AWE and fixed memory?
e.g.
sp_configure 'show advanced options', 1
RECONFIGURE
GO
sp_configure 'awe enabled', 1
RECONFIGURE
GO
sp_configure 'min server memory', 6656 (make same as maximum)
RECONFIGURE
go
sp_configure 'max server memory', 6656 (leave at least 512 for the OS)
RECONFIGURE
Regards
Mike
"lramsdale" wrote:
> Situation:
> OS: 2000 advanced server
> SQL enterprise
> We have just added an extra 6GB of memory to our database server which
> brings the total to 8. The problem we are having is that the OS is only using
> 3Gb of memory.
> We have run the SP that is recommended for AWE and entered the /3GB /PAE in
> the boot.ini file and restarted the machine.
> The server still refuses to use more than 3GB. Any ideas?
|||This is what we ran:
sp_configure 'show advanced options', 1
RECONFIGURE
GO
sp_configure 'awe enabled', 1
RECONFIGURE
GO
sp_configure 'max server memory', 6144
RECONFIGURE
GO
"Mike Epprecht (SQL MVP)" wrote:
[vbcol=seagreen]
> Did you re-configure SQL, the AWE and fixed memory?
> e.g.
> sp_configure 'show advanced options', 1
> RECONFIGURE
> GO
> sp_configure 'awe enabled', 1
> RECONFIGURE
> GO
> sp_configure 'min server memory', 6656 (make same as maximum)
> RECONFIGURE
> go
> sp_configure 'max server memory', 6656 (leave at least 512 for the OS)
> RECONFIGURE
> Regards
> Mike
> "lramsdale" wrote:
|||Ok we finally got to the bottom of this problem - it seems that we needed to
give the SQL server service account permissions to the lock pages in memory
privelege, even though it was in the domain admin account. This was hard to
find, why is there so much conflicting documentation on this AWE setting?
"lramsdale" wrote:
[vbcol=seagreen]
> This is what we ran:
> sp_configure 'show advanced options', 1
> RECONFIGURE
> GO
> sp_configure 'awe enabled', 1
> RECONFIGURE
> GO
> sp_configure 'max server memory', 6144
> RECONFIGURE
> GO
> "Mike Epprecht (SQL MVP)" wrote:
8GB memory installation
OS: 2000 advanced server
SQL enterprise
We have just added an extra 6GB of memory to our database server which
brings the total to 8. The problem we are having is that the OS is only usin
g
3Gb of memory.
We have run the SP that is recommended for AWE and entered the /3GB /PAE in
the boot.ini file and restarted the machine.
The server still refuses to use more than 3GB. Any ideas?Did you re-configure SQL, the AWE and fixed memory?
e.g.
sp_configure 'show advanced options', 1
RECONFIGURE
GO
sp_configure 'awe enabled', 1
RECONFIGURE
GO
sp_configure 'min server memory', 6656 (make same as maximum)
RECONFIGURE
go
sp_configure 'max server memory', 6656 (leave at least 512 for the OS)
RECONFIGURE
Regards
Mike
"lramsdale" wrote:
> Situation:
> OS: 2000 advanced server
> SQL enterprise
> We have just added an extra 6GB of memory to our database server which
> brings the total to 8. The problem we are having is that the OS is only us
ing
> 3Gb of memory.
> We have run the SP that is recommended for AWE and entered the /3GB /PAE i
n
> the boot.ini file and restarted the machine.
> The server still refuses to use more than 3GB. Any ideas?|||This is what we ran:
sp_configure 'show advanced options', 1
RECONFIGURE
GO
sp_configure 'awe enabled', 1
RECONFIGURE
GO
sp_configure 'max server memory', 6144
RECONFIGURE
GO
"Mike Epprecht (SQL MVP)" wrote:
[vbcol=seagreen]
> Did you re-configure SQL, the AWE and fixed memory?
> e.g.
> sp_configure 'show advanced options', 1
> RECONFIGURE
> GO
> sp_configure 'awe enabled', 1
> RECONFIGURE
> GO
> sp_configure 'min server memory', 6656 (make same as maximum)
> RECONFIGURE
> go
> sp_configure 'max server memory', 6656 (leave at least 512 for the OS)
> RECONFIGURE
> Regards
> Mike
> "lramsdale" wrote:
>|||Ok we finally got to the bottom of this problem - it seems that we needed to
give the SQL server service account permissions to the lock pages in memory
privelege, even though it was in the domain admin account. This was hard to
find, why is there so much conflicting documentation on this AWE setting?
"lramsdale" wrote:
[vbcol=seagreen]
> This is what we ran:
> sp_configure 'show advanced options', 1
> RECONFIGURE
> GO
> sp_configure 'awe enabled', 1
> RECONFIGURE
> GO
> sp_configure 'max server memory', 6144
> RECONFIGURE
> GO
> "Mike Epprecht (SQL MVP)" wrote:
>
8GB memory installation
OS: 2000 advanced server
SQL enterprise
We have just added an extra 6GB of memory to our database server which
brings the total to 8. The problem we are having is that the OS is only using
3Gb of memory.
We have run the SP that is recommended for AWE and entered the /3GB /PAE in
the boot.ini file and restarted the machine.
The server still refuses to use more than 3GB. Any ideas?Did you re-configure SQL, the AWE and fixed memory?
e.g.
sp_configure 'show advanced options', 1
RECONFIGURE
GO
sp_configure 'awe enabled', 1
RECONFIGURE
GO
sp_configure 'min server memory', 6656 (make same as maximum)
RECONFIGURE
go
sp_configure 'max server memory', 6656 (leave at least 512 for the OS)
RECONFIGURE
Regards
Mike
"lramsdale" wrote:
> Situation:
> OS: 2000 advanced server
> SQL enterprise
> We have just added an extra 6GB of memory to our database server which
> brings the total to 8. The problem we are having is that the OS is only using
> 3Gb of memory.
> We have run the SP that is recommended for AWE and entered the /3GB /PAE in
> the boot.ini file and restarted the machine.
> The server still refuses to use more than 3GB. Any ideas?|||This is what we ran:
sp_configure 'show advanced options', 1
RECONFIGURE
GO
sp_configure 'awe enabled', 1
RECONFIGURE
GO
sp_configure 'max server memory', 6144
RECONFIGURE
GO
"Mike Epprecht (SQL MVP)" wrote:
> Did you re-configure SQL, the AWE and fixed memory?
> e.g.
> sp_configure 'show advanced options', 1
> RECONFIGURE
> GO
> sp_configure 'awe enabled', 1
> RECONFIGURE
> GO
> sp_configure 'min server memory', 6656 (make same as maximum)
> RECONFIGURE
> go
> sp_configure 'max server memory', 6656 (leave at least 512 for the OS)
> RECONFIGURE
> Regards
> Mike
> "lramsdale" wrote:
> > Situation:
> >
> > OS: 2000 advanced server
> > SQL enterprise
> >
> > We have just added an extra 6GB of memory to our database server which
> > brings the total to 8. The problem we are having is that the OS is only using
> > 3Gb of memory.
> >
> > We have run the SP that is recommended for AWE and entered the /3GB /PAE in
> > the boot.ini file and restarted the machine.
> >
> > The server still refuses to use more than 3GB. Any ideas?|||Ok we finally got to the bottom of this problem - it seems that we needed to
give the SQL server service account permissions to the lock pages in memory
privelege, even though it was in the domain admin account. This was hard to
find, why is there so much conflicting documentation on this AWE setting?
"lramsdale" wrote:
> This is what we ran:
> sp_configure 'show advanced options', 1
> RECONFIGURE
> GO
> sp_configure 'awe enabled', 1
> RECONFIGURE
> GO
> sp_configure 'max server memory', 6144
> RECONFIGURE
> GO
> "Mike Epprecht (SQL MVP)" wrote:
> > Did you re-configure SQL, the AWE and fixed memory?
> >
> > e.g.
> >
> > sp_configure 'show advanced options', 1
> > RECONFIGURE
> > GO
> > sp_configure 'awe enabled', 1
> > RECONFIGURE
> > GO
> > sp_configure 'min server memory', 6656 (make same as maximum)
> > RECONFIGURE
> > go
> > sp_configure 'max server memory', 6656 (leave at least 512 for the OS)
> > RECONFIGURE
> >
> > Regards
> > Mike
> >
> > "lramsdale" wrote:
> >
> > > Situation:
> > >
> > > OS: 2000 advanced server
> > > SQL enterprise
> > >
> > > We have just added an extra 6GB of memory to our database server which
> > > brings the total to 8. The problem we are having is that the OS is only using
> > > 3Gb of memory.
> > >
> > > We have run the SP that is recommended for AWE and entered the /3GB /PAE in
> > > the boot.ini file and restarted the machine.
> > >
> > > The server still refuses to use more than 3GB. Any ideas?
Thursday, March 8, 2012
6GB msdbdata.mdf
Hi all,
On my PC I noticed that my msdbdata.mdf file grew to over 6GB. I did sp_spaceused on each of the tables and they are all OK. I looked at the queues and they also seemed OK. I finally looked at the properties and seen that it cannot be shrink since it is 95 percent used.
Any ideas on how I can get it back to normal size?
Thanks
Avi
you may be knowing that msdb database is used SQL SERVER AGENT ( SQL Scheduller) by for all scheduled work in sql server instance. You backup history, DTS Versions, Job history related table may grow over a period of time and there by your MSDB Database can grow. check all these table and if not required delete the history.
Madhu
|||Have you changed the amount of job history to keep in the SQL Agent? Do you have lots of DTS packages? Are the DTS packages setup to log there status to the SQL Server?
These things all take up space in the msdb database.
You can use the sp_dump_dtslog_all command to remove the DTS log information.
You can use the sys.destination_data_spaces command to remove SQL Agent Log Information.
Sunday, February 19, 2012
5GB memory for SQL server
uses at least 5 GB of memory?
S/w detail
SQL 2000 with sp3
Windows 2003 (32 bit) no sp
boot.ini needs the /pae switch to access memory over 4GB (and /3gb
wouldn't hurt either in this case). You need to reboot for that switch
to take affect.
Also, you need to enable AWE memory for your SQL instance with
sp_configure. That is:
exec sp_configure 'awe enabled', 1
reconfigure
go
Then restart the SQL instance (with the Services Control Manager or NET
STOP/NET START). When you use AWE memory SQL Server won't swap out
pages to disk if you're running low on memory (like it does with dynamic
memory management when the memory is less than 4GB). So Microsoft
recommends to set an upper limit on SQL memory usage with the "max
server memory" sp_configure option. For example, to set a max limit of
5GB for the SQL instance (so you don't kill the O/S and other apps on
the box) you would execute this SQL statement:
exec sp_configure "max server memory" 5120
reconfigure
go
You may as well do the 2 sp_configure statements in the same batch and
then restart the SQL instance to save you restarting SQL twice (minimise
downtime). SQL Books Online has a fair bit of stuff on using AWE memory:
http://msdn.microsoft.com/library/de...erver_1fnd.asp
It's a bit unusual to request that SQL uses "at least" 5GB. SQL will
consume the memory as it needs it (starting at < 100MB), caching data
that's accessed and query plans that get compiled. Why not just let it
do it's thing?
This is a very common question on the sqlserver newsgroups. Maybe I
should blog it (like about a hundred other people already have I'm sure).
*mike hodgson*
blog: http://sqlnerd.blogspot.com
Amar wrote:
>We are having 6GB of memory on SQL server. How do we ensure that SQL server
>uses at least 5 GB of memory?
>S/w detail
>SQL 2000 with sp3
>Windows 2003 (32 bit) no sp
>
>
>
|||Hi
You need Enterprise Edition of SQL Server 2000 and Enterprise Edition of
Windows Server 2003
And read KB 274750
http://support.microsoft.com/default...b;en-us;274750 on how to
configure it.
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Amar" wrote:
> We are having 6GB of memory on SQL server. How do we ensure that SQL server
> uses at least 5 GB of memory?
> S/w detail
> SQL 2000 with sp3
> Windows 2003 (32 bit) no sp
>
>
|||Thanks Mike for pointing towards right direction
"Mike Epprecht (SQL MVP)" wrote:
[vbcol=seagreen]
> Hi
> You need Enterprise Edition of SQL Server 2000 and Enterprise Edition of
> Windows Server 2003
> And read KB 274750
> http://support.microsoft.com/default...b;en-us;274750 on how to
> configure it.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
>
> "Amar" wrote:
|||Thanks Mike. Great info. Yes a blog would be ver good.
Amar
"Mike Hodgson" wrote:
> boot.ini needs the /pae switch to access memory over 4GB (and /3gb
> wouldn't hurt either in this case). You need to reboot for that switch
> to take affect.
> Also, you need to enable AWE memory for your SQL instance with
> sp_configure. That is:
> exec sp_configure 'awe enabled', 1
> reconfigure
> go
> Then restart the SQL instance (with the Services Control Manager or NET
> STOP/NET START). When you use AWE memory SQL Server won't swap out
> pages to disk if you're running low on memory (like it does with dynamic
> memory management when the memory is less than 4GB). So Microsoft
> recommends to set an upper limit on SQL memory usage with the "max
> server memory" sp_configure option. For example, to set a max limit of
> 5GB for the SQL instance (so you don't kill the O/S and other apps on
> the box) you would execute this SQL statement:
> exec sp_configure "max server memory" 5120
> reconfigure
> go
> You may as well do the 2 sp_configure statements in the same batch and
> then restart the SQL instance to save you restarting SQL twice (minimise
> downtime). SQL Books Online has a fair bit of stuff on using AWE memory:
> http://msdn.microsoft.com/library/de...erver_1fnd.asp
> It's a bit unusual to request that SQL uses "at least" 5GB. SQL will
> consume the memory as it needs it (starting at < 100MB), caching data
> that's accessed and query plans that get compiled. Why not just let it
> do it's thing?
> This is a very common question on the sqlserver newsgroups. Maybe I
> should blog it (like about a hundred other people already have I'm sure).
> --
> *mike hodgson*
> blog: http://sqlnerd.blogspot.com
>
> Amar wrote:
>
5GB memory for SQL server
uses at least 5 GB of memory?
S/w detail
SQL 2000 with sp3
Windows 2003 (32 bit) no spThis is a multi-part message in MIME format.
--060402090907040201010607
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
boot.ini needs the /pae switch to access memory over 4GB (and /3gb
wouldn't hurt either in this case). You need to reboot for that switch
to take affect.
Also, you need to enable AWE memory for your SQL instance with
sp_configure. That is:
exec sp_configure 'awe enabled', 1
reconfigure
go
Then restart the SQL instance (with the Services Control Manager or NET
STOP/NET START). When you use AWE memory SQL Server won't swap out
pages to disk if you're running low on memory (like it does with dynamic
memory management when the memory is less than 4GB). So Microsoft
recommends to set an upper limit on SQL memory usage with the "max
server memory" sp_configure option. For example, to set a max limit of
5GB for the SQL instance (so you don't kill the O/S and other apps on
the box) you would execute this SQL statement:
exec sp_configure "max server memory" 5120
reconfigure
go
You may as well do the 2 sp_configure statements in the same batch and
then restart the SQL instance to save you restarting SQL twice (minimise
downtime). SQL Books Online has a fair bit of stuff on using AWE memory:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_1_server_1fnd.asp
It's a bit unusual to request that SQL uses "at least" 5GB. SQL will
consume the memory as it needs it (starting at < 100MB), caching data
that's accessed and query plans that get compiled. Why not just let it
do it's thing?
This is a very common question on the sqlserver newsgroups. Maybe I
should blog it (like about a hundred other people already have I'm sure).
--
*mike hodgson*
blog: http://sqlnerd.blogspot.com
Amar wrote:
>We are having 6GB of memory on SQL server. How do we ensure that SQL server
>uses at least 5 GB of memory?
>S/w detail
>SQL 2000 with sp3
>Windows 2003 (32 bit) no sp
>
>
>
--060402090907040201010607
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>boot.ini needs the /pae switch to access memory over 4GB (and /3gb
wouldn't hurt either in this case). You need to reboot for that switch
to take affect.<br>
<br>
Also, you need to enable AWE memory for your SQL instance with
sp_configure. That is:<br>
</tt>
<blockquote><tt>exec sp_configure 'awe enabled', 1</tt><br>
<tt>reconfigure</tt><br>
<tt>go</tt><br>
</blockquote>
<tt>Then restart the SQL instance (with the Services Control Manager or
NET STOP/NET START). When you use AWE memory SQL Server won't swap out
pages to disk if you're running low on memory (like it does with
dynamic memory management when the memory is less than 4GB). So
Microsoft recommends to set an upper limit on SQL memory usage with the
"max server memory" sp_configure option. For example, to set a max
limit of 5GB for the SQL instance (so you don't kill the O/S and other
apps on the box) you would execute this SQL statement:<br>
</tt>
<blockquote><tt>exec sp_configure "max server memory" 5120</tt><br>
<tt>reconfigure</tt><br>
<tt>go</tt><br>
</blockquote>
<tt>You may as well do the 2 sp_configure statements in the same batch
and then restart the SQL instance to save you restarting SQL twice
(minimise downtime). SQL Books Online has a fair bit of stuff on using
AWE memory:<br>
<a class="moz-txt-link-freetext" href="http://links.10026.com/?link=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_1_server_1fnd.asp</a><br>">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_1_server_1fnd.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_1_server_1fnd.asp</a><br>
<br>
It's a bit unusual to request that SQL uses "at least" 5GB. SQL will
consume the memory as it needs it (starting at < 100MB), caching
data that's accessed and query plans that get compiled. Why not just
let it do it's thing?<br>
<br>
This is a very common question on the sqlserver newsgroups. Maybe I
should blog it (like about a hundred other people already have I'm
sure).<br>
</tt>
<div class="moz-signature">
<title></title>
<meta http-equiv="Content-Type" content="text/html; ">
<p><span lang="en-au"><font face="Tahoma" size="2">--<br>
</font></span> <b><span lang="en-au"><font face="Tahoma" size="2">mike
hodgson</font></span></b><span lang="en-au"><br>
<font face="Tahoma" size="2">blog:</font><font face="Tahoma" size="2"> <a
href="http://links.10026.com/?link=http://sqlnerd.blogspot.com</a></font></span>">http://sqlnerd.blogspot.com">http://sqlnerd.blogspot.com</a></font></span>
</p>
</div>
<br>
<br>
Amar wrote:
<blockquote cite="mid6D049C2F-5D53-482C-B076-C0BA30770687@.microsoft.com"
type="cite">
<pre wrap="">We are having 6GB of memory on SQL server. How do we ensure that SQL server
uses at least 5 GB of memory?
S/w detail
SQL 2000 with sp3
Windows 2003 (32 bit) no sp
</pre>
</blockquote>
</body>
</html>
--060402090907040201010607--|||Hi
You need Enterprise Edition of SQL Server 2000 and Enterprise Edition of
Windows Server 2003
And read KB 274750
http://support.microsoft.com/default.aspx?scid=kb;en-us;274750 on how to
configure it.
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Amar" wrote:
> We are having 6GB of memory on SQL server. How do we ensure that SQL server
> uses at least 5 GB of memory?
> S/w detail
> SQL 2000 with sp3
> Windows 2003 (32 bit) no sp
>
>|||Thanks Mike for pointing towards right direction
"Mike Epprecht (SQL MVP)" wrote:
> Hi
> You need Enterprise Edition of SQL Server 2000 and Enterprise Edition of
> Windows Server 2003
> And read KB 274750
> http://support.microsoft.com/default.aspx?scid=kb;en-us;274750 on how to
> configure it.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
>
> "Amar" wrote:
> > We are having 6GB of memory on SQL server. How do we ensure that SQL server
> > uses at least 5 GB of memory?
> >
> > S/w detail
> > SQL 2000 with sp3
> > Windows 2003 (32 bit) no sp
> >
> >
> >|||Thanks Mike. Great info. Yes a blog would be ver good.
Amar
"Mike Hodgson" wrote:
> boot.ini needs the /pae switch to access memory over 4GB (and /3gb
> wouldn't hurt either in this case). You need to reboot for that switch
> to take affect.
> Also, you need to enable AWE memory for your SQL instance with
> sp_configure. That is:
> exec sp_configure 'awe enabled', 1
> reconfigure
> go
> Then restart the SQL instance (with the Services Control Manager or NET
> STOP/NET START). When you use AWE memory SQL Server won't swap out
> pages to disk if you're running low on memory (like it does with dynamic
> memory management when the memory is less than 4GB). So Microsoft
> recommends to set an upper limit on SQL memory usage with the "max
> server memory" sp_configure option. For example, to set a max limit of
> 5GB for the SQL instance (so you don't kill the O/S and other apps on
> the box) you would execute this SQL statement:
> exec sp_configure "max server memory" 5120
> reconfigure
> go
> You may as well do the 2 sp_configure statements in the same batch and
> then restart the SQL instance to save you restarting SQL twice (minimise
> downtime). SQL Books Online has a fair bit of stuff on using AWE memory:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_1_server_1fnd.asp
> It's a bit unusual to request that SQL uses "at least" 5GB. SQL will
> consume the memory as it needs it (starting at < 100MB), caching data
> that's accessed and query plans that get compiled. Why not just let it
> do it's thing?
> This is a very common question on the sqlserver newsgroups. Maybe I
> should blog it (like about a hundred other people already have I'm sure).
> --
> *mike hodgson*
> blog: http://sqlnerd.blogspot.com
>
> Amar wrote:
> >We are having 6GB of memory on SQL server. How do we ensure that SQL server
> >uses at least 5 GB of memory?
> >
> >S/w detail
> >SQL 2000 with sp3
> >Windows 2003 (32 bit) no sp
> >
> >
> >
> >
> >
>
5GB memory for SQL server
uses at least 5 GB of memory?
S/w detail
SQL 2000 with sp3
Windows 2003 (32 bit) no spboot.ini needs the /pae switch to access memory over 4GB (and /3gb
wouldn't hurt either in this case). You need to reboot for that switch
to take affect.
Also, you need to enable AWE memory for your SQL instance with
sp_configure. That is:
exec sp_configure 'awe enabled', 1
reconfigure
go
Then restart the SQL instance (with the Services Control Manager or NET
STOP/NET START). When you use AWE memory SQL Server won't swap out
pages to disk if you're running low on memory (like it does with dynamic
memory management when the memory is less than 4GB). So Microsoft
recommends to set an upper limit on SQL memory usage with the "max
server memory" sp_configure option. For example, to set a max limit of
5GB for the SQL instance (so you don't kill the O/S and other apps on
the box) you would execute this SQL statement:
exec sp_configure "max server memory" 5120
reconfigure
go
You may as well do the 2 sp_configure statements in the same batch and
then restart the SQL instance to save you restarting SQL twice (minimise
downtime). SQL Books Online has a fair bit of stuff on using AWE memory:
http://msdn.microsoft.com/library/d...>
ver_1fnd.asp
It's a bit unusual to request that SQL uses "at least" 5GB. SQL will
consume the memory as it needs it (starting at < 100MB), caching data
that's accessed and query plans that get compiled. Why not just let it
do it's thing?
This is a very common question on the sqlserver newsgroups. Maybe I
should blog it (like about a hundred other people already have I'm sure).
*mike hodgson*
blog: http://sqlnerd.blogspot.com
Amar wrote:
>We are having 6GB of memory on SQL server. How do we ensure that SQL server
>uses at least 5 GB of memory?
>S/w detail
>SQL 2000 with sp3
>Windows 2003 (32 bit) no sp
>
>
>|||Hi
You need Enterprise Edition of SQL Server 2000 and Enterprise Edition of
Windows Server 2003
And read KB 274750
http://support.microsoft.com/defaul...kb;en-us;274750 on how to
configure it.
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Amar" wrote:
> We are having 6GB of memory on SQL server. How do we ensure that SQL serve
r
> uses at least 5 GB of memory?
> S/w detail
> SQL 2000 with sp3
> Windows 2003 (32 bit) no sp
>
>|||Thanks Mike for pointing towards right direction
"Mike Epprecht (SQL MVP)" wrote:
[vbcol=seagreen]
> Hi
> You need Enterprise Edition of SQL Server 2000 and Enterprise Edition of
> Windows Server 2003
> And read KB 274750
> http://support.microsoft.com/defaul...kb;en-us;274750 on how to
> configure it.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
>
> "Amar" wrote:
>|||Thanks Mike. Great info. Yes a blog would be ver good.
Amar
"Mike Hodgson" wrote:
> boot.ini needs the /pae switch to access memory over 4GB (and /3gb
> wouldn't hurt either in this case). You need to reboot for that switch
> to take affect.
> Also, you need to enable AWE memory for your SQL instance with
> sp_configure. That is:
> exec sp_configure 'awe enabled', 1
> reconfigure
> go
> Then restart the SQL instance (with the Services Control Manager or NET
> STOP/NET START). When you use AWE memory SQL Server won't swap out
> pages to disk if you're running low on memory (like it does with dynamic
> memory management when the memory is less than 4GB). So Microsoft
> recommends to set an upper limit on SQL memory usage with the "max
> server memory" sp_configure option. For example, to set a max limit of
> 5GB for the SQL instance (so you don't kill the O/S and other apps on
> the box) you would execute this SQL statement:
> exec sp_configure "max server memory" 5120
> reconfigure
> go
> You may as well do the 2 sp_configure statements in the same batch and
> then restart the SQL instance to save you restarting SQL twice (minimise
> downtime). SQL Books Online has a fair bit of stuff on using AWE memory:
> http://msdn.microsoft.com/library/d...
erver_1fnd.asp
> It's a bit unusual to request that SQL uses "at least" 5GB. SQL will
> consume the memory as it needs it (starting at < 100MB), caching data
> that's accessed and query plans that get compiled. Why not just let it
> do it's thing?
> This is a very common question on the sqlserver newsgroups. Maybe I
> should blog it (like about a hundred other people already have I'm sure).
> --
> *mike hodgson*
> blog: http://sqlnerd.blogspot.com
>
> Amar wrote:
>
>
Monday, February 13, 2012
4->8GB RAM Upgrade
Read about AWE in 2005...
It explains that the extra memory is not used for sorts and other things that you think it would be...
Bret.
|||Sorry...I didn't make that clear...
In 2000 it is not used for sorts and other things that would increase performance...
Thursday, February 9, 2012
3GB Switch question
Windows 2003 Enterprise
SQL 2000 Std SP3
6GB Ram
4 CPU's with HT turned on (3.2)
I will be running multiple instances of DB.
What should the entry in boot.ini be to best utilise the resources.
Thanks.Leon
http://support.microsoft.com/kb/274750
"Leon" <Lion@.hotmail.com> wrote in message
news:%23$czIrCTHHA.920@.TK2MSFTNGP05.phx.gbl...
>I am using the following:
> Windows 2003 Enterprise
> SQL 2000 Std SP3
> 6GB Ram
> 4 CPU's with HT turned on (3.2)
> I will be running multiple instances of DB.
> What should the entry in boot.ini be to best utilise the resources.
>
> Thanks.
>|||Thanks
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:OL1Fg0CTHHA.2212@.TK2MSFTNGP02.phx.gbl...
> Leon
> http://support.microsoft.com/kb/274750
>
> "Leon" <Lion@.hotmail.com> wrote in message
> news:%23$czIrCTHHA.920@.TK2MSFTNGP05.phx.gbl...
>>I am using the following:
>> Windows 2003 Enterprise
>> SQL 2000 Std SP3
>> 6GB Ram
>> 4 CPU's with HT turned on (3.2)
>> I will be running multiple instances of DB.
>> What should the entry in boot.ini be to best utilise the resources.
>>
>> Thanks.
>|||To add on URI; if it is 64 bit system and SQL Server standard edition 64 bit
; then there is no need to change the memory addreesss space. This is
because 64 bit
can address more memory with out changing the BOOT.INI.
Thanks
Hari
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:OL1Fg0CTHHA.2212@.TK2MSFTNGP02.phx.gbl...
> Leon
> http://support.microsoft.com/kb/274750
>
> "Leon" <Lion@.hotmail.com> wrote in message
> news:%23$czIrCTHHA.920@.TK2MSFTNGP05.phx.gbl...
>>I am using the following:
>> Windows 2003 Enterprise
>> SQL 2000 Std SP3
>> 6GB Ram
>> 4 CPU's with HT turned on (3.2)
>> I will be running multiple instances of DB.
>> What should the entry in boot.ini be to best utilise the resources.
>>
>> Thanks.
>|||Guys,
Is this the same for SQL 2005 Enterprise on 2003 Standard R2 server? Do I
need to make any changes to boot.ini? The document in KB is for 2000 SQL and
I can not find anything for 2005 SQL. Please help.
"Hari Prasad" wrote:
> To add on URI; if it is 64 bit system and SQL Server standard edition 64 bit
> ; then there is no need to change the memory addreesss space. This is
> because 64 bit
> can address more memory with out changing the BOOT.INI.
> Thanks
> Hari
>
> "Uri Dimant" <urid@.iscar.co.il> wrote in message
> news:OL1Fg0CTHHA.2212@.TK2MSFTNGP02.phx.gbl...
> > Leon
> > http://support.microsoft.com/kb/274750
> >
> >
> >
> > "Leon" <Lion@.hotmail.com> wrote in message
> > news:%23$czIrCTHHA.920@.TK2MSFTNGP05.phx.gbl...
> >>I am using the following:
> >>
> >> Windows 2003 Enterprise
> >> SQL 2000 Std SP3
> >> 6GB Ram
> >> 4 CPU's with HT turned on (3.2)
> >>
> >> I will be running multiple instances of DB.
> >>
> >> What should the entry in boot.ini be to best utilise the resources.
> >>
> >>
> >>
> >> Thanks.
> >>
> >
> >
>
>|||If it is 32 bit and you want the app (in this case SQL Server) to use 3GB
instead of 2GB of directly addressable memory you need to set the /3GB
switch. But I don't believe Windows2003 Std edition uses more than 2 GB to
begin with. I could be wrong on that part though. But the bottom line is the
OS needs to support the memory before SQL Server can. And starting with
SQL2005 Std Edition and up can use all the memory that the OS can access
given the correct configuration.
--
Andrew J. Kelly SQL MVP
"George" <George@.discussions.microsoft.com> wrote in message
news:F8306B35-4D7A-498E-AE05-7C58442A233B@.microsoft.com...
> Guys,
> Is this the same for SQL 2005 Enterprise on 2003 Standard R2 server? Do I
> need to make any changes to boot.ini? The document in KB is for 2000 SQL
> and
> I can not find anything for 2005 SQL. Please help.
> "Hari Prasad" wrote:
>> To add on URI; if it is 64 bit system and SQL Server standard edition 64
>> bit
>> ; then there is no need to change the memory addreesss space. This is
>> because 64 bit
>> can address more memory with out changing the BOOT.INI.
>> Thanks
>> Hari
>>
>> "Uri Dimant" <urid@.iscar.co.il> wrote in message
>> news:OL1Fg0CTHHA.2212@.TK2MSFTNGP02.phx.gbl...
>> > Leon
>> > http://support.microsoft.com/kb/274750
>> >
>> >
>> >
>> > "Leon" <Lion@.hotmail.com> wrote in message
>> > news:%23$czIrCTHHA.920@.TK2MSFTNGP05.phx.gbl...
>> >>I am using the following:
>> >>
>> >> Windows 2003 Enterprise
>> >> SQL 2000 Std SP3
>> >> 6GB Ram
>> >> 4 CPU's with HT turned on (3.2)
>> >>
>> >> I will be running multiple instances of DB.
>> >>
>> >> What should the entry in boot.ini be to best utilise the resources.
>> >>
>> >>
>> >>
>> >> Thanks.
>> >>
>> >
>> >
>>|||Thank you. Anyone knows how to set this correctly on 2003 Standard Server?
"Andrew J. Kelly" wrote:
> If it is 32 bit and you want the app (in this case SQL Server) to use 3GB
> instead of 2GB of directly addressable memory you need to set the /3GB
> switch. But I don't believe Windows2003 Std edition uses more than 2 GB to
> begin with. I could be wrong on that part though. But the bottom line is the
> OS needs to support the memory before SQL Server can. And starting with
> SQL2005 Std Edition and up can use all the memory that the OS can access
> given the correct configuration.
> --
> Andrew J. Kelly SQL MVP
> "George" <George@.discussions.microsoft.com> wrote in message
> news:F8306B35-4D7A-498E-AE05-7C58442A233B@.microsoft.com...
> > Guys,
> >
> > Is this the same for SQL 2005 Enterprise on 2003 Standard R2 server? Do I
> > need to make any changes to boot.ini? The document in KB is for 2000 SQL
> > and
> > I can not find anything for 2005 SQL. Please help.
> >
> > "Hari Prasad" wrote:
> >
> >> To add on URI; if it is 64 bit system and SQL Server standard edition 64
> >> bit
> >> ; then there is no need to change the memory addreesss space. This is
> >> because 64 bit
> >> can address more memory with out changing the BOOT.INI.
> >>
> >> Thanks
> >> Hari
> >>
> >>
> >> "Uri Dimant" <urid@.iscar.co.il> wrote in message
> >> news:OL1Fg0CTHHA.2212@.TK2MSFTNGP02.phx.gbl...
> >> > Leon
> >> > http://support.microsoft.com/kb/274750
> >> >
> >> >
> >> >
> >> > "Leon" <Lion@.hotmail.com> wrote in message
> >> > news:%23$czIrCTHHA.920@.TK2MSFTNGP05.phx.gbl...
> >> >>I am using the following:
> >> >>
> >> >> Windows 2003 Enterprise
> >> >> SQL 2000 Std SP3
> >> >> 6GB Ram
> >> >> 4 CPU's with HT turned on (3.2)
> >> >>
> >> >> I will be running multiple instances of DB.
> >> >>
> >> >> What should the entry in boot.ini be to best utilise the resources.
> >> >>
> >> >>
> >> >>
> >> >> Thanks.
> >> >>
> >> >
> >> >
> >>
> >>
> >>
>
>|||You might want to have a look at these. The concepts are the same.
http://sqljunkies.com/Tutorial/0D4FF40A-695C-4327-A41B-F9F2FE2D58F6.scuk
Memory
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
"George" <George@.discussions.microsoft.com> wrote in message
news:602610CF-D97C-4E87-81F0-1B9E6BC615C3@.microsoft.com...
> Thank you. Anyone knows how to set this correctly on 2003 Standard Server?
> "Andrew J. Kelly" wrote:
>> If it is 32 bit and you want the app (in this case SQL Server) to use 3GB
>> instead of 2GB of directly addressable memory you need to set the /3GB
>> switch. But I don't believe Windows2003 Std edition uses more than 2 GB
>> to
>> begin with. I could be wrong on that part though. But the bottom line is
>> the
>> OS needs to support the memory before SQL Server can. And starting with
>> SQL2005 Std Edition and up can use all the memory that the OS can access
>> given the correct configuration.
>> --
>> Andrew J. Kelly SQL MVP
>> "George" <George@.discussions.microsoft.com> wrote in message
>> news:F8306B35-4D7A-498E-AE05-7C58442A233B@.microsoft.com...
>> > Guys,
>> >
>> > Is this the same for SQL 2005 Enterprise on 2003 Standard R2 server? Do
>> > I
>> > need to make any changes to boot.ini? The document in KB is for 2000
>> > SQL
>> > and
>> > I can not find anything for 2005 SQL. Please help.
>> >
>> > "Hari Prasad" wrote:
>> >
>> >> To add on URI; if it is 64 bit system and SQL Server standard edition
>> >> 64
>> >> bit
>> >> ; then there is no need to change the memory addreesss space. This is
>> >> because 64 bit
>> >> can address more memory with out changing the BOOT.INI.
>> >>
>> >> Thanks
>> >> Hari
>> >>
>> >>
>> >> "Uri Dimant" <urid@.iscar.co.il> wrote in message
>> >> news:OL1Fg0CTHHA.2212@.TK2MSFTNGP02.phx.gbl...
>> >> > Leon
>> >> > http://support.microsoft.com/kb/274750
>> >> >
>> >> >
>> >> >
>> >> > "Leon" <Lion@.hotmail.com> wrote in message
>> >> > news:%23$czIrCTHHA.920@.TK2MSFTNGP05.phx.gbl...
>> >> >>I am using the following:
>> >> >>
>> >> >> Windows 2003 Enterprise
>> >> >> SQL 2000 Std SP3
>> >> >> 6GB Ram
>> >> >> 4 CPU's with HT turned on (3.2)
>> >> >>
>> >> >> I will be running multiple instances of DB.
>> >> >>
>> >> >> What should the entry in boot.ini be to best utilise the resources.
>> >> >>
>> >> >>
>> >> >>
>> >> >> Thanks.
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >>
>>