oh that's cool but it then prevents me from measuring the time for writing to the hard disk!!
This is a discussion on linux writing often on main disk within the Linux Programming forums, part of the Platform Specific Boards category; 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).