Awfully slow write performance

Andreas_H

Member
Jan 6, 2021
10
2
8
45
Hello,

I am experiencing awfully slow write performance on a newly setup PVE node (single-node setup).

The server is a HP ProLiant ML 110 Gen10 with 48GB RAM, a Xeon Silver 4208. It has two NVME SSDs (WDC WDS100T2B0C-00PXH0) used as a ZFS mirror (boot device) and two 8TB Hard Disks (ST8000DM004-2CX188) also used for a ZFS mirror.

I have created a Windows Server 2019 VM with the first disk on the SSD mirror and a second disk on the HDD mirror. When copying larger files over the network to the second disk on this VM, it copies at ~80MB/s for about a minute, then stalls completely for another minute, resumes again at normal speed and so on.

I did some fio benchmarks on both mirrors. Both show extremely slow write performance; while the SSD mirror can still keep up with a 1GBit/s, the HDD mirror is below 30MB/s when writing. Tests were done using this:
fio --ioengine=psync --filename=/dev/zvol/<pool>/test --size=9G --time_based --name=fio --group_reporting --runtime=60 --direct=1 --sync=1 --iodepth=1 --rw=<read|write> bs=<4K|4M> --numjobs=<1|4|16>

Here are the results for the SSDs:
JobRead_KBRead-Bandwidth_KBRead-IOPSWrite-KBWrite-Bandwidth-KBWrite-IOPS
read-4k-1j​
19031104​
317179​
79294​
0​
0​
0​
read-4k-4j​
47552652​
792530​
198132​
0​
0​
0​
read-4k-16j​
57251996​
954184​
238546​
0​
0​
0​
read-4m-1j​
156532736​
2608835​
636​
0​
0​
0​
read-4m-4j​
270139392​
4502098​
1099​
0​
0​
0​
read-4m-16j​
260710400​
4344666​
1060​
14476​
241​
60​
write-4k-4j​
0​
0​
0​
2803156​
46718​
11679​
write-4k-16j​
0​
0​
0​
5008988​
83480​
20870​
write-4m-1j​
0​
0​
0​
8556544​
142599​
34​
write-4m-4j​
0​
0​
0​
8585216​
143005​
34​
write-4m-16j​
0​
0​
0​
8564736​
141856​
34​

And the results for the HDDs:
read-4k-1j​
18907444​
315118​
78779​
0​
0​
0​
read-4k-4j​
47664812​
794400​
198600​
0​
0​
0​
read-4k-16j​
57263812​
954380​
238595​
0​
0​
0​
read-4m-1j​
170958848​
2849266​
695​
0​
0​
0​
read-4m-4j​
269844480​
4497183​
1097​
0​
0​
0​
read-4m-16j​
252141568​
4201869​
1025​
2332​
38​
9​
write-4k-4j​
0​
0​
0​
5284​
87​
21​
write-4k-16j​
0​
0​
0​
12312​
205​
51​
write-4m-1j​
0​
0​
0​
1183744​
19723​
4​
write-4m-4j​
0​
0​
0​
1572864​
26061​
6​
write-4m-16j​
0​
0​
0​
2461696​
33592​
8​

Any ideas what could be causing this?

Thanks,
Andreas
 
I have the same behavior on Windows Server VM's on Proxmox.

30MB/s is about the same performance I get on spinning disks. The actual transfer has the same bad behavior you've described where it "peaks" for a little while then stalls at zero, then peaks, then stalls.... yuk!

On linux VM's the performance is a bit better and more predictable/smooth, but still pretty terrible compared to our raw disk/network capabilities.

My virtual disks are backed by ceph, but I think the problem is that the virtio drivers for disk controllers on Windows are not working properly.

I've tried many different versions of the virtio drivers, and also tried both VirtIO Block and VirIO SCSI as devices. It's bad either way but even worse on VirtIO SCSI.

On SSD backed storage things work better. (good enough, but still not great).

I'm ordering a bunch of SSD's to install as dedicated WAL/DB drives on the ceph cluster to try to overcome the problem with brute force.
 
Last edited:
Your HDDs are using SMR. As soon as the cache hits the limit every write will be super slow. And ZFS doesnt work well with SMR drives. You can encounter write errors because the HDDs aren't responding fast enough. If you can send them back, do it and get some CMR drives instead.
 
Last edited:
This. SMR Drives are unusable for everything besides long term archiving and basically read only load.
Running VMs on them is not really possible long term. It stops working as soon as the drive has to overwrite any parts. This is not a ZFS problem, the disks are basically broken by design.
 

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!