r/virtualization • • Oct 05 '26

Examples of VM resizing

Can somebody tell me an example of why I need to downsize and upsize a virtual machine? I got asked and I'm looking for an actual, relevant problem which is solved by resizing.

0 Upvotes

14 comments sorted by

View all comments

7

u/vermyx Oct 05 '26

In esxi -
* Vm has 2vcpu and is constantly at 80% you add a vcpu based on usage
* vm has 4 vcpu and never goes above 25% you can cut down to 2 vcpu based on usage

The main reason you do this is that the more vcpu's a vm has the more cpu's it has to schedule at the same time. If the cpus are doing nothing you're just giving the cpu scheduler unnecessary work to find x open cpus and slowing things down.

1

u/Cool_Somewhere_3014 Oct 20 '26

Databases require simultaneous processing capabilities. Therefore, having 20 weaker cores is preferable to having 8 very strong ones. Consequently, downsizing a virtual machine can lead to an excessive decrease in performance. Modern CPU governors can maintain performance levels even when a host is overprovisioned, which can ultimately yield distinct advantages. Many of ours vms have have cpu usage about 20% and there is no option to downsize

1

u/vermyx Oct 20 '26

What you’re saying is incorrect. 20 cores makes esxi work harder in order to schedule 20 simultaneous cpus vs 8. This creates latency and slowdown and this is completely apparent in database workloads as these workloads are sensitive to latency

1

u/Cool_Somewhere_3014 Oct 20 '26

Lattency occurs only of you have heavy overprovisioned host. And databases need paralell operations. If you are afraid about latency just set higher priority.

1

u/vermyx Oct 20 '26

Latency also occurs on overprovisioned vms because you have to schedule all of those resources simultaneously. If you can' the scheduler has to wait for all of those resouces to become available and why you dont want idle cpus to be taken up by an overprovisioned vm.