当前位置:网站首页>Clean up system cache and free memory under Linux
Clean up system cache and free memory under Linux
2022-07-01 22:33:00 【51CTO】
When linux After reading files frequently , Physical memory will soon run out , When the program is finished , Memory will not be released normally , But all the time caching, Therefore, it is necessary to manually clean up the system cache to free memory .
sync
The operating system is running , The accessed files will be placed in buffer in . To avoid power failure , Data loss caused by faults such as , We need to take buffer Cache data in is written to disk
Do it manually sync command ( describe :sync The command runs sync Subroutines . If you have to stop the system , Then run sync Command to ensure file system integrity .sync Command to write all unwritten system buffers to disk , Include modified i-node、 Delayed block I/O And read-write mapping files
Manual memory release command
drop_caches The value of can be 0-3 Number between , It means different things :
- 0: Don't release ( System default )
- 1: Free page cache
- 2: Release dentries and inodes
Look at the memory
Restore default settings
Caching can improve the efficiency of the system , If you find that the system memory is often insufficient , You should consider adding memory , Instead of cleaning up often
Link to the original text : https://rumenz.com/rumenbiji/linux_drop_caches.html
WeChat official account : Entry station
- reply 【1001】 obtain linux Quick reference manual of common commands
- reply 【10010】 obtain Alibaba cloud ECS Operation and maintenance Linux System diagnosis
- reply 【10012】 obtain Linux Learning notes 【 The strong summary is worth seeing 】
- reply 【10013】 obtain shell A concise tutorial

边栏推荐
- Four methods of JS array splicing [easy to understand]
- 灵动微 MM32 多路ADC-DMA配置
- Simple interactive operation of electron learning (III)
- Can you get a raise? Analysis on gold content of PMP certificate
- [live broadcast review] the first 8 live broadcasts of battle code Pioneer have come to a perfect end. Please look forward to the next one!
- Mysql——》MyISAM存储引擎的索引
- 微软、哥伦比亚大学|GODEL:目标导向对话的大规模预训练
- Icml2022 | interventional contrastive learning based on meta semantic regularization
- GaussDB(DWS)主动预防排查
- MySQL系列之事务日志Redo log学习笔记
猜你喜欢

QT版本华睿相机的Demo程序实现
![[noip2013] building block competition [noip2018] road laying greed / difference](/img/d1/a56231cd4eb3cc1d91d8a55048ccfe.png)
[noip2013] building block competition [noip2018] road laying greed / difference

MySQL之MHA高可用配置及故障切换

对象内存布局

指标陷阱:IT领导者易犯的七个KPI错误

plantuml介绍与使用

mysql 学习笔记-优化之SQL优化

Do you want to make up for the suspended examination in the first half of the year? Including ten examinations for supervision engineers, architects, etc

焱融看 | 混合云时代下,如何制定多云策略

One of the basic learning of function
随机推荐
spark analyze命令使用及其作用 map join broadcast join 广播join
Unity uses SQLite
plantuml介绍与使用
【MySQL】索引的创建、查看和删除
Recent public ancestor offline practice (tarjan)
IDA动态调试apk
In the past 100 years, only 6 products have been approved, which is the "adjuvant" behind the vaccine competition
Communication between browser tab pages
ICML2022 | 基于元语义正则化的介入性对比学习
【MySQL】数据库优化方法
Why must digital transformation strategies include continuous testing?
91.(cesium篇)cesium火箭发射模拟
TOPS,处理器运算能力单位、每秒钟可进行一万亿次
[noip2013] building block competition [noip2018] road laying greed / difference
详解LockSupport的使用
Spark interview questions
多种智能指针
Mysql——》MyISAM存储引擎的索引
Using closures to switch toggle by clicking a button
首席信息官对高绩效IT团队定义的探讨和分析