kvm-xfstests: use aio=native for test drives
PATCH 1/1 kvm-xfstests: use aio=native for test drives
Lost IOs have been observed with the default aio=threads with QEMU 2.5.0 when running crash consistency tests.
The issue has not been observed with QEMU 2.9.0.
Native AIO is probably better for our goal which is test proofing production systems.
---
Ted,
Not sure you have been following the crash consistency tests threads.
Anyway, I ran into an issue of sucessfuly completed bio's that did not make it to storage device when running in kvm-xfstests.
Josef reported that he did not observe the issue with newer QEMU and the issue is gone with aio=native on my version of QEMU.
Crash consistency tests still can't run properly on kvm-xfstests without this fix to kernel:
https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git/commit/?h=dm-log-writes-fixes&id=08c7d64773091c7d2e0147da7064aa4dc297629d
After the fix is merged I will post a patch to enable running dm-log-write tests in kvm-xfstest.
Mean while, the change to aio=native seems like a good move anyway and if I observed a bio black hole in one test, who's to say they don't exist for other tests as well.
Amir.
kvm-xfstests/kvm-xfstests | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-)
kvm-xfstests/kvm-xfstests +13 -6
@@ -101,15 +101,22 @@ chmod 400 "$VDH" mkdir -p /tmp/kvm-xfstests-$USER +# Lost IOs have been observed with the default aio=threads with +# QEMU 2.5.0 when running crash consistency tests. +# The issue has not been observed with QEMU 2.9.0. +# Native AIO is probably better for our goal which is test proofing +# production systems. +AIO=",aio=native" + $NO_ACTION $IONICE $QEMU -boot order=c $NET \ -machine type=pc,accel=kvm:tcg \ -drive file=$ROOT_FS,if=virtio$SNAPSHOT \ - -drive file=$VDB,cache=none,if=virtio,format=raw \ - -drive file=$VDC,cache=none,if=virtio,format=raw \ - -drive file=$VDD,cache=none,if=virtio,format=raw \ - -drive file=$VDE,cache=none,if=virtio,format=raw \ - -drive file=$VDF,cache=none,if=virtio,format=raw \ - -drive file=$VDG,cache=none,if=virtio,format=raw \ + -drive file=$VDB,cache=none,if=virtio,format=raw$AIO \ + -drive file=$VDC,cache=none,if=virtio,format=raw$AIO \ + -drive file=$VDD,cache=none,if=virtio,format=raw$AIO \ + -drive file=$VDE,cache=none,if=virtio,format=raw$AIO \ + -drive file=$VDF,cache=none,if=virtio,format=raw$AIO \ + -drive file=$VDG,cache=none,if=virtio,format=raw$AIO \ -drive file=$VDH,cache=unsafe,readonly,if=virtio \ -vga none -nographic -smp $NR_CPU -m $MEM \ -fsdev local,id=v_tmp,path=/tmp/kvm-xfstests-$USER,security_model=none \
Signature · 1 line
2.7.4
Quoted 40 lines · Amir Goldstein
Lost IOs have been observed with the default aio=threads with QEMU 2.5.0 when running crash consistency tests.
The issue has not been observed with QEMU 2.9.0.
Native AIO is probably better for our goal which is test proofing production systems.Signed-off-by Amir Goldstein <[email protected]>---
Ted,
Not sure you have been following the crash consistency tests threads.
Anyway, I ran into an issue of sucessfuly completed bio's that did not make it to storage device when running in kvm-xfstests.
Josef reported that he did not observe the issue with newer QEMU and the issue is gone with aio=native on my version of QEMU.
Crash consistency tests still can't run properly on kvm-xfstests without this fix to kernel:
https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git/commit/?h=dm-log-writes-fixes&id=08c7d64773091c7d2e0147da7064aa4dc297629d
After the fix is merged I will post a patch to enable running dm-log-write tests in kvm-xfstest.Mean while, the change to aio=native seems like a good move anyway and if I observed a bio black hole in one test, who's to say they don't exist for other tests as well.
Amir.
kvm-xfstests/kvm-xfstests | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-)kvm-xfstests/kvm-xfstests +0
-0
kvm-xfstests/kvm-xfstests chmod 400 "$VDH" · line 105
Quoted 5 lines
kvm-xfstests/kvm-xfstests +2
-0@@ -101,15 +101,22 @@ chmod 400 "$VDH" mkdir -p /tmp/kvm-xfstests-$USER +# Lost IOs have been observed with the default aio=threads with +# QEMU 2.5.0 when running crash consistency tests.
Note however that Ubuntu 16.04 LTS is still on qemu 2.5, so perhaps it's worth the trouble to check the qemu version prior to enabling native aio support?
--D
Quoted 30 lines
kvm-xfstests/kvm-xfstests +11
-6+# The issue has not been observed with QEMU 2.9.0. +# Native AIO is probably better for our goal which is test proofing +# production systems. +AIO=",aio=native" + $NO_ACTION $IONICE $QEMU -boot order=c $NET \ -machine type=pc,accel=kvm:tcg \ -drive file=$ROOT_FS,if=virtio$SNAPSHOT \ - -drive file=$VDB,cache=none,if=virtio,format=raw \ - -drive file=$VDC,cache=none,if=virtio,format=raw \ - -drive file=$VDD,cache=none,if=virtio,format=raw \ - -drive file=$VDE,cache=none,if=virtio,format=raw \ - -drive file=$VDF,cache=none,if=virtio,format=raw \ - -drive file=$VDG,cache=none,if=virtio,format=raw \ + -drive file=$VDB,cache=none,if=virtio,format=raw$AIO \ + -drive file=$VDC,cache=none,if=virtio,format=raw$AIO \ + -drive file=$VDD,cache=none,if=virtio,format=raw$AIO \ + -drive file=$VDE,cache=none,if=virtio,format=raw$AIO \ + -drive file=$VDF,cache=none,if=virtio,format=raw$AIO \ + -drive file=$VDG,cache=none,if=virtio,format=raw$AIO \ -drive file=$VDH,cache=unsafe,readonly,if=virtio \ -vga none -nographic -smp $NR_CPU -m $MEM \ -fsdev local,id=v_tmp,path=/tmp/kvm-xfstests-$USER,security_model=none \Signature · 6 lines
2.7.4 -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 42 lines · Darrick J. Wong
Quoted 41 lines · Amir Goldstein
Lost IOs have been observed with the default aio=threads with QEMU 2.5.0 when running crash consistency tests.
The issue has not been observed with QEMU 2.9.0.
Native AIO is probably better for our goal which is test proofing production systems.Signed-off-by Amir Goldstein <[email protected]>---
Ted,
Not sure you have been following the crash consistency tests threads.
Anyway, I ran into an issue of sucessfuly completed bio's that did not make it to storage device when running in kvm-xfstests.
Josef reported that he did not observe the issue with newer QEMU and the issue is gone with aio=native on my version of QEMU.
Crash consistency tests still can't run properly on kvm-xfstests without this fix to kernel:
https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git/commit/?h=dm-log-writes-fixes&id=08c7d64773091c7d2e0147da7064aa4dc297629d
After the fix is merged I will post a patch to enable running dm-log-write tests in kvm-xfstest.Mean while, the change to aio=native seems like a good move anyway and if I observed a bio black hole in one test, who's to say they don't exist for other tests as well.
Amir.
kvm-xfstests/kvm-xfstests | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-)kvm-xfstests/kvm-xfstests +0
-0@@ -101,15 +101,22 @@ chmod 400 "$VDH"
Quoted 9 lines
kvm-xfstests/kvm-xfstests chmod 400 "$VDH" · line 105
Quoted 4 lines
kvm-xfstests/kvm-xfstests +2
-0mkdir -p /tmp/kvm-xfstests-$USER +# Lost IOs have been observed with the default aio=threads with +# QEMU 2.5.0 when running crash consistency tests.Note however that Ubuntu 16.04 LTS is still on qemu 2.5, so perhaps it's worth the trouble to check the qemu version prior to enabling native aio support?
hmm.. I am using Ubuntu 16.04/QEMU 2.5
that is why I am posting this patch
The default aio=threads is allegedly buggy on QEMU 2.5 so I am proposing to always use aio=native,
which is probably the right configuration for several other reasons
Amir.
Quoted 53 lines · Amir Goldstein
Quoted 42 lines · Darrick J. Wong
Quoted 41 lines · Amir Goldstein
Lost IOs have been observed with the default aio=threads with QEMU 2.5.0 when running crash consistency tests.
The issue has not been observed with QEMU 2.9.0.
Native AIO is probably better for our goal which is test proofing production systems.Signed-off-by Amir Goldstein <[email protected]>---
Ted,
Not sure you have been following the crash consistency tests threads.
Anyway, I ran into an issue of sucessfuly completed bio's that did not make it to storage device when running in kvm-xfstests.
Josef reported that he did not observe the issue with newer QEMU and the issue is gone with aio=native on my version of QEMU.
Crash consistency tests still can't run properly on kvm-xfstests without this fix to kernel:
https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git/commit/?h=dm-log-writes-fixes&id=08c7d64773091c7d2e0147da7064aa4dc297629d
After the fix is merged I will post a patch to enable running dm-log-write tests in kvm-xfstest.Mean while, the change to aio=native seems like a good move anyway and if I observed a bio black hole in one test, who's to say they don't exist for other tests as well.
Amir.
kvm-xfstests/kvm-xfstests | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-)kvm-xfstests/kvm-xfstests +0
-0@@ -101,15 +101,22 @@ chmod 400 "$VDH"Quoted 9 lines
kvm-xfstests/kvm-xfstests chmod 400 "$VDH" · line 105
Quoted 4 lines
kvm-xfstests/kvm-xfstests +2
-0mkdir -p /tmp/kvm-xfstests-$USER +# Lost IOs have been observed with the default aio=threads with +# QEMU 2.5.0 when running crash consistency tests.Note however that Ubuntu 16.04 LTS is still on qemu 2.5, so perhaps it's worth the trouble to check the qemu version prior to enabling native aio support?
Quoted 6 lines
hmm.. I am using Ubuntu 16.04/QEMU 2.5
that is why I am posting this patchThe default aio=threads is allegedly buggy on QEMU 2.5 so I am proposing to always use aio=native,
which is probably the right configuration for several other reasons
D'oh, you're right, I got that whole thing backwards. Ignore my noise.
--D
Quoted 6 lines
Amir.
--
To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Amir Goldstein
Lost IOs have been observed with the default aio=threads with QEMU 2.5.0 when running crash consistency tests.
The issue has not been observed with QEMU 2.9.0.
Native AIO is probably better for our goal which is test proofing production systems.Signed-off-by Amir Goldstein <[email protected]>
Just for reference, if you don't have CONFIG_AIO enabled in your kernel, QEMU will segfault when passed aio=native (rather than falling back to aio=threads as expected). I guess that will need to be fixed as well...
Eric