Optimizing KVM virtual
machines
for performance
Boyan Krosnov
Chief of Product
StorPool Storage
● Better application performance -- e.g. time to load a page, time to rebuild,
time to execute specific query
● Happier customers (in cloud / multi-tenant environments)
● Lower cost per delivered resource (per VM)
○ through higher density
Why optimize
● Compute - CPU and memory
● Storage
● Network
● Do you optimize for throughput or for latency?
Where:
● VM, guest OS, drivers, etc.
● Host OS and hypervisor
● Host hardware
● Network
● Storage system
What
Typically 2x 10GE per hypervisor for storage traffic
Same or separate 2x 10GE for internet and inter-VM traffic
Typical cluster has just 2 switches. Up to 96x 10GE ports at low cost.
We are starting to see 40/56 GigE clusters and we expect many 25 GigE networks
in the next year.
VLANs, Jumbo frames, flow control.
RDMA
A word on networks
Typically
- 2x E5-2697v3 -- 28 cores, 56 threads, @3.1GHz all-cores turbo
- 256-384-512 GB RAM
- 10/40 GigE NICs with RDMA
-
- firmware versions and BIOS settings matter
- Understand power management -- esp. C-states and P-states
- Think of rack level optimization - how do we get the lowest total cost per
delivered resource.
A word on host hardware
RHEL7 Virtualization_Tuning_and_Optimization_Guide
Also
https://pve.proxmox.com/wiki/Performance_Tweaks
http://events.linuxfoundation.org/sites/events/files/slides/CloudOpen2013_Khoa_Huynh_v3.pdf
http://www.linux-kvm.org/images/f/f9/2012-forum-virtio-blk-performance-improvement.pdf
http://www.slideshare.net/janghoonsim/kvm-performance-optimization-for-ubuntu
… but don’t trust everything you read. Perform your own benchmarking!
Good references
Recent Linux kernel, KVM and QEMU
… but beware of the bleeding edge
E.g. qemu-kvm-ev from RHEV (repackaged by CentOS)
tuned-adm virtual-host
tuned-adm virtual-guest
Host OS, guest OS
● Use virtio-net driver
● regular virtio vs vhost_net
● SR-IOV (PCIe pass-through)
Networking
● cache=none -- direct IO, bypass host buffer cache
● io=native -- use Linux Native AIO, not POSIX AIO (threads)
●
● virtio-blk -> dataplane
● virtio-scsi -> multiqueue
●
● in guest virtio_blk.queue_depth 128 -> 256
Block I/O
- balloon
- KSM (RAM dedup)
- huge pages, THP
- NUMA
- use local-node memory if you can
- route IRQs of network and storage adapters to a core on the node they are on
Compute - Memory
Pinning
HT
NUMA
Compute - CPU
Demo
Boyan Krosnov
b k @ storool.com
@bkrosnov
https://storpool.com/

More Related Content

PPT
La donazione di organi a cuore fermo in Toscana
PPT
Hardware accelerated Virtualization in the ARM Cortex™ Processors
PDF
LCA13: Xen on ARM
PPTX
Traumatic chest injury
PDF
Write miss
PPTX
Major Trauma Management and Trauma Team Roles
PDF
Process Scheduler and Balancer in Linux Kernel
PDF
Embedded C - Lecture 4
La donazione di organi a cuore fermo in Toscana
Hardware accelerated Virtualization in the ARM Cortex™ Processors
LCA13: Xen on ARM
Traumatic chest injury
Write miss
Major Trauma Management and Trauma Team Roles
Process Scheduler and Balancer in Linux Kernel
Embedded C - Lecture 4

What's hot (8)

PDF
ANSI C Macros
PPTX
Extracoporeal Life Support presentation final
PPSX
ICU management of ECMO pt
PPT
OSEK / VDX
PPTX
Lec04 gpu architecture
PPT
Presentation1VMware EsxI Short Presentation
PDF
PDF
RTAI - Earliest Deadline First
ANSI C Macros
Extracoporeal Life Support presentation final
ICU management of ECMO pt
OSEK / VDX
Lec04 gpu architecture
Presentation1VMware EsxI Short Presentation
RTAI - Earliest Deadline First
Ad

