当前位置:网站首页>linux下清理系统缓存并释放内存
linux下清理系统缓存并释放内存
2022-07-01 18:38:00 【InfoQ】
sync
> sync;sync;sync
手动释放内存的命令
> echo 3>/proc/sys/vm/drop_caches
- 0:不释放(系统默认值)
- 1:释放页缓存
- 2:释放dentries和inodes
查看内存
> free -h
total——总物理内存
used——已使用内存,一般情况这个值会比较大,因为这个值包括了cache+应用程序使用的内存
free——完全未被使用的内存
shared——应用程序共享内存
buffers——缓存,主要用于目录方面,inode值等(ls大目录可看到这个值增加)
cached——缓存,用于已打开的文件
恢复默认设置
> echo 0>/proc/sys/vm/drop_caches
- 回复【1001】获取 linux常用命令速查手册
- 回复【10010】获取 阿里云ECS运维Linux系统诊断
- 回复【10012】获取 Linux学习笔记【强悍总结值得一看】
- 回复【10013】获取 shell简明教程

边栏推荐
- R language uses the DOTPLOT function of epidisplay package to visualize the frequency of data points in different intervals in the form of point graph, and uses PCH parameters to customize the shape o
- 创建您自己的NFT集合并发布一个Web3应用程序来展示它们(介绍)
- 搭建一個通用監控告警平臺,架構上需要有哪些設計
- Three.js学习-相机Camera的基本操作(了解向)
- 12种数据量纲化处理方式
- 11、用户、组和权限(1)
- [today in history] February 15: Pascal's father was born; YouTube was founded; Kotlin language comes out
- Li Kou daily question - Day 32 -589 N × Preorder traversal of tree
- Bernoulli distribution (a discrete distribution)
- 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?

Lumiprobe 双功能交联剂丨Sulfo-Cyanine5 双-NHS 酯

Must see, time series analysis

C# SelfHost WebAPI (2)

12. Design of power divider for ads usage record

Write an open source, convenient and fast database document query and generation tool with WPF

About enterprise middle office planning and it architecture microservice transformation

Halcon image calibration enables subsequent image processing to become the same as the template image

Blue Bridge Cup real topic: the shortest circuit

宏观视角看抖音全生态
随机推荐
R language uses the aggregate function of epidisplay package to divide numerical variables into different subsets based on factor variables, and calculate the summary statistics of each subset
为什么独立站卖家都开始做社交媒体营销?原来客户转化率能提高这么多!
Leetcode-21 combines two ordered linked lists
ACM MM 2022视频理解挑战赛视频分类赛道冠军AutoX团队技术分享
[image denoising] matlab code for removing salt and pepper noise based on fast and effective multistage selective convolution filter
Relational database management system of easyclick
Sum of three numbers
Leetcode203 移除链表元素
Lumiprobe bifunctional crosslinker sulfo cyanine 5 bis NHS ester
每周推薦短視頻:警惕“現象”與“問題”相互混淆
Go Technology Daily (2022-02-14) - go language slice interview real questions 8 consecutive questions
Navicat premium 15 permanent cracking and 2021 latest idea cracking (valid for personal testing)
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
数据库基础:select基本查询语句
R语言使用epiDisplay包的followup.plot函数可视化多个ID(病例)监测指标的纵向随访图、使用n.of.lines参数指定显示的病例数
540. Single element in ordered array / 1684 Count the number of consistent strings
js找出数字在数组中下一个相邻的元素
The 13th simulation problem of the single chip microcomputer provincial competition of the Blue Bridge Cup
用WPF写一款开源方便、快捷的数据库文档查询、生成工具
R语言使用epiDisplay包的aggregate函数将数值变量基于因子变量拆分为不同的子集,计算每个子集的汇总统计信息