Disk Speeds inside a VM.

- Changed from LVM-Thin to LVM, now getting 694 IOPS on the guest, So getting close to 25% of metal.
- Then moved the disk to EXT4 storage, now getting 767 IOPS on the guest, ~28% of metal.
- Also tried the disk on XFS storage, get about the same 766 on the guest.
- Last thing I tried, turned off mitigations on the pve-host (still enabled on guest), saw about 900 IOPS, still not 50% but double where I started...

So I guess what we'd all like to know, how the heck are people getting 80%-50% IO performance in their VM guests? What are we all doing wrong? As I see so many threads/tickets complaining about the same thing...

So far these seem to get me better performance:
- LVM not LVM-Thin (doesn't thin provision will use more disk, snapshots are larger?)
- Use Virtio-blk with IO Thread, Discard
- Use raw image (I think default for LVM anyway)
- Make sure using Host CPU, Make sure NUMA is selected and matching socket count (if your host has that)
- Make sure you set WCE=1 for your drives (make ent SAS drives tho!)
- Set mitigations=off - not for prod or any sort of system with untrusted actors, make your own assessment for risk.
 
  • Like
Reactions: zvangi
- Use Virtio-blk with IO Thread, Discard
Don't use discard, trim weekly (or daily ifwant) by cron - that kill's performance !!
- Make sure using Host CPU, Make sure NUMA is selected and matching socket count (if your host has that)
We mostly use default, select just "host" if trying some nested virtualization simulations.
- LVM not LVM-Thin (doesn't thin provision will use more disk, snapshots are larger?)
We use xfs or nfs on xfs without lvm, test some zvol/zfs. Tune xfs on raidset and raid-ctrl, mkfs, mount, /proc and /sys, tune nfs mount if using.
Where is this setting ?
 

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!