I was confused by the results while running a sequence of fio tests that use 8 files. The files are created by the first run of fio, reused by each run of fio and are shared by the jobs within each run. The problem is that when fio creates the files: * with --rw=write then it just does fallocate and then the test starts * otherwise it does fallocate and then (probably) fully writes the file prior to doing the requested test I was confused by the results because the tests used direct IO and fio was reporting far more iops than iostat. The problem is that when the first test is "--rw=write" if it is not run long enough the the files are not fully written and I assume that later tests that read the unwritten parts of the files are fast because that read doesn't go to storage. But if the first test is "--rw=randread" then the files are fully written before the randread reads are done. Is this expected and/or documented? --- If this is the first test and the files don't exist when fio is started: fio --name=foobar --rw=write --direct=1 --bs=4k --numjobs=1 --ioengine=psync --filesize=100G --runtime=30 --group_reporting --filename=td1:td2:td3:td4:td5:td6:td7:td8 --randrepeat=0 --- then fallocate is done for the files, and then the test starts ... write(1, "write: Laying out IO file(s) (8 "..., 52) = 52 unlink("td1") = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "td1", O_WRONLY|O_CREAT, 0644) = 3 fallocate(3, 0, 0, 107374182400) = 0 fadvise64(3, 0, 107374182400, POSIX_FADV_DONTNEED) = 0 close(3) --- But if this is the first test and the files don't exist when fio is started fio --name=write --rw=randread --direct=1 --bs=4k --numjobs=1 --ioengine=psync --filesize=100G --runtime=30 --group_reporting --filename=td1:td2:td3:td4:td5:td6:td7:td8 --randrepeat=0 --- then fallocate is done for the files and it looks like they are fully written ... write(1, "write: Laying out IO file(s) (8 "..., 52) = 52 unlink("td1") = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "td1", O_WRONLY|O_CREAT|O_TRUNC, 0644) = 3 fallocate(3, 0, 0, 107374182400) = 0 ftruncate(3, 107374182400) = 0 write(3, ..., 4096) = 4096 ... repeat many write() calls -- Mark Callaghan mdcallag@xxxxxxxxx