手动释放linux内存和缓存
2014-05-13 15:13
330 查看
/proc/sys/vm/drop_caches (since Linux 2.6.16)
Writing to this file causes the kernel to drop clean caches,
dentries and inodes from memory, causing that memory to become
free.
To free pagecache, use echo 1 > /proc/sys/vm/drop_caches; to
free dentries and inodes, use echo 2 > /proc/sys/vm/drop_caches;
to free pagecache, dentries and inodes, use echo 3 >
/proc/sys/vm/drop_caches.
Because this is a non-destructive operation and dirty objects
are not freeable, the user should run sync first.
Writing to this file causes the kernel to drop clean caches,
dentries and inodes from memory, causing that memory to become
free.
To free pagecache, use echo 1 > /proc/sys/vm/drop_caches; to
free dentries and inodes, use echo 2 > /proc/sys/vm/drop_caches;
to free pagecache, dentries and inodes, use echo 3 >
/proc/sys/vm/drop_caches.
Because this is a non-destructive operation and dirty objects
are not freeable, the user should run sync first.
相关文章推荐
- 手动清理linux缓存,释放内存
- 手动释放linux内存cache
- Linux清除系统缓存释放内存命令介绍
- Linux内存机制以及手动释放swap和内存
- Linux释放内存缓存
- 如何为linux释放内存和缓存
- ubuntu 手动释放缓存 (清理内存cache)
- 如何为linux释放内存和缓存
- Linux内存手动释放方法
- 手动释放linux内存cache和脚本定时释放
- LINUX手动释放内存
- 手动释放linux系统缓存
- 手动释放Linux内存命令及解释
- Linux之 手动释放内存
- 手动释放linux内存cache和脚本定时释放
- 【转载】手动释放linux内存cache
- Linux内存机制以及手动释放swap和内存
- 手动释放linux内存cache和脚本定时释放
- linux下清理缓存,以释放内存
- 释放linux内存缓存