Proxmox VE 9.2 Upgrade: Benchmark ZFS VM Storage Path
Proxmox VE 9.2 upgrade: benchmark ZFS-backed VM disks with fio and timed PBS restores to get a numeric storage baseline and avoid post-upgrade surprises.

On this page
A storage upgrade can look fine in the web UI and still hide a slow VM disk path. Before moving a Proxmox VE 9.1 host to Proxmox VE 9.2, I benchmark the ZFS-backed VM disks with fio and time a PBS restore to a scratch ZFS dataset. That gives me a numeric baseline for live I/O and backup ingest, so after the upgrade I can tell whether 9.2 changed the numbers or the ZFS pool was already the weak point.
Key Takeaways
- Baseline first: capture fio IOPS, latency, and PBS restore duration before touching Proxmox VE 9.2.
- Guest-side matters: fio inside the VM measures what the guest sees, while host-side tests can overstate real VM performance.
- volblocksize trap: 4K random writes against a 16K ZFS volume can look terrible until you test the aligned block size.
- Restore separately: PBS restore tests repository, network, deduplication, CPU, and ZFS ingest, not just live VM I/O.
- Scratch dataset helps: restoring to a separate ZFS dataset keeps ARC and write pressure away from the production VM path.
What I benchmark before the 9.2 upgrade
I do not start with a generic storage test. I start with the exact VM disk path that will be upgraded. That means checking the pool, the ZFS volume backing the VM, and the disk settings Proxmox VE will use when the VM boots.
zpool status -v rpool
zfs list -r rpool/data -o name,used,refer,volsize,volblocksize,compression
qm config 100 | grep -E '^(scsi|virtio|ide|sata)[0-9]'
The first command tells me whether the pool is healthy enough to trust a benchmark. The second shows the ZFS volume properties, including volblocksize, which often explains odd small-write results. The third shows the VM disk interface and any Proxmox disk options that affect I/O, such as cache settings.
I care about two separate paths before upgrading to Proxmox VE 9.2:
- The running VM disk path, from guest filesystem to ZFS volume.
- The backup restore path, from PBS repository through the network into a ZFS-backed destination.
They fail for different reasons. A VM may have low IOPS because of volblocksize, guest filesystem behavior, or cache mode. A restore may be slow because PBS is deduplicating heavily, the network is saturated, or the destination pool is already under scrub or ARC pressure.
How to set up a fair fio baseline on a ZFS-backed VM
Choose the guest test file first
I run fio inside the guest, not on the Proxmox host. The host can benchmark the raw ZFS volume, but that skips the guest kernel, guest filesystem, virtio driver, and guest page cache. For a VM upgrade decision, I want the guest-visible result.
On a Debian or Ubuntu guest, install fio with:
apt-get install -y fio
Then create a fixed-size test file. I usually use 4G for quick baselines. It is large enough to avoid pure cache results on many hosts, but small enough to finish in a few minutes.
fio --name=prealloc --rw=write --bs=1M --size=4G --direct=1 --ioengine=libaio --filename=/var/tmp/fio-test
After the file exists, run a random write test. This is often the first place where ZFS-backed VM disks reveal block alignment problems.
fio --name=randwrite --rw=randwrite --bs=4k --iodepth=32 --numjobs=4 --size=4G --runtime=120 --time_based --direct=1 --ioengine=libaio --group_reporting --filename=/var/tmp/fio-test
Then run a random read test. This helps separate write alignment issues from general read latency.
fio --name=randread --rw=randread --bs=4k --iodepth=32 --numjobs=4 --size=4G --runtime=120 --time_based --direct=1 --ioengine=libaio --group_reporting --filename=/var/tmp/fio-test
Finally, run a sequential read test. This is useful for backup restore reads, template clones, and image-heavy workloads.
fio --name=seqread --rw=read --bs=1M --iodepth=8 --numjobs=2 --size=4G --runtime=60 --time_based --direct=1 --ioengine=libaio --group_reporting --filename=/var/tmp/fio-test
I run each test twice and keep the second result. The first pass can include file allocation, ZFS block allocation, and guest filesystem metadata work. The second pass is closer to steady-state behavior.
Match the block size to the zvol
ZFS-backed Proxmox VM disks are usually ZFS volumes, not regular datasets. The important property is volblocksize. On many Proxmox ZFS storage configurations, the default volblocksize is 16K. That is often fine for general workloads, but it can hurt small random writes if the guest issues 4K writes that do not align cleanly to the ZFS block size.
Check the volume:
zfs get -H volblocksize rpool/data/vm-100-disk-0
If the result is 16K, run a 16K random write test:
fio --name=randwrite-16k --rw=randwrite --bs=16k --iodepth=32 --numjobs=4 --size=4G --runtime=120 --time_based --direct=1 --ioengine=libaio --group_reporting --filename=/var/tmp/fio-test
If the 16K result is much better than the 4K result, you have found an alignment issue rather than a broken disk. This is one of the most common pre-upgrade discoveries I make on ZFS-backed VMs.
The honest tradeoff: reducing volblocksize to 4K can improve small random writes, but it can reduce sequential throughput and increase ZFS overhead for some workloads. I do not change volblocksize just because a synthetic test looks better. I change it when the real VM workload is dominated by small random writes and the sequential penalty is acceptable.
Watch the host while the guest runs
Guest fio tells me what the application sees. Host monitoring tells me why. While running a guest test, I open a second terminal on the Proxmox host and watch the pool.
zpool iostat -v rpool 5 6
I look for three things:
- Whether writes are being absorbed by ZFS and ARC without stalling the pool.
- Whether reads are mostly served by ARC or are hitting disks hard.
- Whether latency spikes line up with guest p99 latency.
If the guest shows poor latency but the host pool looks idle, the problem may be inside the guest: filesystem journaling, guest page cache, virtio queue settings, or application sync behavior. If the host pool shows high wait times, the ZFS pool is the bottleneck.
If ARC pressure is the cause, the ZFS ARC checks after PBS 4.2 S3 sync is a good companion article for understanding why a pool can look healthy while still delivering poor restore or backup performance.
How to benchmark a PBS restore without disturbing production
Restore to a scratch ZFS dataset
A PBS restore is not the same as a live VM fio test. It exercises the PBS repository, network path, decryption, deduplication, compression, and the destination ZFS write path. I do not want that traffic competing with the production VM pool during the benchmark.
I create a scratch dataset on the same pool for quick tests, or on a second pool when I want cleaner isolation.
zfs create -p -o mountpoint=/scratch -o compression=zstd -o atime=off rpool/scratch
mkdir -p /scratch/pbs-restore
Using the same pool is simpler and still gives useful numbers. Using a second pool is cleaner because production ARC and device queue depth stay out of the way. For a pre-upgrade check, same-pool scratch is usually enough unless the pool is already near capacity.
Time the restore, then read the restored image
First, list the snapshots for the test VM:
proxmox-backup-client list snapshots --repository backup@[email protected]:store --ns vm --vmid 100
Then list the archives inside the snapshot you want to restore:
proxmox-backup-client list archives --repository backup@[email protected]:store --ns vm --vmid 100 --snapshot 2025-10-01T02:00:00Z
For a VM with a virtio disk, the archive name is often drive-virtio0. Check the output from the previous command before running the restore.
time proxmox-backup-client restore 2025-10-01T02:00:00Z drive-virtio0 backup@[email protected]:store /scratch/pbs-restore --ns vm --vmid 100
On my test box, a 42 GB VM drive archive restored in about 4 minutes and 12 seconds to an NVMe ZFS pool over 10 GbE. That number is not universal, but it shows the kind of result I want to record: repository, network, PBS version, destination pool, and elapsed time together.
After the restore, inspect the output:
ls -lh /scratch/pbs-restore
Then benchmark the restored image with fio. The exact filename can vary by PBS version and archive type, so this find command keeps the test simple:
find /scratch/pbs-restore -maxdepth 1 -type f -exec fio --name=restored-image --rw=randread --bs=4k --iodepth=16 --numjobs=2 --size=1G --runtime=60 --time_based --direct=1 --ioengine=libaio --group_reporting --filename={} \;
This is not a full VM lifecycle test. It is a storage-path test. It answers a narrow but useful question: after PBS restores the data, can the destination ZFS pool serve reads at a reasonable rate?
If you need a full VM restore, restore to a temporary VM ID and run fio inside that VM. For my pre-upgrade check, the raw restored image test is faster and easier to repeat.
If your repository is on S3, pair this with the PBS S3 restore benchmark so the remote repository side is not the unknown variable.
What numbers usually shift before and after the upgrade
Not every upgrade changes the same thing. Kernel, QEMU, ZFS, and PBS client updates can move different parts of the I/O path. The table below is what I watch most closely.
| Test | What it checks | Healthy signal | Warning sign |
|---|---|---|---|
| 4K random write | Guest-to-zvol write path | Stable IOPS and p99 latency | Large p99 spikes with 16K volblocksize |
| 1M sequential read | ZFS sequential read and ARC behavior | Throughput close to pool device limit | Throughput drops during scrub or ARC pressure |
| PBS restore | Repository, network, dedup, compression, ingest | Restore time close to previous baseline | CPU pegged, network stall, or pool write stall |
| Restored image read | Post-restore read readiness | IOPS within 10 to 15 percent of live VM baseline | Restored image reads far slower than live VM |
Before upgrading to Proxmox VE 9.2, I save the fio output and the restore duration. After the upgrade, I rerun the same commands. If the numbers move a little, I look at the pool state. If they move a lot, I compare the environment before blaming the upgrade.
Common gotchas that make the benchmark lie
The biggest gotcha I see is benchmarking 4K random writes without checking volblocksize. A guest can issue 4K writes, but the ZFS volume may be built around 16K blocks. The result can look like a failing SSD when it is actually a block alignment effect.
zfs get -H volblocksize rpool/data/vm-100-disk-0
zfs get -H primarycache rpool/data/vm-100-disk-0
Another gotcha is running fio on the Proxmox host against the raw ZFS volume and expecting it to match the guest. Host fio can be faster because it skips the guest filesystem and virtio path. It is still useful, but it is not the same measurement.
A third gotcha is restoring PBS backups to the same pool while the production pool is already busy. PBS restore can be CPU-bound and write-heavy. If the destination pool is also serving active VMs, the restore time may look much worse than it will during a maintenance window.
A fourth gotcha is ignoring the restore filename. PBS may restore an archive as a file with the archive name, but the exact name can differ depending on the VM disk interface and PBS version. Check the restore output directory before running fio.
If the pool has any history of repairs or replaced disks, do not start with a performance test. Run the clean ZFS pool import test first, and use the ZFS resilver PBS backup test if the pool has recently resilvered. A pool in a fragile state can produce misleading I/O numbers.
Should you upgrade if the baseline looks bad?
Not always. A bad baseline is a reason to pause, not necessarily a reason to cancel the upgrade.
If the problem is volblocksize alignment, I can test an aligned workload and decide whether the real VM cares. If the problem is ARC pressure, I can check whether a scrub, backup job, or PBS sync is running at the same time. If the problem is PBS restore CPU load, I can compare PBS versions and repository settings before changing the Proxmox host.
I upgrade to Proxmox VE 9.2 when the baseline is either good enough or clearly explained. Good enough means the VM meets the application’s latency and throughput needs. Clearly explained means I know whether the bottleneck is the guest, the ZFS volume, the pool devices, the PBS repository, or the restore destination.
The goal is not to prove that Proxmox VE 9.2 is faster. The goal is to know what the storage path did before the upgrade, so the post-upgrade result is not a mystery.
Conclusion
Benchmarking ZFS-backed VM disks with fio and timing a PBS restore before upgrading to Proxmox VE 9.2 turns storage anxiety into a measurable baseline. Record the guest fio results, the PBS restore duration, and the pool state at the same moment, then repeat the same tests after the upgrade. Your next step is to pick one production ZFS-backed VM, run the 4K and 16K fio tests, and time one PBS restore to a scratch dataset before scheduling the 9.2 maintenance window.


