oh that's cool but it then prevents me from measuring the time for writing to the hard disk!!
oh that's cool but it then prevents me from measuring the time for writing to the hard disk!!
You can get around this by making your test use direct IO. Open the file with the O_DIRECT option set, and it wont cache the writes. Keep in mind that you will need to make all your writes page aligned (usually 4096 bytes).