关闭Linux缓存
来源:互联网 发布:网御数据库审计 编辑:程序博客网 时间:2024/05/13 10:58
Sometimes, we have such a situation happening with droping the OS cache. We may usually tell the OS to use direct io or unbuffered reads and writes. How to drop the OS caches?
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
To use /proc/sys/vm/drop_caches, just echo a number to it.
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
This is a non-destructive operation and will only free things that are completely unused. Dirty objects will continue to be in use until written out to disk and are not freeable.
0 0
- 关闭Linux缓存
- 关闭ThinkPHP模板缓存
- 关闭局部缓存
- 关闭jQuery Ajax缓存
- 关闭ecshop缓存
- Firefox关闭缓存方法
- discuz 关闭缓存
- mybatis关闭缓存
- ThinkPHP关闭模板缓存
- discuz关闭缓存
- Ajax如何关闭缓存
- 禁用ecshop缓存,关闭ecshop缓存功能
- 禁用ecshop缓存,关闭ecshop缓存功能
- Hibernate关闭缓存,HQL子句
- AJAX的浏览器缓存关闭
- 禁用和关闭ECSHOP缓存
- mysql 查询关闭缓存SQL_NO_CACHE
- 在Firefox中关闭缓存
- OpenSSL_add_all_digests 函数不是 thread-safe 的
- 【Java设计模式】装饰模式
- struts2.0中struts.xml配置文件详解
- GitLab安装过程及安装过程所遇问题解疑(安装过程参照光子CI之旅)
- HDU 2019
- 关闭Linux缓存
- libsvm工具包学习使用的一个好博客
- using namespace ns_xxx不能用在class定义内部
- ArcGIS for IOS 地图移动至某点或区域(个人)
- 2013年12月编程语言排行榜
- Windows7与Fedora 双系统下卸载Fedora Linux
- jsdoc3初次使用的遇到的一个错误:Error: Module jsdoc.js not found.
- 【分享】新浪微博个人微博数据集
- 转android的UI设计六