Flush linux disk cache
For testing purposes, it is sometimes handy to tell linux to flush the disk cache. Here's how:
# as root echo 3 > /proc/sys/vm/drop_caches
Note that some web sites say that if you are dumping the disk cache, you may want to run the command
sync
before doing the flush. Probably not a bad idea.