最近发现自己机器有个进程(Memory Compression)很奇怪, 占用内存和线程都比较高
cpu线程
内存
不知道这个进程是提高性能还是提高内存利用率的,因为的内存是32g的,我已感觉没有必要压缩,所以我选择禁用它
开启windows powershell(管理员)(win + x快捷键)
禁用内存压缩
Disable-MMAgent -mc
重启生效,不行立马重启的可以使用taskkill
taskkill /pid 2764 /f (实测不能终止这个进程,可能是终止会导致内存数据不一致问题,看来只能重启了)
开启命令
Enable-MMAgent -mc
查看当前状态
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 :