memory compression是什么?
这个是微软的新内存管理机制:Memory Compression,其主要原理是压缩不经常访问的内存页面,以减少对硬盘的读取和写入
为什么要关闭该功能?
该功能开启会发现,系统的内存和线程都比较高
如何关闭?
开启windows powershell(管理员)(win + x快捷键)
Get-mmagent
PS C:\Windows\system32> get-mmagent
ApplicationLaunchPrefetching : True
ApplicationPreLaunch : True
MaxOperationAPIFiles : 256
MemoryCompression : True
OperationAPI : True
PageCombining : False
PSComputerName :
PS C:\Windows\system32> Disable-MMAgent -mc
PS C:\Windows\system32> get-mmagent
ApplicationLaunchPrefetching : True
ApplicationPreLaunch : True
MaxOperationAPIFiles : 256
MemoryCompression : False
OperationAPI : True
PageCombining : False
PSComputerName :
此时会发现变化:MemoryCompression : False
重启生效
用到的指令:
禁用内存压缩
Disable-MMAgent -mc
如果想要开启的话直接输入以下命令即可
Enable-MMAgent -mc