当前位置:网站首页>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

边栏推荐
- 为什么数字化转型战略必须包括持续测试?
- Sonic cloud real machine learning summary 6 - 1.4.1 server and agent deployment
- Is PMP certificate really useful?
- PyTorch磨刀篇|argmax和argmin函数
- Electron学习(三)之简单交互操作
- 园区全光技术选型-中篇
- The correct way to set the bypass route
- K-means based user portrait clustering model
- 详解Volatile关键字
- 13th Blue Bridge Cup group B national tournament
猜你喜欢

园区全光技术选型-中篇

Mysql——》索引存储模型推演

Significance and measures of security encryption of industrial control equipment

Application of real estate management based on 3D GIS

Why does blocprovider feel similar to provider?

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

91.(cesium篇)cesium火箭发射模拟

linux下清理系统缓存并释放内存
![[commercial terminal simulation solution] Shanghai daoning brings you Georgia introduction, trial and tutorial](/img/b0/029cdea72483ed9bc8a0d66908983a.png)
[commercial terminal simulation solution] Shanghai daoning brings you Georgia introduction, trial and tutorial

IDA动态调试apk
随机推荐
Pytorch sharpening chapter | argmax and argmin functions
Application of real estate management based on 3D GIS
Learning notes on futuretask source code of concurrent programming series
AirServer2022最新版功能介绍及下载
Mask wearing detection method based on yolov5
Unity 使用Sqlite
Using closures to switch toggle by clicking a button
What is the difference between consonants and Initials? (difference between initials and consonants)
MySQL系列之事务日志Redo log学习笔记
TOPS,处理器运算能力单位、每秒钟可进行一万亿次
物联网rfid等
Copy ‘XXXX‘ to effectively final temp variable
Business visualization - make your flowchart'run'up
Four methods of JS array splicing [easy to understand]
Relationship and difference between enterprise architecture and project management
信标委云原生专题组组长,任重道远!
【MySQL】explain的基本使用以及各列的作用
Matlab traverses images, string arrays and other basic operations
【MySQL】数据库优化方法
flink sql-client 使用 对照并熟悉官方文档