flush file with writing with -F flag
Closed this issue · 5 comments
GoogleCodeExporter commented
Disk write performance will be more accurate if iperf3 uses fflush() after each
block to eliminate disk cache effects.
Original issue reported on code.google.com by bltier...@es.net
on 25 Nov 2013 at 5:39
GoogleCodeExporter commented
Original comment by bltier...@es.net
on 25 Nov 2013 at 5:39
- Added labels: Milestone-3.1a1
GoogleCodeExporter commented
fflush() is for stdio and the -F stuff does not use stdio, it's doing
read()/write(). So this particular cache effect does not apply. There are of
course other caches in the pipeline.
Original comment by jef.posk...@gmail.com
on 25 Nov 2013 at 5:50
GoogleCodeExporter commented
Maybe fsync() is what we want? I'll give that a try.
Original comment by jef.posk...@gmail.com
on 25 Nov 2013 at 5:53
GoogleCodeExporter commented
I think I meant 'fsync':
http://linux.die.net/man/2/fsync
Original comment by bltier...@es.net
on 25 Nov 2013 at 5:55
GoogleCodeExporter commented
Original comment by jef.posk...@gmail.com
on 25 Nov 2013 at 5:59
- Changed state: Fixed