Skip to content

aio reads broken? #461

@paf0186

Description

@paf0186

Hi all,

We've just been trying out the aio option in IOR, and a trivial "write 4K, read 4K back" with aio fails with corruption on the read; this is to XFS on RHEL 8 and to Lustre (also on RHEL 8). If you keep the file and read it in POSIX mode, the read succeeds, so the write is OK. (AIO reads fail even if it's just a read by itself on an existing file)

So AIO read mode seems to be totally broken, at least on RHEL 8. (This is with tip of tree as of today; acd3a15 / ior: improve error for existing output file (#459) )

Here's the relevant output - for aio:
mpirun --allow-run-as-root -np 1 ior -C -Q 1 -g -G=-1385218502 -t 4096 -b 4096 -s 1 -k -e -w -r -R -a aio -o /tmp/iorfile
[...]
Results:
access bw(MiB/s) IOPS Latency(s) block(KiB) xfer(KiB) open(s) wr/rd(s) close(s) total(s) iter


write 0.761126 196.54 0.005088 4.00 4.00 0.000037 0.005088 0.000004 0.005132 0
WARNING: Incorrect data on read (1 errors found).Used Time Stamp 2909748794 (0xad6f3e3a) for Data Signature
read 277.69 127100 0.000008 4.00 4.00 0.000002 0.000008 0.000004 0.000014 0

Reading the file back with POSIX:
mpirun --allow-run-as-root -np 1 ior -C -Q 1 -g -G=-1385218502 -t 4096 -b 4096 -s 1 -k -e -r -R -o /tmp/iorfile
[...]
Results:
access bw(MiB/s) IOPS Latency(s) block(KiB) xfer(KiB) open(s) wr/rd(s) close(s) total(s) iter


read 34.57 37118 0.000027 4.00 4.00 0.000064 0.000027 0.000022 0.000113 0Summary of all tests:
Operation Max(MiB) Min(MiB) Mean(MiB) StdDev Max(OPs) Min(OPs) Mean(OPs) StdDev Mean(s) Stonewall(s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions