手动释放linux cache内存方法

2025-11-25 23:36:36

1、可用的buff/cache 不多了,有时候需要手动的释放

手动释放linux cache内存方法

2、cat /proc/sys/vm/drop_caches

手动释放linux cache内存方法

3、执行sync命令

手动释放linux cache内存方法

4、echo 3 > /proc/sys/vm/drop_caches

手动释放linux cache内存方法

5、数字明显增大了

从101变成120了

手动释放linux cache内存方法

6、可用继续手动执行,也可用写出一个脚本用来自动释放cache

手动释放linux cache内存方法

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