Mark Hahn <hahn@xxxxxxxxxxxxxxxxxxx> writes: >> Is there a way for me to simulate readahead in userspace, i.e. can >> I do lots of sequential asynchronous reads in parallel? > > there is async IO, but I don't think this is going to help you much. > >> Also, is there a way to disable caching of reads? Having to clear > > yes: O_DIRECT. That might disable caching of reads, but it also disables readahead, so unless I manually use aio to simulate readahead, this isn't going to solve my problem, which is having to clear the cache before each test to get relevant results. I'm really surprised there isn't something in /proc you can use to clear or disable the cache. Would be very useful for benchmarking! Dan - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html