Centos释放cache内存命令

分类:CentOS教程 阅读:33182 次

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

释放前最好sync一下,防止丢数据。