VM resource allocation in a virtual environment
2016-07-26 14:25
381 查看
Virtual resources are controled by hypervisor, and to allocated to individual VM.
CPU/MEM resources are not equivilant with them on the node, this is called resource overcommitment.
1. CPU:
VM consue CPU resource which can be treated in frequency.
for example: we have 20 VMs, each of them running CPU at 1100Mhz, thus total 22000Mhz.
when the node has 10 cores, and each has 2.5GHZ.
we can see that the CPU usage is 22000/2500*10= 88%.
thus when we design the architecutre we may consider the CPU frequence/Cores/sockets and also the estimation of consuption on each VM in frequence.
furthermore there is a cpu_allocation_ratio which point the ability of each physical cores can virulized to vitual cores. if the ratio is 16:1 which means that each physical core can simulate up to 16 virutal cores
2. Memory
Same with CPU resource, there is also a ram_allocation_ratio. we can imagin that we have totally 4G memory on the node, but we can create 4 VMs with 2G memory each, totally 8G memory, more than capacibily of 4G on the node; hypervisor will monitor the idle VM instance, and allocate the memory to the busier instance from the idle ones.
but we still need to monitor closely and gather more infomation to determine the best ratio number, make full use of the hardware with no performance issue or crash problems.
CPU/MEM resources are not equivilant with them on the node, this is called resource overcommitment.
1. CPU:
VM consue CPU resource which can be treated in frequency.
for example: we have 20 VMs, each of them running CPU at 1100Mhz, thus total 22000Mhz.
when the node has 10 cores, and each has 2.5GHZ.
we can see that the CPU usage is 22000/2500*10= 88%.
thus when we design the architecutre we may consider the CPU frequence/Cores/sockets and also the estimation of consuption on each VM in frequence.
furthermore there is a cpu_allocation_ratio which point the ability of each physical cores can virulized to vitual cores. if the ratio is 16:1 which means that each physical core can simulate up to 16 virutal cores
2. Memory
Same with CPU resource, there is also a ram_allocation_ratio. we can imagin that we have totally 4G memory on the node, but we can create 4 VMs with 2G memory each, totally 8G memory, more than capacibily of 4G on the node; hypervisor will monitor the idle VM instance, and allocate the memory to the busier instance from the idle ones.
but we still need to monitor closely and gather more infomation to determine the best ratio number, make full use of the hardware with no performance issue or crash problems.
相关文章推荐
- Leetcode 292 Nim Game
- 粤嵌-Android学习之Socket编程 手机为服务器 模拟器为客户端
- Dynamics CRM2016 Web Api之时间字段值的处理
- Dynamics CRM2016 Web Api之时间字段值的处理
- Dynamics CRM2016 Web Api之时间字段值的处理
- Java精确计算小数
- php引用(&)详解及注意事项——引用返回function &a();&a()
- iOS使用Sencha Touch、ExtJs6 Modern或iscroll等框架时,文本框聚焦的光标不跟随页面(文本框)滚动 的解决办法
- hdu1201-日期问题
- javaweb学习总结(四)——Http协议
- 文字的雕刻效果及textview限制行数
- iOS 设置view的边框
- 51Nod-1137-矩阵乘法
- npm镜像地址
- Linux下nginx配置https协议访问的方法
- 面试准备之--二叉树打印
- dp和sp
- java socket解析和发送二进制报文工具(附java和C++转化问题)
- 鼠标滑入滑出,输入框获得失去焦点后触发事件的N种方法之一二
- Swift的Optional、Array