当前位置:网站首页>有关WIN10的内存压缩
有关WIN10的内存压缩
2022-06-27 10:05:00 【华为云】
内存压缩是什么
内存压缩是Win10的一项新功能,这个功能的作用是压缩内存,即当内存管理器觉察到内存不够用时,它会将无用的内存进行压缩,并放在物理内存上,而不再是将它们写入硬盘(虚拟内存)。压缩原理和我们压缩文件是一样的,通过特定算法,降低内存消耗。内存压缩和虚拟内存的作用雷瑟,都是解决内存容量不足的问题,让系统能够在有限的物理内存中同时运行更多程序。不同的是,内存压缩比虚拟内存更快,因为所有操作都在物理内存中进行,无需经过硬盘。不过也有缺点,内存压缩会额外占用CPU进行压缩操作。
如何取舍
由于一些特殊的历史原因。我的电脑为9代i3的处理器。但是它有24GB的大内存。因此我的内存性能是溢出的,反而CPU有点捉襟见肘。因此我的做法是关闭了内存压缩的功能。 而对于物理内存容量不够大,同时CPU性能较高的计算机,开启内存压缩就比较经济实惠。
设置方法
设置
打开PowerShell(管理员身份)官方教程
首先以管理员的身份打开Win10自带的PowerShell:可以通过Windows搜索或按住Shift单击开始按钮打开PowerShell。
查看状态
在PowerShell中输入如下命令:
get-mmagent //get memory agent?你会得到如下显示
ApplicationLaunchPrefetching : True //应用启动预取 ApplicationPreLaunch : True //处理应用预启动 MaxOperationAPIFiles : 256 //内存预取文件接口数量 MemoryCompression : False //内存压缩状态 OperationAPI : True //操作接口 PageCombining : True // PSComputerName :图中的配置表示内存压缩已经关闭
开启
输入如下命令:
Enable-MMAgent关闭
输入如下命令:
Disable-MMAgent边栏推荐
- Installation and usage of source insight tool
- 小白也能看懂的网络基础 03 | OSI 模型是如何工作的(经典强推)
- Only one ConfirmCallback is supported by each RabbitTemplate 解决办法
- 反编译jar包,修改后重新编译为jar包
- 运维一线工作常用shell脚本再整理
- Advantages and disadvantages of distributed file storage system
- 【面经】云泽科技
- C语言学习-Day_04
- Basic violin plot in R with plot
- C語言學習-Day_04
猜你喜欢
随机推荐
文件名设置导致writelines写入报错:OSError: [Errno 22] Invalid argument
【SO官方采访】为何使用Rust的开发者如此深爱它
MySQL proficient-01 addition, deletion and modification
手机影像内卷几时休?
On June 23, the video address of station B in the third episode of rust chat room
2021 CSP J2入门组 CSP-S2提高组 第2轮 视频与题解
Decompile the jar package and recompile it into a jar package after modification
Une compréhension facile de la simplicité de la classification bayésienne du lissage laplacien
如何获取GC(垃圾回收器)的STW(暂停)时间?
How do I get the STW (pause) time of a GC (garbage collector)?
Arduino PROGMEM静态存储区的使用介绍
R language plot visualization: plot to visualize the two-dimensional histogram contour map, add numerical labels on the contour lines, customize the label font color, and set the mouse hover display e
Quick start CherryPy (1)
Google browser chropath plug-in
C# Any()和AII()方法
CPU设计(单周期和流水线)
Only one ConfirmCallback is supported by each RabbitTemplate 解决办法
测试同学怎么参与codereview
flutter 微信分享
Advantages and disadvantages of distributed file storage system







