summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2022-06-30 17:28:40 +0200
committerGerd Hoffmann <kraxel@redhat.com>2022-07-07 12:05:19 +0200
commit46de2eec93bffa0706e6229c0da2919763c8eb04 (patch)
treede2bcc92ba54ece25473ca2df83b42b6bd89c5a1
parentdc88f9b72df52b22c35b127b80c487e0b6fca4af (diff)
downloadqemu-seabios-46de2eec93bffa0706e6229c0da2919763c8eb04.tar.gz
virtio-blk: use larger default request size
Bump default from 8 to 64 blocks. Using 8 by default leads to requests being splitted on qemu, which slows down boot. Some (temporary) debug logging added showed that almost all requests on a standard fedora install are less than 64 blocks, so that should bring us back to 1.15 performance levels. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--src/hw/virtio-blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hw/virtio-blk.c b/src/hw/virtio-blk.c
index 929ba88..9b4a05a 100644
--- a/src/hw/virtio-blk.c
+++ b/src/hw/virtio-blk.c
@@ -95,7 +95,7 @@ virtio_blk_op(struct disk_op_s *op, int write)
blk_num_max = (u16)max_io_size / vdrive->drive.blksize;
else
/* default blk_num_max if hardware doesnot advise a proper value */
- blk_num_max = 8;
+ blk_num_max = 64;
if (op->count <= blk_num_max) {
virtio_blk_op_one_segment(vdrive, write, sg);