Linux drop_caches
来源:互联网 发布:淘宝订单号查询在哪里 编辑:程序博客网 时间:2024/05/24 15:42
原文
传送门
==============================================================
drop_caches
Writing to this will cause the kernel to drop clean caches, as well as
reclaimable slab objects like dentries and inodes. Once dropped, their
memory becomes free.
To free pagecache:
echo 1 > /proc/sys/vm/drop_caches
To free reclaimable slab objects (includes dentries and inodes):
echo 2 > /proc/sys/vm/drop_caches
To free slab objects and pagecache:
echo 3 > /proc/sys/vm/drop_caches
This is a non-destructive operation and will not free any dirty objects.
To increase the number of objects freed by this operation, the user may run
`sync’ prior to writing to /proc/sys/vm/drop_caches. This will minimize the
number of dirty objects on the system and create more candidates to be
dropped.
This file is not a means to control the growth of the various kernel caches
(inodes, dentries, pagecache, etc…) These objects are automatically
reclaimed by the kernel when memory is needed elsewhere on the system.
Use of this file can cause performance problems. Since it discards cached
objects, it may cost a significant amount of I/O and CPU to recreate the
dropped objects, especially if they were under heavy use. Because of this,
use outside of a testing or debugging environment is not recommended.
You may see informational messages in your kernel log when this file is
used:
cat (1234): drop_caches: 3
These are informational only. They do not mean that anything is wrong
with your system. To disable them, echo 4 (bit 3) into drop_caches.
- Linux drop_caches
- drop_caches
- drop_caches Linux清空缓存
- drop_caches Linux清空缓存
- 手工释放linux内存 Cache drop_caches
- Linux下清除缓存 drop_caches,sysctl
- Linux下清除缓存 drop_caches, sysctl
- 手工释放linux内存——/proc/sys/vm/drop_caches
- 手工释放linux内存——/proc/sys/vm/drop_caches
- 手工释放linux内存——/proc/sys/vm/drop_caches
- 手工释放linux内存——/proc/sys/vm/drop_caches
- 手工释放linux内存——/proc/sys/vm/drop_caches
- 手工释放linux内存——/proc/sys/vm/drop_caches
- 手工释放linux内存——/proc/sys/vm/drop_caches
- Linux下清除缓存 drop_caches,sysctl(备忘)
- 手工释放linux内存——/proc/sys/vm/drop_caches
- 手工释放linux内存——/proc/sys/vm/drop_caches
- 手工释放linux内存——/proc/sys/vm/drop_caches
- 三元运算和if ,else语句
- C#!!中判断!!网!!络连!!接的!!状态
- 欢迎使用CSDN-markdown编辑器
- 开源库muduo学习-总结篇
- linux 中的局部变量、全局变量、shell 变量的总结
- Linux drop_caches
- java乱码问题
- ubuntu14下Arduino IDE无法打开串口的问题
- JavaWeb总结十二、Session
- OGC WMS WCS WFS WPS 三大协议简谈
- Could not find first log file name in binary log index file
- Spring autoWire resource Spring配置文件问题 自定义注解 并注入spring
- 关于if (!cin)
- OGRE地形初步