禁用文件系统读取缓存

Off*_*ler 12 filesystem cache

如何禁用 Ubuntu 12.04 的 Linux 文件系统读取缓存?

我不想只释放实际的缓存。

echo 3 > /proc/sys/vm/drop_caches 
Run Code Online (Sandbox Code Playgroud)

但完全禁用读取缓存。

tam*_*ale 4

我想你可能会在这个超级用户答案中找到你想要的东西: https://superuser.com/questions/242928/disable-linux-read-and-write-file-cache-on-partition

虽然从该答案链接的代码在 code.google.com 上不再可用,但它已被克隆到 github: https: //github.com/svn2github/pagecache-management

不过,该答案中的说明应该仍然有效。希望这可以帮助!