另一篇:http://www.linuxfly.org/post/320/
2.开始清理
echo 1 > /proc/sys/vm/drop_caches
dmidecode | grep -A16 "Memory Device$"
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cache释放:
To free pagecache:
echo 1 > /proc/sys/vm/drop_caches
To free dentries and inodes:
echo 2 > /proc/sys/vm/drop_caches
To free pagecache, dentries and inodes:
echo 3 > /proc/sys/vm/drop_caches
因为LINUX的内核机制,一般情况下不需要特意去释放已经使用的cache。这些cache起来的内容可以增加文件以及的读写速度。
先说下free命令怎么看内存
第三行表示swap的使用:
used——已使用
free——未使用
!将/proc/sys/vm/drop_caches值设为3
Because this is a non-destructive operation and dirty objects