-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aio reads broken? #461
Comments
I can reproduce this error. |
Since I wrote this AIORI version, I realized this is not well documented: The alternative would be to synchronize it. That would prevent showing the potential of AIO... |
It seems like the right answer is to allocate new buffers for each AIO read, until AIO reads start completing, then re-use the buffers in an allocation pool. Possibly if there is a maximum AIO submission count, the number of read buffers could be preallocated based on that. The data verification should be done after the AIO read completion, before the buffer is returned to the pool. Alternately, just allocate any free the read buffer each time, but that may be expensive? |
That would be correct but change the current behavior where the buffer is reused... |
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)
The text was updated successfully, but these errors were encountered: