文档章节

VM resource allocation in a virtual environment

j
 jenningsloy318
发布于 2016/07/26 14:25
字数 246
阅读 13
收藏 0

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. 

 

© 著作权归作者所有

j
粉丝 0
博文 21
码字总数 4605
作品 0
成都
私信 提问
ELKB5.3 遇到的问题介绍

问题1: [elk@storm2 bin]$ OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000094cc0000, 1798569984, 0) failed; error='Cannot allocate memory' (errno=12) # # The......

irow10
2017/04/18
0
0
Kubernetes上进行虚拟机管理插件-KubeVirt

KubeVirt(https://github.com/kubevirt/kubevirt) is a virtual machine management add-on for Kubernetes. The aim is to provide a common ground for virtualization solutions on top......

openthings
01/03
58
0
[linux][KVM]

How to Create Virtual Machines in Linux Using KVM (Kernel-based Virtual Machine) – Part 1 by Mohammad Dosoukey | Published: January 12, 2015 | Last Updated: February 26, 2015 ......

active_health
2016/08/03
16
0
[Yarn-Tunning]

overview A yarn cluster is composed of host machines. Hosts provide memory and CPU resources. A vcore, or virtual core, is a usage share of a host CPU. Tuning YARN consists prim......

HarryWu
2016/08/31
19
0
Hadoop/Yarn/MapReduce内存分配(配置)方案

原创文章,未经博主允许不得转载。 以 horntonworks给出推荐配置为蓝本,给出一种常见的Hadoop集群上各组件的内存分配方案。方案最右侧一栏是一个8G VM的分配方案,方案预留1-2G的内存给操作...

Zero零_度
2016/05/20
490
0

没有更多内容

加载失败,请刷新页面

加载更多

华为手机翻译功能怎么使用?这三种方法请务必收藏

华为手机翻译功能怎么使用?在我们的生活中会经常遇到翻译问题,许多外语不好的朋友该怎么办呢?华为手机已经为我们解决了这个问题,今天小编就教大家学会使用华为手机中的三种翻译技巧,需要...

翻译小天才
16分钟前
2
0
企业服务软件开发中需要注意的三个问题

在开发企业服务软件时,我们需要分为:业务需求、用户需求、产品需求,三大需求层次,三个层次互相关联,企业服务软件开发首先要服务业务,需要满足业务的需求,再关注用户体验,也就是用户需...

积木创意科技
19分钟前
2
0
C++容器底层数据结构

内置数组: int arr[10][10];memset(arr,0,10*10*sizeof(int)); //初始化int tmp[10][10];memcpy(arr, tmp, 10 * 10 * sizeof(int));//拷贝 void *memcpy(void *destin, void *source,......

SibylY
19分钟前
2
0
Dubbo-自适应拓展机制

背景 在 Dubbo 中,很多拓展都是通过 SPI 机制进行加载的,比如 Protocol、Cluster、LoadBalance 等,这些都是Dubbo的基础组件。这些基础组件的拓展不是在系统框架启动阶段被加载,而是拓展方...

rock-man
48分钟前
7
0
Kali安装fcitx输入法(五笔)

安装fcitx > sudo apt-get install fcitx-rime fcitx-config-gtk3 重启 > sudo reboot fcitx配置 效果就是这样 配置输入法切换 系统设置...

yeahlife
50分钟前
4
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部