From a6c07eb9c2f6464c216211fb40a37f35b194ce13 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 11 Nov 2022 10:21:37 +0100 Subject: [PATCH] limit ZFS Arc to more smalles possible value Signed-off-by: Thomas Lamprecht --- proxmox-file-restore/src/qemu_helper.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxmox-file-restore/src/qemu_helper.rs b/proxmox-file-restore/src/qemu_helper.rs index 0474f1a8..d090c320 100644 --- a/proxmox-file-restore/src/qemu_helper.rs +++ b/proxmox-file-restore/src/qemu_helper.rs @@ -235,9 +235,10 @@ pub async fn start_vm( "-initrd", &ramfs_path, "-append", + // NOTE: ZFS requires that the ARC can at least grow to the max transaction size of 64MB + // also: setting any of min/max to zero will rather do the opposite of what one wants here &format!( - "{} panic=1 zfs_arc_min=0 zfs_arc_max=0 memhp_default_state=online_kernel -", + "{} panic=1 zfs_arc_min=16777216 zfs_arc_max=67108864 memhp_default_state=online_kernel", if debug { "debug" } else { "quiet" } ), "-daemonize",