very bad HDD write performance

ezh

Well-Known Member
Nov 5, 2014
39
0
46
I've build a test server. AMD Ryzen 2600, 8 Gb RAM, 3 x 2 Tb HDD.
Latest Proxmoz. ZFS filesystem.

All VM vere very-very slow. Tested HDD under Windows VM. Got about 50 kb/s (or smth about) of writing speed.
Tested Ubuntu VM. About the same.

Finally tested Proxmox itself:
root@proxmox-test:~# dd if=/dev/zero of=/tmp/test2.img bs=512 count=1000 oflag=dsync
1000+0 records in
1000+0 records out
512000 bytes (512 kB, 500 KiB) copied, 21.5373 s, 23.8 kB/s

What could be the problem? Should I reinstall Proxmox from scratch?
Should I install natavly some Windows and see the numbers?

Tnx.
 
Try EXT4 for the underlying filesystem with RAW VM disk images. Your numbers will improve.

# dd if=/dev/zero of=/mnt/pve/local-datastore/test2.img bs=512 count=1000 oflag=dsync
1000+0 records in
1000+0 records out
512000 bytes (512 kB, 500 KiB) copied, 0.735923 s, 696 kB/s

# dd if=/dev/zero of=/mnt/pve/local-datastore/test2.img bs=1M count=100 oflag=dsync
100+0 records in
100+0 records out
104857600 bytes (105 MB, 100 MiB) copied, 0.967688 s, 108 MB/s
 
Last edited:
For ZFS, a lot of RAM is required (the more the better as by default it takes half), and for spinning disks it is recommended (basically required) to have an enterprise class SSD to offload ZIL/L2ARC operations to increase performance.

Your performance should improve after that, but it will not most likely be faster than a simpler filesystem setup such as EXT4.
 
If you want good performance, do not use raid5 and no cheap hardware in general.
 
This is my personal test server only. It should perform well, but it will not have any load at all.
 
md works fine just cant use it for boot. Maybe go a little ssd for boot and do your raid 5 via software
 

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!