Real- Time Mul,- Core Virtual Machine Scheduling in Xen



Similar documents
Real-Time Multi-Core Virtual Machine Scheduling in Xen

Real-Time Multi-Core Virtual Machine Scheduling in Xen

RT-OpenStack: CPU Resource Management for Real-Time Cloud Computing

Real-Time Multi-Core Virtual Machine Scheduling in Xen

RT-Xen: Towards Real-time Hypervisor Scheduling in Xen

Cloud Computing CS

Chapter 14 Virtual Machines

Virtualization and Cloud Computing. The Threat of Covert Channels. Related Work. Zhenyu Wu, Zhang Xu, and Haining Wang 1

Virtualization Technologies and Blackboard: The Future of Blackboard Software on Multi-Core Technologies

Scaling in a Hypervisor Environment

Hypervisors. Introduction. Introduction. Introduction. Introduction. Introduction. Credits:

Virtual Machine Monitors. Dr. Marc E. Fiuczynski Research Scholar Princeton University

Full and Para Virtualization

Enabling Technologies for Distributed and Cloud Computing

Virtualization for Cloud Computing

CHOOSING THE RIGHT RED HAT ENTERPRISE LINUX SUBSCRIPTION. Gerry Riveros Senior Manager Server Solutions, Red Hat May 6, 2011

Thomas Fahrig Senior Developer Hypervisor Team. Hypervisor Architecture Terminology Goals Basics Details

Real- Time Scheduling

GUEST OPERATING SYSTEM BASED PERFORMANCE COMPARISON OF VMWARE AND XEN HYPERVISOR

Avoid Paying The Virtualization Tax: Deploying Virtualized BI 4.0 The Right Way. Ashish C. Morzaria, SAP

Scheduling in The Age of Virtualization

Lecture 2 Cloud Computing & Virtualization. Cloud Application Development (SE808, School of Software, Sun Yat-Sen University) Yabo (Arber) Xu

Virtualization. Michael Tsai 2015/06/08

Microkernels, virtualization, exokernels. Tutorial 1 CSC469

HP Virtualization Performance Viewer

Enabling Technologies for Distributed Computing

2972 Linux Options and Best Practices for Scaleup Virtualization

Virtualization with Windows

Cloud Computing through Virtualization and HPC technologies

Virtualization. Dr. Yingwu Zhu

Performance Comparison of VMware and Xen Hypervisor on Guest OS

CPET 581 Cloud Computing: Technologies and Enterprise IT Strategies. Virtualization of Clusters and Data Centers

Virtualization. Types of Interfaces

A cure for Virtual Insanity: A vendor-neutral introduction to virtualization without the hype

Small is Better: Avoiding Latency Traps in Virtualized DataCenters

An Enhanced CPU Scheduler for XEN Hypervisor to Improve Performance in Virtualized Environment

Comparison of the Three CPU Schedulers in Xen

Best Practices for Monitoring Databases on VMware. Dean Richards Senior DBA, Confio Software

Performance tuning Xen

PERFORMANCE ANALYSIS OF KERNEL-BASED VIRTUAL MACHINE

Parallels Virtuozzo Containers

IOS110. Virtualization 5/27/2014 1

BridgeWays Management Pack for VMware ESX

White Paper. Recording Server Virtualization

The Benefits of POWER7+ and PowerVM over Intel and an x86 Hypervisor

Distributed and Cloud Computing

Networking for Caribbean Development

RED HAT ENTERPRISE VIRTUALIZATION FOR SERVERS: COMPETITIVE FEATURES

KVM in Embedded Requirements, Experiences, Open Challenges

SQL Server Virtualization 101. David Klee, Group Principal and Practice Lead. SQL PASS Virtualization VC,

Technical Paper. Moving SAS Applications from a Physical to a Virtual VMware Environment

Virtual Machines.

COS 318: Operating Systems. Virtual Machine Monitors

CS 695 Topics in Virtualization and Cloud Computing. Introduction

A hypervisor approach with real-time support to the MIPS M5150 processor

Leveraging NIC Technology to Improve Network Performance in VMware vsphere

CS 695 Topics in Virtualization and Cloud Computing and Storage Systems. Introduction

HRG Assessment: Stratus everrun Enterprise

Virtualization for Hard Real-Time Applications Partition where you can Virtualize where you have to

Data Centers and Cloud Computing

Quality of Service su Linux: Passato Presente e Futuro

COM 444 Cloud Computing

Week Overview. Installing Linux Linux on your Desktop Virtualization Basic Linux system administration

