注册表文件

注意: 此优化仅适用于内存较大的PC, 如4G内存. 适用于窗口只开不关的用户, 适用于只待机不关机的用户.

首先是DisablePagingExecutive, 位于HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management. Paging Executive 的意思是说, 在驱动和系统代码不使用的时候, 写入磁盘页面, 这里把它改成1, 禁止系统这么做. 下面引用自Microsoft官网

Description

Specifies whether user-mode and kernel-mode drivers and kernel-mode system code can be paged to disk when not in use.

Value Meaning0 Drivers and the kernel can be paged to disk as needed.1 Drivers and the kernel must remain in physical memory.Tip

Setting this value to 1 is useful when debugging drivers, because all of the code and data is always memory resident.

接着是LargeSystemCache, 位于HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management. 简单的说, 就是对文件系统维持大的缓存, 即尽可能用内存来缓存文件(linux好像就是这么做的). 这个选项通常在服务器上被开启, 用来提高性能. 但是时代不同了, 现在家用PC都动不动4G内存了, 内存空着就是浪费. 把这个选项设成1, 开启它. 以下描述引用自Microsoft官网.aspx)

Description

Specifies whether the system maintains a standard size or a large size file system cache, and influences how often the system writes changed pages to disk.

Increasing the size of the file system cache generally improves server performance, but it reduces the physical memory space available to applications and services. Similarly, writing system data less frequently minimizes use of the disk subsystem, but the changed pages occupy memory that might otherwise be used by applications.

以上设置经过一个多月的试验, 证明有效稳定, 后台程序切换到前台明显加快, 再也不用等硬盘吱吱响了.

附上注册表文件, 方便直接导入. 注册表文件