]> git.proxmox.com Git - pve-qemu.git/blob - debian/patches/pve/0045-PVE-block-stream-increase-chunk-size.patch
add alloc-track block driver patch
[pve-qemu.git] / debian / patches / pve / 0045-PVE-block-stream-increase-chunk-size.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Stefan Reiter <s.reiter@proxmox.com>
3 Date: Tue, 2 Mar 2021 16:34:28 +0100
4 Subject: [PATCH] PVE: block/stream: increase chunk size
5
6 Ceph favors bigger chunks, so increase to 4M.
7 ---
8 block/stream.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/block/stream.c b/block/stream.c
12 index 236384f2f7..a5371420e3 100644
13 --- a/block/stream.c
14 +++ b/block/stream.c
15 @@ -26,7 +26,7 @@ enum {
16 * large enough to process multiple clusters in a single call, so
17 * that populating contiguous regions of the image is efficient.
18 */
19 - STREAM_CHUNK = 512 * 1024, /* in bytes */
20 + STREAM_CHUNK = 4 * 1024 * 1024, /* in bytes */
21 };
22
23 typedef struct StreamBlockJob {