Blame SOURCES/seabios-virtio-blk-use-larger-default-request-size.patch

14aa00
From 7ef00c50cafaf356b9aef5f7c7865b405de6b2f5 Mon Sep 17 00:00:00 2001
14aa00
From: Gerd Hoffmann <kraxel@redhat.com>
14aa00
Date: Thu, 30 Jun 2022 17:28:40 +0200
14aa00
Subject: [PATCH] virtio-blk: use larger default request size
14aa00
14aa00
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
14aa00
RH-MergeRequest: 5: virtio-blk: use larger default request size
14aa00
RH-Commit: [1/1] 5b2833de23fdab9fc3c170e448e9ed07d9fb82dd (kraxel/centos-seabios)
14aa00
RH-Bugzilla: 2108555
14aa00
RH-Acked-by: Oliver Steffen <osteffen@redhat.com>
14aa00
RH-Acked-by: Pawel Polawski <ppolawsk@redhat.com>
14aa00
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
14aa00
14aa00
Bump default from 8 to 64 blocks.  Using 8 by default leads
14aa00
to requests being splitted on qemu, which slows down boot.
14aa00
14aa00
Some (temporary) debug logging added showed that almost all
14aa00
requests on a standard fedora install are less than 64 blocks,
14aa00
so that should bring us back to 1.15 performance levels.
14aa00
14aa00
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
14aa00
(cherry picked from commit 46de2eec93bffa0706e6229c0da2919763c8eb04)
14aa00
---
14aa00
 src/hw/virtio-blk.c | 2 +-
14aa00
 1 file changed, 1 insertion(+), 1 deletion(-)
14aa00
14aa00
diff --git a/src/hw/virtio-blk.c b/src/hw/virtio-blk.c
14aa00
index 929ba887..9b4a05a4 100644
14aa00
--- a/src/hw/virtio-blk.c
14aa00
+++ b/src/hw/virtio-blk.c
14aa00
@@ -95,7 +95,7 @@ virtio_blk_op(struct disk_op_s *op, int write)
14aa00
         blk_num_max = (u16)max_io_size / vdrive->drive.blksize;
14aa00
     else
14aa00
         /* default blk_num_max if hardware doesnot advise a proper value */
14aa00
-        blk_num_max = 8;
14aa00
+        blk_num_max = 64;
14aa00
 
14aa00
     if (op->count <= blk_num_max) {
14aa00
         virtio_blk_op_one_segment(vdrive, write, sg);
14aa00
-- 
14aa00
2.31.1
14aa00