Hi,
I want to hard code the RAM usage for ZFS, I read below document, then I got a question, how can I know if my proxmox system boots from ZFS?
Create the file /etc/modprobe.d/zfs.conf, and add the following lines.
Replace the numerical values with your calculations above.
options zfs zfs_arc_min=4294967296
options zfs zfs_arc_max=8589934592
If your system boots from ZFS, this file will not be available until after ZFS is started since it’s stored on a ZFS volume, so you will need to update the initial RAM file system to pick up the changes before the root ZFS volume is mounted.
update-initramfs -u
If you are on an EFI system, you will also need to update the kernel list in the EFI boot menu so the updated initial RAM file system is used.
pve-efiboot-tool refresh
After rebooting the system, use the command arcstat to make sure the changes have been applied, the value of the last column (c) should be the maximum ARC size you’ve set in /etc/modprobe.d/zfs.conf (expressed in GiB).
I want to hard code the RAM usage for ZFS, I read below document, then I got a question, how can I know if my proxmox system boots from ZFS?
Create the file /etc/modprobe.d/zfs.conf, and add the following lines.
Replace the numerical values with your calculations above.
options zfs zfs_arc_min=4294967296
options zfs zfs_arc_max=8589934592
If your system boots from ZFS, this file will not be available until after ZFS is started since it’s stored on a ZFS volume, so you will need to update the initial RAM file system to pick up the changes before the root ZFS volume is mounted.
update-initramfs -u
If you are on an EFI system, you will also need to update the kernel list in the EFI boot menu so the updated initial RAM file system is used.
pve-efiboot-tool refresh
After rebooting the system, use the command arcstat to make sure the changes have been applied, the value of the last column (c) should be the maximum ARC size you’ve set in /etc/modprobe.d/zfs.conf (expressed in GiB).