mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-02-25 17:57:35 +03:00
file-restore: set zfs_arc_min to current minimum of 32M
zfs_arc_min was raised to 32M (for linux) in zfs-commit 121b3cae742a0670d902a51bc61d49dc4a3e4445 while the current logic would still set the min_size to 32M (it's max(32M, allmem/32), which results to 32M for memory sizes up to 1024M), setting it explicitly to the minimum makes it clear, and will still be kept should the restore vm have more than 1G of memory at some point. Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
parent
18844d6e3c
commit
ce3f15aeac
@ -260,7 +260,7 @@ pub async fn start_vm(
|
||||
// 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.zfs_arc_min=16777216 zfs.zfs_arc_max=67108864 memhp_default_state=online_kernel",
|
||||
"{} panic=1 zfs.zfs_arc_min=33554432 zfs.zfs_arc_max=67108864 memhp_default_state=online_kernel",
|
||||
if debug { "debug" } else { "quiet" }
|
||||
),
|
||||
"-daemonize",
|
||||
|
Loading…
x
Reference in New Issue
Block a user