Linux 清空缓存 drop caches
发布时间: 更新时间: 总字数:100
阅读时间:1m
作者: 谢先斌
分享
复制网址
专栏文章
- Linux 系统调优
- QPS和TPS介绍
- Linux 清空缓存 drop caches(当前)
- Linux 使用 isolcpu 参数隔离 cpu
- Linux NUMA 介绍
- Linux hugepage 介绍和配置
- Linux IOMMU 介绍
在Centos中,有时候我们内存会占用完,该文章介绍清空缓存的方法。
命令
同步
sync
清缓存
echo 3 > /proc/sys/vm/drop_caches
推荐优化参数:swappiness和vfs_cache_pressure。
组合命令
echo "sync && echo 3 > /proc/sys/vm/drop_caches" >> /usr/local/bin/drop_caches && chmod +x /usr/local/bin/drop_caches
专栏文章
- Linux 系统调优
- QPS和TPS介绍
- Linux 清空缓存 drop caches(当前)
- Linux 使用 isolcpu 参数隔离 cpu
- Linux NUMA 介绍
- Linux hugepage 介绍和配置
- Linux IOMMU 介绍
最近更新
最新评论
加载中...