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

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.

 

posted @ 2015-02-28 20:59  spaceship9  阅读(375)  评论(0编辑  收藏  举报