Hyper-V Private Cloud Virtualization & Optimization

Hypervisor Software and Virtual Machines. Professor Howard Burpee SMCC Computer Technology Dept.

Resource usage monitoring for KVM based virtual machines

9/26/2011. What is Virtualization? What are the different types of virtualization.

Multifaceted Resource Management for Dealing with Heterogeneous Workloads in Virtualized Data Centers

Basics in Energy Information (& Communication) Systems Virtualization / Virtual Machines

Towards an understanding of oversubscription in cloud

How To Make A Virtual Machine Aware Of A Network On A Physical Server

Hard Partitioning and Virtualization with Oracle Virtual Machine. An approach toward cost saving with Oracle Database licenses

The CPU Scheduler in VMware vsphere 5.1

MODULE 3 VIRTUALIZED DATA CENTER COMPUTE

Real-Time KVM for the Masses Unrestricted Siemens AG All rights reserved

Parallels Virtuozzo Containers

Rackspace Cloud Databases and Container-based Virtualization

Securing your Virtual Datacenter. Part 1: Preventing, Mitigating Privilege Escalation

Deploying Microsoft Exchange Server 2007 mailbox roles on VMware Infrastructure 3 using HP ProLiant servers and HP StorageWorks

A Dynamic Resource Management with Energy Saving Mechanism for Supporting Cloud Computing

Run-time Resource Management in SOA Virtualized Environments. Danilo Ardagna, Raffaela Mirandola, Marco Trubian, Li Zhang

Introduction to the NI Real-Time Hypervisor

VMware ESXi 3.5 update 2

Deputy Secretary for Information Technology Date Issued: November 20, 2009 Date Revised: December 20, Revision History Description:

Deeply Embedded Real-Time Hypervisors for the Automotive Domain Dr. Gary Morgan, ETAS/ESC

CSE 501 Monday, September 09, 2013 Kevin Cleary

Virtualization Technologies. Embrace the new world of healthcare

Database Virtualization

Performance Evaluation of VMXNET3 Virtual Network Device VMware vsphere 4 build

Oracle Database Scalability in VMware ESX VMware ESX 3.5

VirtualclientTechnology 2011 July

Transcription:

Real- Time Mul,- Core Virtual Machine Scheduling in Xen Sisu Xi 1, Meng Xu 2, Chenyang Lu 1, Linh Phan 2, Chris Gill 1, Oleg Sokolsky 2, Insup Lee 2 1 Washington University in St. Louis 2 University of Pennsylvania

Real- Time Virtualiza,on Ø Consolidate 100 ECUs à 10 multicore processors. Ø Integrate multiple systems on a common platform à virtualization. q q q Infotainment on Linux or Android Safety- crihcal control on AUTOSAR Example: COQOS, Integrity MulHvisor, Xen automohve Ø Must preserve real-time performance on a virtualized platform! Source: hqp://www.edn.com/design/automohve/4399434/mulhcore- and- virtualizahon- in- automohve- environments 11/9/14 1

Real- Time Cloud Ø Internet of Things à Cyber-Physical Systems Smart manufacturing, smart transportation, smart grid. Internet-scale sensing and control. Ø Example: Intelligent TransportaHon Data center collects data from cameras and roadside detectors. Control the traffic signals and message signs in real- Hme. TransportaHon informahon feed to drivers. SCATS @ Sydney: controlling 3,400 signals at 1s round- trip latency. 11/9/14 2

Virtualiza,on is not real-,me today Ø Existing hypervisors provide no guarantee on latency Xen: credit scheduler, [credit, cap] VMware ESXi: [reservation, share, limitation] Microsoft Hyper-V: [reserve, weight, limit] Ø Clouds lack service level agreement on latency EC2, Compute Engine, Azure: #VCPUs Current platforms provision resources, not latency! 11/9/14 3

RT- Xen Ø Real-time schedulers in the Xen hypervisor Real-time performance for tasks running in virtual machines (VMs). Real-time performance isolation between VMs. Experimental study of real-time scheduling at the hypervisor level. Ø Build on compositional scheduling theory VMs specify resource interfaces. Real-time guarantees to tasks in VMs. Ø Incorporated in Xen 4.5 as the rtds scheduler. rtds: Real-Time Deferrable Server Release: 10 th December 2014. 11/9/14 4

