码迷,mamicode.com
首页 > 系统相关 > 详细

linux下清除cahce

时间:2017-04-24 17:20:48      阅读:215      评论:0      收藏:0      [点我收藏+]

标签:tin   lin   his   lca   run   struct   order   using   user   

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下清除cahce

标签:tin   lin   his   lca   run   struct   order   using   user   

原文地址:http://www.cnblogs.com/riocke7cb/p/6757486.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!