ZFS optimization + Cache settings for VMs

harmonyp

Member
Nov 26, 2020
196
4
23
46
I recently set up ZFS RAID-10 and I have some questions.

Generally speaking I presume this is a good setting for a mixture of Linux/Windows not particually running any processes to optimize (like SQL DB)


dadb6ed41a46a78efe496116f43340dc.png


Also I have added the following

/etc/modprobe.d/zfs.conf

Code:
#Max Ram Used by ZFS - 64GB
options zfs zfs_arc_max=68719476736
#Min Ram Used by ZFS - 20GB
options zfs zfs_arc_min=2147483648


How can I check if this is being used? the nodes total RAM usage doesn't seem to be using much more than what the running VMs require.

And finally I recall reading that changing the cache settings from default (no cache) is required for snapshots? and is there better performances with ZFS if so what should I set it to for Windows + Linux VMs

e7e99268c526022a69adc29d4c569450.png
 
How can I check if this is being used? the nodes total RAM usage doesn't seem to be using much more than what the running VMs require.
Run "arc_summary". It will give you a details usage of the ARC.
And finally I recall reading that changing the cache settings from default (no cache) is required for snapshots? and is there better performances with ZFS if so what should I set it to for Windows + Linux VMs
Snapshots are working fine with "default (no cache)".
 
What about caching should it be something specific for Windows/Linux?
As far as I know "no cache" is most of the time the best if you are working with ZFS so only the ARC is used and not another second cache that uses the RAM too, so stuff isn't caches twice. And your guest OS is caching too, so would be useless to cache everything 3 times in RAM.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!