如何在 Windows 7 32 位操作系统中增加物理内存的大小

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4210213/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 07:44:54  来源:igfitidea点击:

How to increase the size of physical memory in windows 7 32 bit OS

windowswindows-7

提问by JoshMachine

I have a total 4 Gb ram and I had installed a Virtual box and had assigned it 1.5 Gb memory. But now my applications in windows are reporting "running out of memory". So i changed the setting in Virtual Box to use 512mb of memory. But still the Task manager in Windows shows only 2Gb of physical memory. I have tried a couple of ways mentioned to increase virtual memory in Advanced system property but that doesn't help either. So i want a way to increase the ram size allocated to windows.

我总共有 4 Gb ram,我安装了一个 Virtual box 并为其分配了 1.5 Gb 内存。但是现在我在 Windows 中的应用程序报告“内存不足”。所以我将 Virtual Box 中的设置更改为使用 512mb 内存。但是 Windows 中的任务管理器仍然只显示 2Gb 的物理内存。我尝试了几种提到的方法来增加高级系统属性中的虚拟内存,但这也无济于事。所以我想要一种方法来增加分配给 Windows 的内存大小。

MSDNsays the Physical memory limit in Windows 7 Ultimate is 4Gb

MSDN说 Windows 7 Ultimate 中的物理内存限制为 4Gb

Thanks

谢谢

回答by JoshMachine

Thanks for the help everyone. I googled yesterday and got a way to increase the size of physical ram through /3GB switch. Here is the method:

谢谢大家的帮助。我昨天用谷歌搜索并找到了一种通过 /3GB 开关增加物理内存大小的方法。这是方法:

To enable the 3GB switch on Windows Vista? or Windows 7:

要在 Windows Vista 上启用 3GB 开关?或 Windows 7:

  1. Right-click Command Prompt in the Accessories program group of the Start menu. Click Run as Administrator.
  2. At the command prompt, enter "bcdedit /set IncreaseUserVa 3072"
  3. Restart the computer.
  1. 右键单击开始菜单附件程序组中的命令提示符。单击以管理员身份运行。
  2. 在命令提示符下,输入“bcdedit /setIncreaseUserVa 3072”
  3. 重新启动计算机。

To disable the 3GB switch:

要禁用 3GB 开关:

  1. Right-click on Command Prompt in the Accessories program group of the Start menu. Click Run as Administrator.
  2. At the command prompt, enter "bcdedit /deletevalue IncreaseUserVa"
  3. Restart the computer.
  1. 右键单击开始菜单附件程序组中的命令提示符。单击以管理员身份运行。
  2. 在命令提示符下,输入“bcdedit /deletevalue increaseUserVa”
  3. 重新启动计算机。

This does not display the increased size in the task manager as it still shows 2GB but now when my applicationx crash they indicate the current memory usage as 3GB

这不会在任务管理器中显示增加的大小,因为它仍然显示 2GB 但现在当我的 applicationx 崩溃时,它们将当前内存使用情况指示为 3GB

回答by Niet the Dark Absol

You may have 4GB of RAM, but usually 1-2GB of that is taken by things like the kernel and the graphics card, leaving you with 2GB "usable" RAM.

您可能有 4GB 的 RAM,但通常其中 1-2GB 会被内核和显卡之类的东西占用,剩下 2GB 的“可用”RAM。