Xen Virtualiza,on Architecture Ø Ø Ø Ø Xen: type-1, baremetal hypervisor Domain-0: drivers, tool stack to control VMs. Guest Domains running guest OS and applications. Scheduling hierarchy Guest OS schedules tasks on VCPUs. Xen schedules VCPUs on PCPUs. Xen credit scheduler: round-robin with proportional share. Real- Time Task VCPU OS Sched OS Sched OS Sched Xen Scheduler PCPUs 11/9/14 5

Composi,onal Scheduling Ø Analytical real-time guarantees to tasks running in VMs. Ø VM resource interfaces Hides task-specific information Domain: a set of VCPUs each with interface <period, budget> Computed based on compositional scheduling analysis Hypervisor Resource Interface Scheduler Resource Interface Scheduler Workload Resource Interface Scheduler Workload Virtual Machines 11/9/14 6

Real- Time Scheduling Policies Ø Global scheduling Shared global run queue Allow VCPU migration across cores Work conserving utilize any available cores Migration overhead and cache penalty Ø Partitioned scheduling Assign and bind VCPUs to cores Schedule VCPUs on each core independently Cores may idle when others have work pending No migration overhead or cache penalty 11/9/14 7

Scheduling a VCPU as a Server T2 (10, 3) T1 (10, 3) 0 5 10 15 Hme Periodic Server (5,3) Budget 0 5 10 15 not work- conserving Hme Deferrable Server (5,3) Budget 0 5 10 15 back- to- back execuhon Hme 8

Run Queues Ø Global: all cores share one run queue with a spinlock Ø ParHHon: one run queue per core Ø A run queue holds VCPUs that are runnable (not idle) is divided into two parts: with budget; without budget sorts VCPUs by priority (DM or EDF) within each part 11/9/14 9

RT- Xen: Real- Time Scheduling in Xen Ø Single-core RT-Xen 1.0 [EMSOFT 11] Ø Single-core enhanced RT-Xen 1.1 [RTAS 12] Ø Multi-core scheduling RT-Xen 2.0 [EMSOFT 14] Fixed Priority (DM) Capacity Reclaiming Periodic Work Conserving Periodic Polling Deferrable Periodic Periodic Deferrable Sporadic Global Scheduling Deferrable Periodic Periodic Deferrable ParHHoned Scheduling Dynamic Priority (EDF) 11/9/14 10

Experimental Setup Ø Hardware: Intel i7 processor, 6 cores, 3.33 GHz Allocate 1 VCPU for Domain-0, pinned to PCPU 0 All guest domains use the remaining cores Software Xen 4.3 patched with RT-Xen Guest OS: Linux patched with LITMUS Ø Workload Period tasks Allocate tasks à VMs 11/9/14 11

RT- Xen vs. Credit Scheduler Credit misses deadlines at 22% of CPU capacity. RT-Xen delivers real-time performance at 78% of CPU capacity. 11/9/14 12

RT- Xen: Scheduling Overhead rt-global has extra overhead due to global lock. Credit has poor max overhead due to load balancing. 11/9/14 13

RT- Xen: Theory vs. Experiments Fraction of schedulable tasksets 1 0.8 0.6 0.4 0.2 0 gedf (RT Xen) pedf (RT Xen) pedf (CSA Theory) gedf (CSA Theory) 1.1 1.5 1.9 2.3 2.7 3.1 3.5 3.9 4.3 4.7 Task Set Utilization gedf > pedf empirically, thanks to work-conserving global scheduling. gedf < pedf theoretically due to pessimistic analysis. 11/9/14 14

RT- Xen: Deferrable vs. Periodic Server Work-conserving wins empirically! gedf+ds à best real-time performance. This is the rtds scheduler in Xen 4.5. 11/9/14 15

RT- Xen: How about Cache? pedf in guest OS gedf > pedf for cache intensive workload. Benefit of global scheduling outweighs migration cost. Shared cache mitigates cache penalty incurred by migration. 11/9/14 16

Conclusion Ø Diverse applications demand real-time virtualization. Embedded system integration. Internet-scale control systems. Ø RT-Xen supports real-time VMs on multicore processors. Efficient implementation of real-time scheduling policies in hypervisor. Leverage compositional scheduling theory. Ø Insights from experimental study. pedf > gedf in theoretical guarantees, but pedf < gedf empirically. gedf + DS performs best work conserving wins empirically! With shared cache, benefit of global scheduling outweighs cache penalty. 11/9/14 17

Check out RT- Xen RT- Xen hqps://sites.google.com/site/realhmexen/ Incorporated in Xen 4.5 as the rtds scheduler To be released in December 14 th, 2014! git://xenbits.xen.org/xen.git xen/common/sched_rt.c 11/9/14 18