Flushing the disk cache

I’ve been looking for this over and over and over, until I had some inspiration today (thanks to Andew and Chris) .. this has one and only one sole purpose: safekeeping, so I don’t end up searching for it all over again … To free pagecache: 1 # sync; echo 1 > /proc/sys/vm/drop_caches To free dentries and inodes: 1 # sync; echo 2 > /proc/sys/vm/drop_caches To free pagecache, dentries and inodes: ...

February 5, 2008 · 1 min · 90 words · christian