Export to GitHub

iperf - issue #113

flush file with writing with -F flag


Posted on Nov 25, 2013 by Happy Kangaroo

Disk write performance will be more accurate if iperf3 uses fflush() after each block to eliminate disk cache effects.

Comment #1

Posted on Nov 25, 2013 by Happy Kangaroo

(No comment was entered for this change.)

Comment #2

Posted on Nov 25, 2013 by Happy Bear

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.

Comment #3

Posted on Nov 25, 2013 by Happy Bear

Maybe fsync() is what we want? I'll give that a try.

Comment #4

Posted on Nov 25, 2013 by Happy Kangaroo

I think I meant 'fsync':

http://linux.die.net/man/2/fsync

Comment #5

Posted on Nov 25, 2013 by Happy Bear

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-Medium Milestone-3.1a1