Linux/Centos下清理内存和Cache方法

Linux/Centos下释放内存和缓存方法

$ free -m 

运行sync将dirty的内容写回硬盘
$ sync

通过修改proc系统的drop_caches清理free的cache
$ echo 3 > /proc/sys/vm/drop_caches
 
$ free -m

posted @ 2014-02-17 10:54  emanlee  阅读(738)  评论(0编辑  收藏  举报