当前位置:网站首页>Clean up system cache and free memory under Linux
Clean up system cache and free memory under Linux
2022-07-01 18:53:00 【InfoQ】
sync
> sync;sync;sync
Manual memory release command
> echo 3>/proc/sys/vm/drop_caches
- 0: Don't release ( System default )
- 1: Free page cache
- 2: Release dentries and inodes
Look at the memory
> free -h
total—— Total physical memory
used—— Used memory , Generally, this value will be relatively large , Because this value includes cache+ Memory used by the application
free—— Completely unused memory
shared—— Application shared memory
buffers—— cache , It's mainly used for catalogues ,inode It's worth waiting for (ls Large directories can see this value increase )
cached—— cache , For open files
Restore default settings
> echo 0>/proc/sys/vm/drop_caches
- 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

边栏推荐
- 如何使用物联网低代码平台进行个人设置?
- Leetcode-21 combines two ordered linked lists
- Leetcode-128 longest continuous sequence
- 解决方案:可以ping别人,但是别人不能ping我
- 力扣每日一题-第32天-1232. 缀点成线
- 6款红黄黑榜摄像头评测:谁最安全?谁画质好?从此让你不再踩雷
- 宏观视角看抖音全生态
- Relational database management system of easyclick
- How to find customers for investment attraction in industrial parks
- C# SelfHost WebAPI (2)
猜你喜欢

斯坦福、Salesforce|MaskViT:蒙面视觉预训练用于视频预测

What designs are needed in the architecture to build a general monitoring and alarm platform

What if the reliability coefficient is low? How to calculate the reliability coefficient?

bean的生命周期核心步骤总结

2、《创建您自己的NFT集合并发布一个Web3应用程序来展示它们》启动并运行您的本地环境

Lumiprobe 生物分子定量丨QuDye 蛋白定量试剂盒

Leetcode-141环形链表

Evaluation of 6 red, yellow and black list cameras: who is the safest? Who has good picture quality? From now on, let you no longer step on thunder

How to manage 1000 anchors by one person?

LeetCode-21合并两个有序链表
随机推荐
Sum of three numbers
[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush
Salesmartly has some tricks for Facebook chat!
Relational database management system of easyclick
创建您自己的NFT集合并发布一个Web3应用程序来展示它们(介绍)
Viewing the whole ecology of Tiktok from a macro perspective
斯坦福、Salesforce|MaskViT:蒙面视觉预训练用于视频预测
信度系数低怎么办?信度系数具体怎么算?
解决方案:可以ping别人,但是别人不能ping我
R language ggplot2 visualization: gganimate package transition_ Time function to create dynamic scatter animation (GIF), shadow_ The wake function configures the gradient falloff tailing effect of the
Facebook聊单,SaleSmartly有妙招!
Leetcode-141环形链表
Lumiprobe lumizol RNA extraction reagent solution
每周推薦短視頻:警惕“現象”與“問題”相互混淆
R language ggplot2 visualization: visualize the line graph and add customized Y-axis label information to the line graph using the labels function
How to manage 1000 anchors by one person?
Must see, time series analysis
摄像头的MIPI接口、DVP接口和CSI接口[通俗易懂]
记一次 .NET 差旅管理后台 CPU 爆高分析
Leetcode-83 删除排序链表中重复的元素