32位系统与4G内存限制的关系

上传人:宝路 文档编号:20892273 上传时间:2017-11-22 格式:DOCX 页数:4 大小:18.92KB
返回 下载 相关 举报
32位系统与4G内存限制的关系_第1页
第1页 / 共4页
32位系统与4G内存限制的关系_第2页
第2页 / 共4页
32位系统与4G内存限制的关系_第3页
第3页 / 共4页
32位系统与4G内存限制的关系_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

《32位系统与4G内存限制的关系》由会员分享,可在线阅读,更多相关《32位系统与4G内存限制的关系(4页珍藏版)》请在金锄头文库上搜索。

1、32 位系统与 4G 内存限制的关系-32 位系统真的只能用 4G 内存吗32 位系统与 4G 内存限制的关系-32 位系统真的只能用 4G 内存吗?为了这个 32 位系统与 4G 内存限制关系的问题,我们按顺序看看如下的分析。1、硬件。从硬件上讲,内存访问寻址,主要在 CPU,CPU 主要在寄存器(GPR)。32 位的系统,指的是 32 位的 CPU,也就是指 32 位的寄存器。32 位寄存器的寻址能力是 2 的 32 次方,这个是没错的,就是 4GB。但是 10 年前,32 位的 x86 奔腾 pro 处理器推出的时候,它的地址总线是多少位寻址?36 位。整整多了 2 的 4 次方。也就是

2、 16 倍。所以,这个 32 位的奔腾 pro 处理器,可以寻址 64GB。4GB 的 16 倍,也就是 64GB。这个叫做 PAE, 物理地址扩展。也叫 PAE-36bit。通过这个技术手段,32 位系统进行了扩展, CPU(寄存器)对内存的寻址,可以到 64GB。2、既然 32 位系统的硬件可以寻址 64GB。那么 32 位的操作系统当然应该有办法。32 位操作系统肯定也有办法,沿着 PAE 的路,使用 64GB 内存。标准的 32 位地址最多可映射 4 GB 内存。因此, 32 位进程的标准地址空间限制为 4 GB。默认情况下,在 32 位 Microsoft Windows 操作系统中

3、,将为操作系统保留 2 GB 空间,另外 2 GB 空间可由应用程序使用。如果在 Windows 2000 Advanced Server 的 Boot.ini 文件中指定了 /3gb 参数,则操作系统将仅保留 1 GB 的地址空间,应用程序最多可以访问 3 GB 的空间。AWE 是 Windows 的内存管理功能的一组扩展,它使应用程序( 基于用户模式)能够使用的内存量超过通过标准 32 位寻址可使用的 2-3 GB 内存。AWE 允许应用程序获取物理内存,然后将非分页内存的视图动态映射到 32 位地址空间。虽然 32 位地址空间限制为 4 GB,但是非分页内存却可以远远大于 4 GB。这使

4、需要大量内存的应用程序(如大型数据库系统)能使用的内存量远远大于 32 位地址空间所支持的内存量。SQL Server 2005 Enterprise Edition 支持地址窗口化扩展插件 (AWE),从而允许在 32 位版本的 Microsoft Windows 操作系统上使用 4 GB 以上的物理内存。最多可支持 64 GB 的物理内存。运行于 Microsoft Windows 2000 上的 SQL Server 实例使用静态 AWE 内存分配,而运行于 Microsoft Windows 2003 上的实例使用动态 AWE 内存分配。为了使用 AWE,应用程序必须:1. 使用 Wi

5、n32 的 AllocateUserPhisycalPages API 函数分配扩展物理内存。该函数需要调用者具有将内存页锁定的权限。2. 使用 VirtualAlloc API 函数在进程的地址空间中创建一个区域,作为与扩展物理内存进行映射的一个窗口。3. 使用 MapUserPhysicalPages 或者 MapUserPhysicalPagesScatter API 函数,将扩展物理内存映射到这个虚拟内存窗口中。在数据库使用 AWE 功能之前,必须对操作系统和 SQL 数据库分别进行设置。32 位操作系统 windows2003 的各版本系统内存限制Windows Server 200

6、3 系列所支持的物理内存量有所增加。AWE 可使用的物理内存取决于您所使用的操作系统。下面的列表列出了写入时每个 Windows Server 2003 操作系统版本可以使用的最大物理内存限制。Windows Server 2003 Standard Edition 最高支持 4 GB 的物理内存。Windows Server 2003 Enterprise Edition 最高支持 32 GB 的物理内存。Windows Server 2003 Datacenter Edition 最高支持 64 GB 的物理内存。以上内存限制部分来自微软网站的文章,应该靠谱。下面的内存限制表,来自 it1

7、68,似乎不是那么靠谱(比如,它说,Windows Server 2003 Datacenter Edition 支持 128GB),仅供参考。操作系统 内存容量Windows Server 2003 Web Edition 2GBWindows Vista StarterWindows Vista Home BasicWindows Vista Home PremiumWindows Vista BusinessWindows Vista EnterpriseWindows Vista UltimateWindows Server 2003 Standard EditionWindows S

8、erver 2003 R2 Standard EditionWindows Server 2003 Standard Edition SP1Windows Small Business Server 2003Windows Home ServerWindows Storage Server 20034GBWindows Storage Server 2003 Enterprise EditionWindows Vista Home Basic x64 8GBWindows Vista Home Premium x64Windows Server 2003 Standard Edition x6

9、4 16GBWindows Server 2003 Enterprise EditionWindows Server 2003 R2 Standard Edition x64Windows Server 2003 Standard Edition SP1 x64Windows Compute Cluster Server 2003 x64Windows Web Server 2008 x64Windows Server 2008 Standard x6432GBWindows Server 2003 Enterprise Edition SP2Windows Server 2003 Enter

10、prise Edition x64Windows Server 2008 EnterpriseWindows Server 2008 Datacenter64GBWindows Server 2003 Datacenter EditionWindows Vista Business x64Windows Vista Enterprise x64Windows Vista Ultimate x64128GBWindows Server 2003 Datacenter Edition x64 512GBWindows Server 2003 R2 Enterprise Edition x64Win

11、dows Server 2003 Enterprise Edition SP1 x64Windows Server 2003 R2 Datacenter Edition x64Windows Server 2003 Datacenter Edition SP1 x641TBWindows Server 2003 Enterprise Edition SP2 x64Windows Server 2003 Datacenter Edition SP2 x64 2TBWindows Server 2008 Enterprise x64Windows Server 2008 Datacenter x64Windows Server 2008 IA64

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号