一 调优的两个方面
1 Nova configuration
2 kvm
二 Compute Performance Bottlenecks
I/O :
All instances use local file system to host file systems. Scarce
resources as more instances are run per server by increasing cores.
First to be hit.
Memory/RAM:
Second factor to be hit after disks. Most VMs use RAM more extensively
than CPU. With increasing cores and larger VMs RAM contention becomes a
problem
CPU:
Usually the last to be hit. Not as much of a problem any more because of Hyper threading and multiple cores.
三 Nova Configuration to avoid bottlenecks
Flavors:
Only allow sensible Flavors for the users. Example on a compute node
with 8 CPU cores and 96 GB ram avoid creating a Flavors that uses 1 vCPU
and 64 GB RAM
Quotas:
Used to limit the number of resources used by a particular tenant:
number of instances, block volume number and space, or number of
snapshots and images kept in Glance. Consider the potential number of
tenants and available hardware.
Over provisioning:
Use technologies like thin provisioning, hyper threading to over
provision resources but have to be careful about performance hits.
四 Choice of Hypervisor
KVM
Xen
Hyper-V
VMWare ESXi
五 Optimzing KVM
Kernel I/O scheduler to “Deadline”.
Default is cfq, good enough for most work loads but for over provisioning use “deadline”
Huge pages enabled
Kernel same-page merging enabled (KSM)
Hyper threading turned on
Place guest file systems directly on hypervisor block devices instead of in files.
六 Deadline scheduler
七 Huge Pages
There are couple of important benefits of Huge Pages:
Page size is set 2MB instead of 4KB
Memory used by Huge Pages is locked and cannot be swapped.
八 kernel Same-page merging
The ksm tuned process work in the following way:
scans through the memory finding duplicate pages
Merges duplicate page to single page
Map to all virtual machine locations
Set copy on write
Separate page when individual guests write to it.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 记一次.NET内存居高不下排查解决与启示
2017-02-24 通过上一节部署出来的 Windows instance 有时候会发现操作系统时间总是慢 8 个小时,即使手工调整好时间和时区,下次 instance 重启后又会差 8 个小时
2016-02-24 openstack 云平台API
2016-02-24 内核参数优化
2016-02-24 内核参数优化/etc/sysctl.conf
2016-02-24 python
2014-02-24 Another mysql daemon already running with the same unix socket
2014-02-24 cloud maintenance of OpenNebula