]> xenbits.xensource.com Git - people/pauldu/qemu.git/commit
xen-block: improve batching behaviour
authorTim Smith <tim.smith@citrix.com>
Tue, 11 Dec 2018 17:31:08 +0000 (17:31 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 11 Dec 2018 17:55:30 +0000 (17:55 +0000)
commit9a6f1da5f6089b1e40fbcd6b16a6cc4e5a4b9e80
tree896794388e0e7493ceec8b264206d10afc7d6496
parentaa95fe2d9d13cc62cefab5de3a169d5c0395ff48
xen-block: improve batching behaviour

When I/O consists of many small requests, performance is improved by
batching them together in a single io_submit() call. When there are
relatively few requests, the extra overhead is not worth it. This
introduces a check to start batching I/O requests via blk_io_plug()/
blk_io_unplug() in an amount proportional to the number which were
already in flight at the time we started reading the ring.

Signed-off-by: Tim Smith <tim.smith@citrix.com>
Re-based and commit comment adjusted.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
---
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Anthony Perard <anthony.perard@citrix.com>
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Max Reitz <mreitz@redhat.com>
hw/block/dataplane/xen-block.c