Linux Read-Cache flushen
Manchmal möchte man, wenngleich meist aus sehr speziellen Gründen, seinen Read-Cache leeren. Der Linux-Kernel stellt seit Version 2.6.16 eine entsprechende Funktion über das proc-Interface bereit:
To free pagecache:
echo 1 > /proc/sys/vm/drop_cachesTo free dentries and inodes:
echo 2 > /proc/sys/vm/drop_cachesTo free pagecache, dentries and inodes:
echo 3 > /proc/sys/vm/drop_cachesAs this is a non-destructive operation, and dirty objects are not freeable, the user should run “sync” first in order to make sure all cached objects are freed.
Quelle: http://www.linuxinsight.com/proc_sys_vm_drop_caches.html
Artikel
