Drop Caches
来源:互联网 发布:设计算法需要考虑什么 编辑:程序博客网 时间:2024/06/05 04:40
Drop Caches
Kernels 2.6.x provide a mechanism to have the kernel drop the page cache and/or inode and dentry caches on command, which can help free up a lot of memory. Now you can throw away that script that allocated a ton of memory just to get rid of the cache...
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
Kernels 2.6.x provide a mechanism to have the kernel drop the page cache and/or inode and dentry caches on command, which can help free up a lot of memory. Now you can throw away that script that allocated a ton of memory just to get rid of the cache...
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. If you run "sync" first to flush them out to disk, these drop operations will tend to free more memory.
This command can help remove orphan inode.
- Drop Caches
- Drop Caches
- Drop Caches
- Drop Caches memory on linux
- NHibernate caches
- drop
- Introduction to Caches
- s3c2410 CACHES, WRITE BUFFER
- s3c2410 CACHES, WRITE BUFFER
- s3c2410 CACHES, WRITE BUFFER
- about caches directory
- Director类与Caches
- Chapter 7 Caches
- IOS删除缓存, caches
- Polymorphic Inline Caches explained
- s3c2410 CACHES,WRITE BUFFER讲解
- s3c2410 CACHES,WRITE BUFFER讲解
- s3c2410 CACHES,WRITE BUFFER讲解
- 开始学Spring第4章-使用JdbcTemplate访问数据库
- 邓白氏码 苹果市场
- crontab的基本内容,留给自己
- 【技术类】ArcGIS 查询分析扩展(Query Analysis Add-In)可以免费下载啦
- TIME-WAIT
- Drop Caches
- VC编译C程序时的问题解析
- Python开发框架Wing IDE发布4.1.11
- 名词
- 广播的接收与U盘广播
- Outlook jump list cannot display task button
- C# 线程池
- 一个优秀windows C++程序员的知识体系
- 查找数组中第K大的值