让SQL2000可以使用超过2G以上的物理内存

来源:互联网 发布:最终消费支出数据 编辑:程序博客网 时间:2024/05/16 14:59

通常情况下,SQL Server 2000 Enterprise Edition 和 SQL Server 2000 Developer Edition 最多可以使用 2 GB 的物理内存。如果使用 AWE 启用选项,SQL Server 最多可以使用 4 GB 的物理内存。

 

注意:由于在 Microsoft Windows 2000 Server 上不能使用“物理地址扩展”(PAE),因此无法为 Windows 2000 Server 上的应用程序分配 4 GB 以上的物理内存。此外,Windows 2000 Server 不能在 Boot.ini 文件中使用 3 GB 开关;不过,Microsoft Windows 2000 Advanced Server 或 Microsoft Windows Datacenter 版本却可以在 Boot.ini 文件中使用 3 GB 开关。 有关其他信息,请单击下面的文章编号,以查看 Microsoft 知识库中相应的文章:
291988  (http://support.microsoft.com/kb/291988/ ) 4 GB RAM 调优功能和物理地址扩展开关介绍

 

Windows 2000 Advanced Server、Windows 2000 Datacenter 或 Windows Server 2003
32 位寻址模式可以提供的最大物理内存量为 4 GB。所有基于 IA-32 结构的处理器(从 Intel Pentium Pro 开始)都支持一种新的 36 位物理寻址模式,称为“物理地址扩展”(PAE)。PAE 允许 Windows 2000 Advanced Server 上最多使用 8 GB 的物理内存,允许 Windows 2000 Datacenter Server 上最多使用 32 GB 的物理内存。这是因为,根据测试,Windows 2000 Datacenter Server 上的内存限制为 32 GB。PAE 模式内核需要 Intel 结构的处理器 Pentium Pro(或更高性能的处理器),以及 Windows 2000 Advanced Server 或 Windows 2000 Datacenter。 有关其他信息,请单击下面的文章编号,以查看 Microsoft 知识库中相应的文章:
268230  (http://support.microsoft.com/kb/268230/ ) 使用 Intel 物理地址扩展 (PAE) 进行缩减与扩充


注意:Windows Server 2003 上支持的最大内存为 4 GB。但是,Windows Server 2003 Enterprise Edition 支持 32 GB 的物理 RAM。使用物理地址扩展 (PAE) 功能,Windows Server 2003 Datacenter Edition 可支持 64 GB 的物理内存。对于下列系统,可以在 Boot.ini 文件中使用 3 GB 开关:Microsoft Windows Server 2003、Microsoft Windows Server 2003 Enterprise Edition 或 Microsoft Windows Server 2003 Datacenter Edition。
SQL Server 2000
SQL Server 2000 Enterprise 和 SQL Server 2000 Developer Edition 都可以使用下列选项:
如果在 SQL Server 中使用 Boot.ini 的 /PAE 开关和 AWE 启用选项,SQL Server 2000 就可以使用 4 GB 以上的内存。没有 /PAE 开关,SQL Server 最多只能使用 3 GB 的内存。

注意:在 Windows 2000 Data Center 上,要使 AWE 可以使用 16 GB 以上的内存,请确保在 Boot.ini 文件中没有使用 /3GB 开关。如果在 Boot.ini 文件中使用 /3GB 开关,Windows 2000 可能无法正常提供 16 GB 以上的任何内存。

在 32 GB 系统上分配 SQL Server AWE 内存时,Windows 2000 可能至少需要 1 GB 的内存来管理 AWE。


示例
下面的示例说明了如何启用 AWE 并为服务器内存最大值选项配置 6 GB 的限制:
sp_configure 'show advanced options', 1
RECONFIGURE
GO
sp_configure 'awe enabled', 1
RECONFIGURE
GO
sp_configure 'max server memory', 6144
RECONFIGURE
GO
 

原创粉丝点击