Hi,
I would like to priorize some KVM VM over other ones.
I've seen there's a "CPU Units" field in the "CPU Options" button that is available from the hardware tab on the KVM machines.
From the help I read that this option allows to give more CPU to a VM, but, does this apply to KVM Virtual Machines? Or is just to LXC machines...
I've tried to change the CPU Units to many KVM virtual machines and, after setting any different number from default (1024) I can see that the changes are stored in the virtual machine configuration file (i.e: /etc/pve/qemu-server/<vm_id>.conf) under the parameter cpuunit.
Anyway, I think there is something wrong with this, because this parameter is not passed as an argument to the /usr/bin/kvm command (doing a ps I can see that all the other params are passed to it). In fact, as far as I know (after reading the manual), kvm does not have any command line argument to change the cpu priority.
Moreover, I cannot observe any changes in the proxmox node cpu use, after giving a lot of "cpu units" to a test machine and executing a cpu stress on it (for example with the command "stress -c 2 -t 20s" on a linux vm)
I imagine that this parameter only applies to LXC containers, but I prefer to ask here in the forum and be sure of it. Anyway, it would be great to be able to give more cpuunits to priorize some KVM virtual machines, in a similar way as the VMware CPU Shares.
Can you please tell me if this is an interface bug? Is there any way to priorize a KVM machine on a node over the others?
Thanks for your help,
Manuel Martínez
I would like to priorize some KVM VM over other ones.
I've seen there's a "CPU Units" field in the "CPU Options" button that is available from the hardware tab on the KVM machines.
From the help I read that this option allows to give more CPU to a VM, but, does this apply to KVM Virtual Machines? Or is just to LXC machines...
I've tried to change the CPU Units to many KVM virtual machines and, after setting any different number from default (1024) I can see that the changes are stored in the virtual machine configuration file (i.e: /etc/pve/qemu-server/<vm_id>.conf) under the parameter cpuunit.
Anyway, I think there is something wrong with this, because this parameter is not passed as an argument to the /usr/bin/kvm command (doing a ps I can see that all the other params are passed to it). In fact, as far as I know (after reading the manual), kvm does not have any command line argument to change the cpu priority.
Moreover, I cannot observe any changes in the proxmox node cpu use, after giving a lot of "cpu units" to a test machine and executing a cpu stress on it (for example with the command "stress -c 2 -t 20s" on a linux vm)
I imagine that this parameter only applies to LXC containers, but I prefer to ask here in the forum and be sure of it. Anyway, it would be great to be able to give more cpuunits to priorize some KVM virtual machines, in a similar way as the VMware CPU Shares.
Can you please tell me if this is an interface bug? Is there any way to priorize a KVM machine on a node over the others?
Thanks for your help,
Manuel Martínez