在提供给它的用户的进步中,Windows 7 对虚拟内存的处理是迄今为止最有效的。但是,随着计算机中RAM的增加,页面文件的大小也必须增加以适应计算机内存的更大容量。
使用已清除的页面文件启动每个Windows 7(Windows 7)会话有几个优点。了解虚拟内存以及如何在操作系统关闭时强制Windows 7清除您的虚拟内存页面文件。(Windows 7)
什么是虚拟内存?
您可以放入计算机的内存量是有限的。为了更有效地利用计算机必须跟踪的信息,Windows 7使用硬盘驱动器的一小部分来模拟更多内存并使应用程序更容易访问内存分配。
为虚拟内存预留的硬盘空间量范围从零到您计算机中安装的内存的大约 1 到 2 倍。关于Windows(Windows)应该为虚拟内存留出多少内存存在很多争论,但一般的启发式方法是 PC 中物理内存的 1.5 倍。
为什么要清除虚拟内存?
当您关闭 Windows 7 时,计算机RAM中的数据会丢失,因为 PC 内存是易失性的。这意味着一旦计算机断电,内存中的所有数据都会丢失。由于虚拟内存存储在硬盘驱动器上,当您在下一次会话中启动计算机时,关闭时保留在虚拟内存中的内容仍然存在。
虚拟内存在 Windows 7 中非常安全,因为只有操作系统有权读取和写入虚拟内存页面文件。但是,也存在一些安全风险。
如果您双启动计算机,则有人可能会在使用其他操作系统时获得访问权限并从页面文件中读取数据,因为 Windows 7 未运行并且无法保护该文件。较小的威胁是病毒或其他恶意软件可能破坏或窃取虚拟内存中的信息。
解决此问题的一种方法是让Windows 7在操作系统关闭时删除虚拟内存页面文件。这样做的一个缺点是,当Windows 7(Windows 7)清除 2 到 16 GB 的文件时,您的关机时间最多可能会增加 3 分钟。在关闭时清除页面文件的选择是安全与便利的问题。
如何在关机时清除(Shutdown)虚拟内存页面文件(Virtual Memory Pagefile)
要强制Windows 7在关机时清除虚拟内存页面文件,首先使用具有管理权限的帐户登录操作系统。
注意:此方法不适用于拥有 Windows 家庭版或入门版的用户,因为您无法访问本地安全策略。 (Note: This method will not work for users who have the Home or Starter editions of Windows because you cannot access the local security policy. )
然后,单击Start>All Programs>Administrative Tools>Local Security Policy。这将打开本地安全策略(Local Security Policy)选项窗口。
在左侧窗格中,单击本地策略文件夹(Local Polices Folder),然后单击安全选项(Security Options)文件夹。这将显示各种本地计算机安全策略,供您为您的 PC 选择。
在右侧窗格中,找到标题为Shutdown: Clear Virtual Memory Pagefile的选项。右键(Right)单击此选项并选择Properties。
在本地安全设置(Local Security Setting)选项卡上,选择启用(Enabled)选项。单击确定(OK)按钮,现在每次关闭 Windows 7 时,您的 PC 的虚拟内存页面文件都将被清除所有数据。
留在虚拟内存页面文件中的数据存在安全风险,尤其是当您使用除Windows 7(Windows 7)之外的其他操作系统双启动 PC 时。通过强制Windows 7清除您的页面文件,您将拥有一台更安全的计算机,并且您的页面文件中不会有任何剩余信息来减慢您的速度。事实上,许多人报告说,当他们在虚拟内存中没有任何内容的情况下开始每个会话时,Windows 7的体验通常会更好。(Windows 7)
Force Windows 7 to Clear Virtual Memory Pagefile at Shutdown
Among the advances offered to it uѕers, Wіndows 7’s handling оf virtual memоry is the most efficient to dаte. However, as the RAM in a computer increases, so must the size of the pagefilе to accommodate the larger capacity of computer memory.
There are several advantages to starting each Windows 7 session with a cleared pagefile. Learn about virtual memory and how to force Windows 7 to clear your virtual memory pagefile whenever the operating system shuts down.
What is Virtual Memory?
The amount of memory you can put into your computer is finite. To make more efficient use of information that your computer must keep track of, Windows 7 uses a small portion of your hard drive to simulate more memory and make memory allocation more accessible by applications.
The amount of hard drive space set aside for virtual memory ranges from zero to about 1 to 2 times the memory you have installed in your computer. There is a lot of debate as to how much memory Windows should set aside for virtual memory but 1.5 times the physical memory in a PC is the general heuristic.
Why Clear Virtual Memory?
When you shutdown Windows 7, the data in your computer’s RAM is lost because PC memory is volatile. This means that once power is cut from the computer all data in the memory is lost. Since virtual memory is stored on the hard drive, what remains in the virtual memory at shutdown will still be there when you start up your computer at your next session.
Virtual memory is quite secure within Windows 7 because only the operating system has the authority to read and write to the virtual memory pagefile. However, there are some security risks involved.
If you dual boot your computer, it is possible for someone to gain access and read data from the pagefile when using the other operating system because Windows 7 isn’t running and can’t protect the file. A lesser threat is the possibility that a virus or other maleware could corrupt or steal the information in virtual memory.
One way to combat this is to simply have Windows 7 delete the virtual memory pagefile whenever the operating system shuts down. The one disadvantage to this is that it can add up to three minutes to your shutdown time as Windows 7 clears the 2 to 16 gigabyte file. The choice to clear the pagefile at shutdown is a question of security vs. convenience.
How to Clear Virtual Memory Pagefile at Shutdown
To force Windows 7 to clear the virtual memory pagefile at shutdown, begin by logging in to the operating system using an account with administrative privileges.
Note: This method will not work for users who have the Home or Starter editions of Windows because you cannot access the local security policy.
Then, click on Start>All Programs>Administrative Tools>Local Security Policy. This will open up the Local Security Policy options window.
In the left hand pane, click on the Local Polices Folder and then click on the Security Options folder. This will display a variety of local computer security policies from which to choose for your PC.
In the right hand pane, locate an option titled Shutdown: Clear Virtual Memory Pagefile. Right click on this option and choose Properties.
On the Local Security Setting tab, choose the Enabled option. Click the OK button and now every time you shut Windows 7 down, your PC’s virtual memory pagefile will be cleared of all data.
The data left in your virtual memory pagefile is a security risk, especially if you dual boot your PC with another operating system besides Windows 7. By forcing Windows 7 to clear your pagefile, you have a more secure computer and there will be no leftover information in your pagefile to slow you down. In fact, many people report a generally better Windows 7 experience when they start each session with nothing in virtual memory.