当前位置:网站首页>有关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边栏推荐
猜你喜欢

【报名】基础架构设计:从架构热点问题到行业变迁 | TF63

隐私计算FATE-离线预测
Scientists develop two new methods to provide stronger security protection for intelligent devices

Reading and writing Apache poi

用户认证技术

mysql数据库汉字模糊查询出现异常

Oracle连接MySQL报错IM002

C any() and aii() methods

Installation and use of SVN version controller

你睡觉时大脑真在自动学习!首个人体实验证据来了:加速1-4倍重放,深度睡眠阶段效果最好...
随机推荐
Multi thread implementation rewrites run (), how to inject and use mapper file to operate database
产品力对标海豹/Model 3,长安深蓝SL03预售17.98万起
Reorganize common shell scripts for operation and maintenance frontline work
强化学习中好奇心机制
vector::data() 指针使用细节
[STM32] Hal library stm32cubemx tutorial 12 - IIC (read AT24C02)
10 常见网站安全攻击手段及防御方法
巴基斯坦安全部队开展反恐行动 打死7名恐怖分子
CPU design (single cycle and pipeline)
Freemarker
队列,双向队列,及其运用
R language plot visualization: visualize the normalized histograms of multiple data sets, add density curve KDE to the histograms, set different histograms to use different bin sizes, and add edge whi
Unity - - newtonsoft. Analyse json
R langage plotly visualisation: visualisation de plusieurs histogrammes normalisés d'ensembles de données et ajout d'une courbe de densité KDE à l'histogramme, réglage de différents histogrammes en ut
TDengine 邀请函:做用技术改变世界的超级英雄,成为 TD Hero
Technology is as important as business. It is wrong to favor either side
leetcode:522. 最长特殊序列 II【贪心 + 子序列判断】
Explain the imaging principle of various optical instruments in detail
用户认证技术
技术与业务同等重要,偏向任何一方都是错误