27199bd753
This is necessary for multi-disk backups where not all jobs are immediately started after they are created. QEMU commit 06e0a9c16405c0a4c1eca33cf286cc04c42066a2 did already part of the work, ensuring that new writes after job creation don't pass through to the backup, but not yet for the MIRROR_SYNC_MODE_BITMAP case which is used for PBS. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com> Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
26 lines
824 B
Diff
26 lines
824 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Stefan Reiter <s.reiter@proxmox.com>
|
|
Date: Tue, 2 Mar 2021 16:34:28 +0100
|
|
Subject: [PATCH] PVE: block/stream: increase chunk size
|
|
|
|
Ceph favors bigger chunks, so increase to 4M.
|
|
|
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|
---
|
|
block/stream.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/block/stream.c b/block/stream.c
|
|
index e45113aed6..c3c0c5febe 100644
|
|
--- a/block/stream.c
|
|
+++ b/block/stream.c
|
|
@@ -28,7 +28,7 @@ enum {
|
|
* large enough to process multiple clusters in a single call, so
|
|
* that populating contiguous regions of the image is efficient.
|
|
*/
|
|
- STREAM_CHUNK = 512 * 1024, /* in bytes */
|
|
+ STREAM_CHUNK = 4 * 1024 * 1024, /* in bytes */
|
|
};
|
|
|
|
typedef struct StreamBlockJob {
|