Only put VM disk metadata into the ARC.

The guest VMs should have their own filesystem cache so I see no need to pollute the host's cache.
This commit is contained in:
Tom Alexander 2023-06-22 13:28:56 -04:00
parent 8346065c6f
commit f667f50f84
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -68,7 +68,7 @@ IP_RANGE="$IP_RANGE"
BRIDGE_NAME="$BRIDGE_NAME"
INTERFACE_NAME="$INTERFACE_NAME"
EOF
zfs create -s "-V${gigabytes}G" -o volmode=dev "$zfs_path/disk0"
zfs create -s "-V${gigabytes}G" -o volmode=dev -o primarycache=metadata -o secondarycache=none "$zfs_path/disk0"
}
function start_vm {