现在的位置: 首页 > 综合 > 正文

禁止linux文件系统缓存

2013年09月11日 ⁄ 综合 ⁄ 共 749字 ⁄ 字号 评论关闭

Well, preventing read cache usage is pretty simple. You can do some raw-read tests with dd. You can also do some tests (one-time read only, unfortunately, using drop_caches):

Code:
drop_caches
-----------

Writing to this will cause the kernel to drop clean caches, dentries and
inodes from memory, causing that memory to become free.

As this is a non-destructive operation and dirty objects are not freeable, the
user should run `sync' first.(see linux/Documentation/filesystems/proc.txt).

 

转自:http://blog.csdn.net/dux003/archive/2010/11/11/6003328.aspx

 

         http://www.linuxquestions.org/questions/linux-kernel-70/how-to-disable-filesystem-cache-627012/

抱歉!评论已关闭.