Contents
1
2
3
4
5
# sync; echo 3 > /proc/sys/vm/drop_caches

"3": 清空pagecache, dentries,inodes
"2": 清空dentries,inodes
"1": 清空pagecache

crontab -e编辑

1
0 * * *  * sync; echo 3 > /proc/sys/vm/drop_caches

每隔一小时清空缓存一次。

Contents