Viewers also liked (10)

PDF
Kvm optimizations
PDF
OpenNebula is Evolving... Fast! - Jaime Melis
PDF
OpenNebula - OpenNebula and tips for CentOS 7
PDF
美团技术团队 - KVM性能优化
PDF
OpenStack Overview: Deployments and the Big Tent, Toronto 2016
PDF
OpenNebulaConf 2016 - Measuring and tuning VM performance by Boyan Krosnov, S...
PDF
Kvm performance optimization for ubuntu
PDF
OpenNebula 4.14 Hands-on Tutorial
ODP
Foreman in your datacenter
PDF
Standards ouverts, interopérabilité et logiciel libre - Canada, 2015
Kvm optimizations
OpenNebula is Evolving... Fast! - Jaime Melis
OpenNebula - OpenNebula and tips for CentOS 7
美团技术团队 - KVM性能优化
OpenStack Overview: Deployments and the Big Tent, Toronto 2016
OpenNebulaConf 2016 - Measuring and tuning VM performance by Boyan Krosnov, S...
Kvm performance optimization for ubuntu
OpenNebula 4.14 Hands-on Tutorial
Foreman in your datacenter
Standards ouverts, interopérabilité et logiciel libre - Canada, 2015
Ad

Similar to Optimization of OpenNebula VMs for Higher Performance - Boyan Krosnov (20)

PDF
Achieving the ultimate performance with KVM
PDF
Achieving the ultimate performance with KVM
PDF
Achieving the Ultimate Performance with KVM
PDF
Achieving the Ultimate Performance with KVM
PDF
Best Practices for Virtualizing Apache Hadoop
PDF
KVM Tuning @ eBay
PDF
Hyper-V Best Practices & Tips and Tricks
PPTX
Best Practices for Virtualizing Hadoop
PDF
Libvirt/KVM Driver Update (Kilo)
PPTX
Simplifying Hyper-V Management for VMware Administrators
PDF
Virtualization Architecture & KVM
PPTX
Hyper-V: Best Practices
ODP
Mastering KVM Virtualization - Overview
PPT
Using Virtualization Manager 4.0 to Manage Your Environment
PPTX
VMware Performance Troubleshooting
PPTX
Cassandra Tuning - above and beyond
PPTX
Cassandra Tuning - Above and Beyond (Matija Gobec, SmartCat) | Cassandra Summ...
PPTX
Master VMware Performance and Capacity Management
PPTX
Vmwareperformancetroubleshooting 100224104321-phpapp02
PPTX
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
Achieving the ultimate performance with KVM
Achieving the ultimate performance with KVM
Achieving the Ultimate Performance with KVM
Achieving the Ultimate Performance with KVM
Best Practices for Virtualizing Apache Hadoop
KVM Tuning @ eBay
Hyper-V Best Practices & Tips and Tricks
Best Practices for Virtualizing Hadoop
Libvirt/KVM Driver Update (Kilo)
Simplifying Hyper-V Management for VMware Administrators
Virtualization Architecture & KVM
Hyper-V: Best Practices
Mastering KVM Virtualization - Overview
Using Virtualization Manager 4.0 to Manage Your Environment
VMware Performance Troubleshooting
Cassandra Tuning - above and beyond
Cassandra Tuning - Above and Beyond (Matija Gobec, SmartCat) | Cassandra Summ...
Master VMware Performance and Capacity Management
Vmwareperformancetroubleshooting 100224104321-phpapp02
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)

More from OpenNebula Project (20)

