清除pagecache

 

先执行sync


# echo 1 > /proc/sys/vm/drop_caches

清 除dentries和inodes cache


# echo 2 > /proc/sys/vm/drop_caches

清 除pagecache, dentries 和 inodes


# echo 3 > /proc/sys/vm/drop_caches