Subject: bypassing system cache?
To: None <tech-kern@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: tech-kern
Date: 12/10/2007 09:39:05
Hello

I suspect I have a faulty disk controller. I would like to test that by
looping on writes and reads, and checking I get what I have poked on the
disk.

The problem is to avoid the system cache. As I understand, a call to fsync(2)
will ensure the data get pushed to the disk controller. How do I avoid the
read operations from being done from the system cache instead of from the 
disk controller?

-- 
Emmanuel Dreyfus
manu@netbsd.org