Hello all!
Perhaps my Googlefu skills are lacking but I wanted to see how you all manage processor time between multiple VMs. With HVM, I have a new found fascination with the controls available for dedicating time to VMs. So to get a better understanding, first a quick summary and a couple of scenarios I am curious as to how you guys would configure. Aside from how many vCPUs we are able to assign, available to us are three controls basically: minimum, maximum, and priority (reserve, limit, weight). I have not been able to find a good philosophy for their uses but I am experimenting with taking these steps through them:
Thank you very much for reading and any suggestions!
Perhaps my Googlefu skills are lacking but I wanted to see how you all manage processor time between multiple VMs. With HVM, I have a new found fascination with the controls available for dedicating time to VMs. So to get a better understanding, first a quick summary and a couple of scenarios I am curious as to how you guys would configure. Aside from how many vCPUs we are able to assign, available to us are three controls basically: minimum, maximum, and priority (reserve, limit, weight). I have not been able to find a good philosophy for their uses but I am experimenting with taking these steps through them:
- Set a modest reserve based on how many VMs I'd like to run at any given time and use this for a basis of prioritization later (more on this in scenarios below).
- Cap maximum at just a hair below 100% also based on how many VMs I'd like to run
- Most interestingly, prioritizing the weight by which VM should take precedence
- Dual Xeon 4C/8T (8C/16T total), running four VMs, I want to have what I call "contested space" for dynamic CPU usage. What I have loosely drawn in the sand is above 60% and below 98% overall usage (OAU). We'll say two VMs get 4*vCPU and two VMs get 2*vCPU. The two former VMs account for 40% OAU reserve and the other two account for 20% OAU reserve. Likewise for the limits and so that means in the "contested space" it leaves weighting as the control over which VM gets priority yet in times of little demand, all VMs have access to as much speed as possible.
- Dual Xeon 2C/2T (4C/4T total), running two perhaps three VMs, that "contested space" is 50% in the anticipation of the third VM. Question time: would it be better to have the always on VMs assigned 4*vCPUs and the third assigned one or two OR should the two VMs be assigned just two vCPUs? So lets say those two VMs are assigned 4*vCPUs with 25% reserve each (arriving at 50% OAU) leaving 20% reserve (10% OAU) for the third VM.
Thank you very much for reading and any suggestions!