Disk Speeds inside a VM.

rofo69

New Member
Jan 17, 2024
22
2
3
This is my issue.

My proxmox host has 2 SSD's. One is for the host itself, and the other is for the virtual Disks for the VMs and containers.
If I run hdparm or dd directly on the host, I get speeds on the VM SSD disk of around 370-390 MB/s, which is what I would expect.

If I go into a VM (doesnt matter if its windows or Ubuntu), the write speeds drop to 60-70MB/s with caching off, and around 110-130MB/s with write back enabled.
And with write back enabled, I get file transfers pausing for a few seconds when copying large files (6-8 GB).

So why is the write speed so slow when comparing performance from the host itself, and from within a VM ?
 
Last edited:
Best do io on second disk in vm but could be defined on first also, virtio block is selected after virtio scsi single :
 

Attachments

  • virtioblock.png
    virtioblock.png
    24.2 KB · Views: 3
Also, if it was the file system type slowing it down, why does it race along at normal speeds when testing from the host, but its slow in the guest?
I have other VM's running, but not doing huge amounts (usually mostly idle), but its possible there is contention on the drive, but the speed seems ridiculously slow.

Same thing happens inside an unpriv LXC too, speeds are slow.
 
Last edited:
As mentioned create second disk for your vm or lxc, choose virtio scsi single and virtio block, use it as block inside for eg a db or do a filesystem onto and bench that second disk for io.
 
@waltar - I created a second disk on a windows VM and mounted it as drive D, using the settings above. The speeds were exactly the same (very slow).
 
Same happens in ubuntu and a debian LXC.
I cant work out why the ssd disk is normal speed on the host but much much slower in the guest.
 
host raid6 5x2T, hdparm -t 300MB/s, Debian vm 2nd disk 620MB/s. Anyway hdparm is not a good benchmark program.
 

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!