> CentOS > CentOS入门 >

Centos释放cache内存命令

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一下,防止丢数据。

(责任编辑:IT)