PDF
OpenNebulaConf2019 - Welcome and Project Update - Ignacio M. Llorente, Rubén ...
PDF
OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...
PDF
OpenNebulaConf2019 - CORD and Edge computing with OpenNebula - Alfonso Aureli...
PDF
OpenNebulaConf2019 - 6 years (+) OpenNebula - Lessons learned - Sebastian Man...
PDF
OpenNebulaConf2019 - Performant and Resilient Storage the Open Source & Linux...
PDF
OpenNebulaConf2019 - Image Backups in OpenNebula - Momčilo Medić - ITAF
PDF
OpenNebulaConf2019 - How We Use GOCA to Manage our OpenNebula Cloud - Jean-Ph...
PDF
OpenNebulaConf2019 - Crytek: A Video gaming Edge Implementation "on the shoul...
PDF
Replacing vCloud with OpenNebula
PDF
NTS: What We Do With OpenNebula - and Why We Do It
PDF
OpenNebula from the Perspective of an ISP
PDF
NTS CAPTAIN / OpenNebula at Julius Blum GmbH
PDF
Performant and Resilient Storage: The Open Source & Linux Way
PDF
NetApp Hybrid Cloud with OpenNebula
PPTX
NSX with OpenNebula - upcoming 5.10
PDF
Security for Private Cloud Environments
PDF
CheckPoint R80.30 Installation on OpenNebula
PDF
DE-CIX: CloudConnectivity
PDF
PDF
Cloud Disaggregation with OpenNebula
OpenNebulaConf2019 - Welcome and Project Update - Ignacio M. Llorente, Rubén ...
OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...
OpenNebulaConf2019 - CORD and Edge computing with OpenNebula - Alfonso Aureli...
OpenNebulaConf2019 - 6 years (+) OpenNebula - Lessons learned - Sebastian Man...
OpenNebulaConf2019 - Performant and Resilient Storage the Open Source & Linux...
OpenNebulaConf2019 - Image Backups in OpenNebula - Momčilo Medić - ITAF
OpenNebulaConf2019 - How We Use GOCA to Manage our OpenNebula Cloud - Jean-Ph...
OpenNebulaConf2019 - Crytek: A Video gaming Edge Implementation "on the shoul...
Replacing vCloud with OpenNebula
NTS: What We Do With OpenNebula - and Why We Do It
OpenNebula from the Perspective of an ISP
NTS CAPTAIN / OpenNebula at Julius Blum GmbH
Performant and Resilient Storage: The Open Source & Linux Way
NetApp Hybrid Cloud with OpenNebula
NSX with OpenNebula - upcoming 5.10
Security for Private Cloud Environments
CheckPoint R80.30 Installation on OpenNebula
DE-CIX: CloudConnectivity
Cloud Disaggregation with OpenNebula

Recently uploaded (20)

PPTX
assetexplorer- product-overview - presentation
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PDF
Salesforce Agentforce AI Implementation.pdf
PPTX
Computer Software - Technology and Livelihood Education
PPTX
CNN LeNet5 Architecture: Neural Networks
PPTX
Patient Appointment Booking in Odoo with online payment
PDF
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
PDF
Top 10 Software Development Trends to Watch in 2025 🚀.pdf
PDF
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
PPTX
Trending Python Topics for Data Visualization in 2025
PDF
Autodesk AutoCAD Crack Free Download 2025
PDF
AI/ML Infra Meetup | LLM Agents and Implementation Challenges
PDF
Website Design Services for Small Businesses.pdf
PDF
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
PDF
Topaz Photo AI Crack New Download (Latest 2025)
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PPTX
Cybersecurity: Protecting the Digital World
PDF
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
PDF
DNT Brochure 2025 – ISV Solutions @ D365
PDF
Cost to Outsource Software Development in 2025
assetexplorer- product-overview - presentation
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Salesforce Agentforce AI Implementation.pdf
Computer Software - Technology and Livelihood Education
CNN LeNet5 Architecture: Neural Networks
Patient Appointment Booking in Odoo with online payment
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
Top 10 Software Development Trends to Watch in 2025 🚀.pdf
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
Trending Python Topics for Data Visualization in 2025
Autodesk AutoCAD Crack Free Download 2025
AI/ML Infra Meetup | LLM Agents and Implementation Challenges
Website Design Services for Small Businesses.pdf
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
Topaz Photo AI Crack New Download (Latest 2025)
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
Cybersecurity: Protecting the Digital World
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
DNT Brochure 2025 – ISV Solutions @ D365
Cost to Outsource Software Development in 2025

Optimization of OpenNebula VMs for Higher Performance - Boyan Krosnov