码迷,mamicode.com
首页 > 系统相关 > 详细

linux memory release commands内存清理/释放命令

时间:2015-02-28 21:35:27      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:

linux 内存清理/释放命令

You could find reference from here:

http://jingyan.baidu.com/article/597a06436a687f312b5243f3.html

Basically it looks like this:

----------------------------------

清理前内存使用情况

free –m   

 

或者 

free

 

清理内存

 

echo 1 > /proc/sys/vm/drop_caches 

 

清理后内存使用情况
free -m

完成!

查看内存条数命令:

dmidecode |grep -A16 "Memory Device$"

 

----------------------------------

explaination:

the

echo 1 > /proc/sys/vm/drop_caches

this will make system drop caches. Then vacancy comes out.

 

linux memory release commands内存清理/释放命令

标签:

原文地址:http://www.cnblogs.com/spaceship9/p/4306206.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!