Free Linux Memory by Dropping Caches
来源:互联网 发布:类似纳米盒的软件 编辑:程序博客网 时间:2024/05/21 07:10
Linux Kernels 2.6.16 and up provide a way to instruct the kernel to drop the page cache, inode and dentry caches on command. This tip can help free Linux memory without a reboot.
Note: This is a non-destructive operation. Dirty objects are not freeable, hence; you must run sync beforehand.
To use /proc/sys/vm/drop_caches, you simply echo a number to it.
To free pagecache:
Note: This is a non-destructive operation. Dirty objects are not freeable, hence; you must run sync beforehand.
To use /proc/sys/vm/drop_caches, you simply echo a number to it.
To free pagecache:
Code:
# sync; echo 1 > /proc/sys/vm/drop_caches
To free dentries and inodes:
Code:
# sync; echo 2 > /proc/sys/vm/drop_caches
To free pagecache, dentries and inodes:
Code:
# sync; echo 3 > /proc/sys/vm/drop_caches
0 0
- Free Linux Memory by Dropping Caches
- Drop Caches memory on linux
- 《Understanding Linux networking 》1.21Memory caches
- Linux Memory Usage: free
- ctypes free memory which is allocated by C
- Get free memory value
- av_bitstream_filter_filter memory free
- av_bitstream_filter_filter memory free
- memory leak check tool: free
- Memory usage by user
- linux free
- Linux free
- linux free
- Linux free
- Linux---free
- linux free
- 每个程序员都应该了解的 CPU 高速缓存 英文原文:Memory part 2: CPU caches
- calloc, malloc, free, realloc - Allocate and free dynamic memory
- Nginx+PHP+MySQL双机互备、全自动切换方案
- VS2010程序打包操作(超详细的)
- android 错误处理
- HTML入门概述
- VC 添加一个选择的目录
- Free Linux Memory by Dropping Caches
- 普通开发千万不要使用mySql的MyISAM引擎否则你的事务管理就废了
- HP DL G8系列服务器安装Server2003系统显卡驱动的问题
- MediaPlayer使用之四 VideoView的使用
- Linux内核MTD驱动程序与SD卡驱动程序
- 设计模式-------代理模式
- .net中ashx页面取不到session问题
- C++ vector
- 我也想带孩子去旅游