If you are testing raw I/O using specific files and need to remove a specific file from OS page cache, "vmtouch" is an awesome utility.
root@es3:/data/master/reddit# vmtouch -e authors.dat
Files: 1
Directories: 0
Evicted Pages: 1015158 (3G)
Elapsed: 0.2638 seconds
Conversation
"vmtouch" will allow you to cache a file or remove a file from OS page cache without having to globally clear the page cache.
Extremely useful.
