3 ms·
> (File reads were cached by OS and/or disk due to repeated testing, but file writes probably not) Unless you flush the pages manually, your dirty pages (writt
by blattimwind 8y ago
> (File reads were cached by OS and/or disk due to repeated testing, but file writes probably not)
Unless you flush the pages manually, your dirty pages (written files) live on long after your process died. Depending on system and configuration, minutes or even hours can pass before they are flushed to disk.
- mschuetz 8y agoDo you know about best practices to benchmark with uncached data? It's something I've been wondering about for a long time and I've seen many attempts at benchmarking things without regard for disk caching. e.g. benchmarking in-memory data bases to out-of-core databases but because of caching due to repeated runs, the results were meritless since the out-of-core databases had their stuff in memory as well.
- zbjornson 8y agoTake a look at https://github.com/Feh/nocache https://github.com/Feh/nocache. It works effectively for reads. I don't know about writes.