HVACOL - Heating, Ventilation and Air Conditioning Online

 Forgot Password
 Register Now





Views: 6683

Windows 10 内存压缩(Memory Compression)启用和关闭操作    

          2021-2-18 13:09:24
内存压缩技术在Linux和Mac OS中早就存在了,Windows 10中也引入了这种功能。使用内存压缩技术可以避免使用到较多的分页文件,内存的解压操作比分页文件的交换速度快得多,但是也会损耗一些CPU的性能。



对于自身计算的内存比较大,并不需要使用内存压缩技术,因此这里对其关闭。





使用管理员身份打开PowerShell

Win+R 快捷键,在命令行中输入powershell打开界面




禁用内存压缩(Disable Memory Compression):

Disable-MMAgent  -MemoryCompression

命令执行完成后,重启你的计算机,之后Memory Compression所使用的内存信息将会变为0




启用内存压缩(Enable Memory Compression):

Enable-MMAgent  -MemoryCompression

命令执行完成后,重启你的计算机,之后Memory Compression将会正常使用





The other:


为爱机扩展了内存,系统确实流畅了许多;但发现怎么也用不完,是不是有点浪费?而且CPU使用率居高不下,为什么?

查阅了资料,终于找到了结果:Windows 10新增了内存压缩功能,对于内存较小的PC来说有很大的价值,但换来的却是消耗了较高的处理器资源;

那如果我们升级了内存之后,为节约处理器资源,是否可以关闭这项功能呢?

答案是可以的!

查看状态
get-mmagent


ApplicationLaunchPrefetching : True
ApplicationPreLaunch         : True
MaxOperationAPIFiles         : 256
MemoryCompression            : True
OperationAPI                 : True
PageCombining                : True
PSComputerName               :


关闭内存压缩
disable-mmagent -mc

重新查看状态
get-mmagent


ApplicationLaunchPrefetching : True
ApplicationPreLaunch         : True
MaxOperationAPIFiles         : 256
MemoryCompression            : False
OperationAPI                 : True
PageCombining                : True
PSComputerName               :



如果想重新启用
enable-mmagent -mc


记得重启哦!!!





ashrae| 供暖通风空调制冷 ( 鄂ICP备19028048 )

Copyright © 2000 - 2024.       Powered by discuz

快速回复 scroll top return list