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

边栏推荐
- 毕业总结
- What designs are needed in the architecture to build a general monitoring and alarm platform
- Leetcode-160相交链表
- 搭建一个通用监控告警平台,架构上需要有哪些设计
- ACM MM 2022视频理解挑战赛视频分类赛道冠军AutoX团队技术分享
- Blue Bridge Cup real problem: word analysis
- 主成分之综合竞争力案例分析
- Find all missing numbers in the array
- How to operate technology related we media well?
- Qt中的QFile读写文件操作
猜你喜欢
![[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)](/img/92/f3a70e7086aeedf41eea3eef98b5aa.jpg)
[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)
![[today in history] February 15: Pascal's father was born; YouTube was founded; Kotlin language comes out](/img/f3/20b73f3545cdd17b9fbc52bf493ab4.jpg)
[today in history] February 15: Pascal's father was born; YouTube was founded; Kotlin language comes out

Leetcode-160相交链表

3、《创建您自己的NFT集合并发布一个Web3应用程序来展示它们》在本地铸造 NFT

因子分析怎么计算权重?

Halcon图片标定,使得后续图片处理过后变成与模板图片一样

1、《创建您自己的NFT集合并发布一个Web3应用程序来展示它们》什么是NFT

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

Leetcode203 移除链表元素

Search 2D matrix 2
随机推荐
Sanfeng cloud 0215 I often use
Three. JS learning - basic operation of camera (learn from)
Reading notes series "modern methods of C language programming" -- Chapter 2
Unity learning fourth week
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
Lumiprobe 双功能交联剂丨Sulfo-Cyanine5 双-NHS 酯
How to find the optimal learning rate
R语言epiDisplay包ordinal.or.display函数获取有序logistic回归模型的汇总统计信息(变量对应的优势比及其置信区间、以及假设检验的p值)、write.csv函数保存csv
About enterprise middle office planning and it architecture microservice transformation
R语言使用epiDisplay包的aggregate函数将数值变量基于因子变量拆分为不同的子集,计算每个子集的汇总统计信息
Memo - about C # generating barcode for goods
Xia CaoJun ffmpeg 4.3 audio and video foundation to engineering application
每周推薦短視頻:警惕“現象”與“問題”相互混淆
2020,最新手机号码手机验证正则表达式,持续更新
ACM MM 2022视频理解挑战赛视频分类赛道冠军AutoX团队技术分享
C operator overloads the query table
Navicat Premium 15 永久破解和2021版本最新IDEA破解(亲测有效)
主成分之综合竞争力案例分析
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?