简单记录下
free -m
sync
echo 3 > /proc/sys/vm/drop_caches
其中 drop_caches的值可以是0-3之间的数字,代表不同的含义:
0:不释放(系统默认值) 1:释放页缓存 2:释放dentries和inodes 3:释放所有缓存
对比看下