清理linux缓存
2011-12-22 19:50
197 查看
清理linux缓存,操作如下:
1. sync
2. echo 3 > /proc/sys/vm/drop_caches
--------------
Writing to this will cause the kernel to drop clean caches, dentries and inodes from memory, causing that memory to become free.
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
As this is a non-destructive operation, and dirty objects are notfreeable, the user should run "sync" first in order to make sure allcached objects are freed.
This tunable was added in 2.6.16.
1. sync
2. echo 3 > /proc/sys/vm/drop_caches
--------------
Writing to this will cause the kernel to drop clean caches, dentries and inodes from memory, causing that memory to become free.
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
As this is a non-destructive operation, and dirty objects are notfreeable, the user should run "sync" first in order to make sure allcached objects are freed.
This tunable was added in 2.6.16.
相关文章推荐
- linux下清理系统缓存
- linux 清理缓存
- linux清理缓存
- Linux如何清理swap、buffer及cache等缓存
- linux 系统下删除缓存/清理孤立包
- CentOS7(Linux)清理yum缓存 和释放内存方法
- linux下的缓存机制及清理buffer/cache/swap的方法梳理
- Linux环境下清理Tomcat缓存
- linux指定定时脚本清理缓存车看内存使用情况
- linux下的缓存机制及清理buffer/cache/swap的方法梳理
- linux下清理缓存,以释放内存
- linux 清理缓存
- Linux下的缓存机制及清理buffer/cache/swap的方法梳理
- linux 清理cache/buff(缓存)
- linux清理缓存
- Linux清理缓存命令
- linux下的缓存机制及清理buffer/cache/swap的方法梳理
- linux 清理缓存
- Linux环境下清理Tomcat缓存
- linux清理内存、缓存