How to split disk bandwidth between VMs

ds174

New Member
Mar 27, 2024
1
0
1
Hello,

I have sometimes some VMs that run out of memory and use their swap which slows down the whole host because these VM saturate the disk bandwidth.

In order to mitigate that, I want to split the disk bandwidth between multiple VM by distributing available bandwidth by "a percent of total available bandwidth", like this :

VM A25% of host disk bandwidth
VM B33% of host disk bandwidth
VM C15% of host disk bandwidth
... etc

But, in the advanced tab of disk bandwidth in the vm config, we can only input values in MB/s.

Screenshot 2024-03-27 at 20.41.38.png

How can I get the total available bandwidth (in MB/s) on my host system ? Is there any command to run a "speed test" on the host that outputs the available bandwidth in MB/s ?
Does this result would be relevant to be used as the basis for calculate the value to use in each VM configuration for read limit, write limit, etc. ?
 
hdparm -t /dev/nvme0n1

/dev/nvme0n1:

Timing buffered disk reads: 2168 MB in 3.00 seconds = 721.92 MB/sec



time dd if=/dev/nvme0n1 of=/dev/null bs=1M count=700 status=progress


700+0 records in
700+0 records out
734003200 bytes (734 MB, 700 MiB) copied, 0.579544 s, 1.3 GB/s
real 0m0.620s
 

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!