Skip to content
Snippets Groups Projects
Commit c52a03b1 authored by Asias He's avatar Asias He Committed by Pekka Enberg
Browse files

run.py: Add aio=native for virtio-blk device


aio=native makes QEMU to use Linux native implementation of aio instead
of emulated thread pool which improves tst-bdev-write.so performance:

  blk, aio=threads
  Wrote 691.910 MB in 10.03 s
  Wrote 590.020 MB in 10.00 s
  Wrote 605.578 MB in 10.01 s
  Wrote 662.828 MB in 10.01 s
  Wrote 624.762 MB in 10.01 s

  blk, aio=native
  Wrote 789.566 MB in 10.00 s
  Wrote 744.691 MB in 10.00 s
  Wrote 537.125 MB in 10.00 s
  Wrote 732.230 MB in 10.00 s
  Wrote 683.383 MB in 10.00 s

  scsi, aio=threads
  Wrote 200.863 MB in 10.02 s
  Wrote 193.758 MB in 10.02 s
  Wrote 193.680 MB in 10.03 s
  Wrote 195.211 MB in 10.03 s
  Wrote 190.762 MB in 10.02 s

  scsi, aio=native
  Wrote 414.344 MB in 10.05 s
  Wrote 483.148 MB in 10.00 s
  Wrote 537.477 MB in 10.01 s
  Wrote 477.727 MB in 10.01 s
  Wrote 462.805 MB in 10.01 s

Signed-off-by: default avatarAsias He <asias@cloudius-systems.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent d11a6daa
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ def start_osv_qemu(options): ...@@ -65,7 +65,7 @@ def start_osv_qemu(options):
else: else:
args += [ args += [
"-device", "virtio-blk-pci,id=blk0,bootindex=0,drive=hd0,scsi=off", "-device", "virtio-blk-pci,id=blk0,bootindex=0,drive=hd0,scsi=off",
"-drive", "file=%s,if=none,id=hd0,cache=%s" % (options.image_file, cache)] "-drive", "file=%s,if=none,id=hd0,aio=native,cache=%s" % (options.image_file, cache)]
if (options.no_shutdown): if (options.no_shutdown):
args += ["-no-reboot", "-no-shutdown"] args += ["-no-reboot", "-no-shutdown"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment