- 查看缓存
free -m
- 清缓存
echo 3 > /proc/sys/vm/drop_caches
- 清缓存后
#释放物理页缓存 echo 1 > /proc/sys/vm/drop_caches #释放可回收的slab对象,包含inode and dentry echo 2 > /proc/sys/vm/drop_caches #同时释放 页、目录、索引节点缓存: echo 3 > /proc/sys/vm/drop_caches
标签:缓存,drop,vm,echo,sys,命令,proc From: https://www.cnblogs.com/yuanqiangfei/p/17736261.html