SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Downloaden Sie, um offline zu lesen
VHPC 2010
              August 31st, Ischia, Italy

Providing Performance Guarantees to
  Virtual Machines using Real-Time
             Scheduling


            Tommaso Cucinotta, Dhaval Giani,
              Dario Faggioli, Fabio Checconi

               Real-Time Systems Laboratory
                Scuola Superiore Sant'Anna
                        Pisa, Italy




Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   1/24
Introduction and Motivations




Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   2/24
Introduction

“Traditional” worlds of computing
   General-Purpose Computing (GPC) and servers
       Low-cost, low parallelism degree equipment
       Focused on mixing batch and interactive workloads
   High-Performance Computing (HPC)
       High-cost, massively parallel and vector-based equipment
       Focused on batch computing, tightly coupled parallel tasks,
        scientific applications
New trends
 Affordable many-core systems also for GPC
 Cloud-Computing: world-level scalability and replicability
       Use of high-performance hardware in CC applications
       Interest in mixing interactive/real-time and HPC workloads
         Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   3/24
Introduction

Virtualization is a key technology
 For IaaS providers (Cloud Computing)
 For server consolidation




    Physical Host
    Physical Host
           OS
           OS
           ...

    Physical Host
    Physical Host
           OS
           OS
     Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   4/24
Introduction

Virtualization is a key technology
 For IaaS providers (Cloud Computing)
 For server consolidation




    Physical Host
    Physical Host                                   Physical Host
                                                    Physical Host
           OS
           OS                                              VM/OS
                                                           VM/OS
           ...                                            ...

    Physical Host                                          VM/OS
                                                           VM/OS
    Physical Host
           OS
           OS
     Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   5/24
Need for Performance Isolation

Resource sharing
 → Temporal interference

        Physical Host
        Physical Host
         VM
         VM

         VM
         VM

         VM
         VM

         VM
         VM

    Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   6/24
Need for Performance Isolation
                                                   ~30ms
Resource sharing                                              VM Alone

 → Temporal interference

        Physical Host
        Physical Host
         VM
         VM

         VM
         VM

         VM
         VM

         VM
         VM

    Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   7/24
Need for Performance Isolation
                                                   ~30ms
Resource sharing                                              VM Alone

 → Temporal interference

        Physical Host
        Physical Host
         VM
         VM

         VM
         VM
                                                                   ~120ms
                                                                2 VMs

         VM
         VM

         VM
         VM

    Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   8/24
Possible Solution

Hardware replication and                                     Physical Host
                                                             Physical Host
static partitioning                                           VM
                                                              VM
   Computing
       Multi-core (1 core per VM)
                                                              VM
                                                              VM
   Networking
       Multiple network adapters
        (1 network adapter per VM)                            VM
                                                              VM
       Multi-queue adapters
Drawbacks                                                     VM
                                                              VM
 Limitation of flexibility
 Under-utilization of resources
       e.g., with real-time/interactive workloads
        (cloud computing)
         Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   9/24
Possible Solution

Another approach
 Let multiple VMs use the same resources
 Use proper resource scheduling strategies
For example
   Computing
       Xen credit-based and SEDF schedulers
   Networking
       QoS-aware protocols (IntServ, MPLS)




        Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   10/24
What is still missing ?

Most approaches
   Investigate on high-level load balancing techniques
       Without the necessary care for fine-grain resource scheduling
   Focus on fairness among multiple VMs
Only a few works
 Focus on providing precise QoS guarantees to VMs
 For example
       Gupta et al., “[...] Performance Isolation […] in Xen”
       Cherkasova et al., “Comparison of the 3 CPU Schedulers in Xen”
Our focus
 Network performance isolation among concurrent VMs
 Virtualization with a host OS
       Specifically, on Linux as host OS with KVM
         Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   11/24
Proposed Approach




Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   12/24
Proposed Approach

Use of real-time CPU scheduling
   As basic mechanism for isolating VMs concurrently
    running on the same CPU and core
IRMOS Real-Time Scheduler
 For the Linux kernel
 Provides hierarchical EDF/FP scheduling
       EDF-based resource reservations
        – (Q, P): a budget Q is granted every period P
        – Both a guarantee and a limitation
       FP scheduling within each EDF reservation
   Provides temporal isolation


         Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   13/24
What can we achieve ?
                    (by CPU real-time scheduling)

CPU real-time scheduling achieves
   Performance isolation of
    compute-intensive VMs
       Shown in other papers
   What about network-intensive VMs ?
Problems
   On the host OS (Linux)
       network-intensive VMs impose a big interrupt workload
        – difficult to quantify and keep under control
        – steals CPU from reservations of other VMs
   How can we fix this ?


         Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   14/24
Preliminary Solution

Preliminary solution (subject of this paper)
   Temporal isolation of VMs by real-time scheduling
       Scheduling parameters tuned according to benchmarked figures
        – Reservation period set according to responsiveness requirements
        – Budget needed for computations, plus
        – Budget needed for sustaining network traffic
   Budget over-provisioning
       According to the foreseen interference due to
        network-intensive VMs




         Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   15/24
Experimental Results




Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   16/24
Experimental Results
                 (Q6600 @ 2.4 GHz, 1-Gbit Card)

Achievable network throughput as a function of
the CPU share reserved to the VM
   Measured via iperf: almost linear, as expected




       Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   17/24
Experimental Results
                      (2 VMs on the same core)

Throughput as a function of its own budget
   13% drop when
       own reservation is 35% (from ~300 Mbps to ~260 Mbps)
       and reservation of other VM increased from 10% to 40%




        Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   18/24
Experimental Results
                      (2 VMs on the same core)

Throughput as a function of its own budget
   ~14% budget over-provisioning needed
       for sustaining a ~300 Mbps throughput
       when reservation of other VM increased from 10% to 40%




        Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   19/24
Experimental Results
                     (2 VMs on the same core)

Throughput as a function of the budget reserved
to the other interfering VM
   Drop due to compute-intensive interfering VM lower than
    the one due to network-intensive interfering VM




       Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   20/24
Experimental Results
                (application-level benchmark)

Download time for a 100 KB file from Apache
 Periodic download requests every 20ms
 Response-times may be kept much more stable
  by real-time scheduling




     Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   21/24
Conclusions and Future Work




Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   22/24
Conclusions and Future Work

Conclusions
 We showed how to achieve network
  performance isolation by CPU
  real-time scheduling
 Technique to be used jointly with
  traffic-shaping techniques
Planned Future Work
   Experiment with PREEMPT_RT
       IRQs handled in kernel threads
 Investigate on task-level isolation of network traffic of
  different VMs (via real-time scheduling)
 Make KVM a QoS-aware hypervisor
 Investigate on the use of Adaptive Reservations
        Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   23/24
Thanks for your attention!
                        Questions ?




Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy   24/24

Weitere ähnliche Inhalte

Andere mochten auch

Watering down a colossal crisis
Watering down a colossal crisisWatering down a colossal crisis
Watering down a colossal crisisguest5b5af7
 
The Wizard of OS: a Heartbeat for Legacy Multimedia Applications
The Wizard of OS: a Heartbeat for Legacy Multimedia ApplicationsThe Wizard of OS: a Heartbeat for Legacy Multimedia Applications
The Wizard of OS: a Heartbeat for Legacy Multimedia Applicationstcucinotta
 
Research in Soft Real-Time and Virtualized Applications on Linux
Research in Soft Real-Time and Virtualized Applications on LinuxResearch in Soft Real-Time and Virtualized Applications on Linux
Research in Soft Real-Time and Virtualized Applications on Linuxtcucinotta
 
Virtualised e-Learning with Real-Time Guarantees on the IRMOS Platform
Virtualised e-Learning with Real-Time Guarantees on the IRMOS PlatformVirtualised e-Learning with Real-Time Guarantees on the IRMOS Platform
Virtualised e-Learning with Real-Time Guarantees on the IRMOS Platformtcucinotta
 
Aflac Power Point Presentation
Aflac Power Point PresentationAflac Power Point Presentation
Aflac Power Point Presentationwyakin
 
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsStudy: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsLinkedIn
 

Andere mochten auch (6)

Watering down a colossal crisis
Watering down a colossal crisisWatering down a colossal crisis
Watering down a colossal crisis
 
The Wizard of OS: a Heartbeat for Legacy Multimedia Applications
The Wizard of OS: a Heartbeat for Legacy Multimedia ApplicationsThe Wizard of OS: a Heartbeat for Legacy Multimedia Applications
The Wizard of OS: a Heartbeat for Legacy Multimedia Applications
 
Research in Soft Real-Time and Virtualized Applications on Linux
Research in Soft Real-Time and Virtualized Applications on LinuxResearch in Soft Real-Time and Virtualized Applications on Linux
Research in Soft Real-Time and Virtualized Applications on Linux
 
Virtualised e-Learning with Real-Time Guarantees on the IRMOS Platform
Virtualised e-Learning with Real-Time Guarantees on the IRMOS PlatformVirtualised e-Learning with Real-Time Guarantees on the IRMOS Platform
Virtualised e-Learning with Real-Time Guarantees on the IRMOS Platform
 
Aflac Power Point Presentation
Aflac Power Point PresentationAflac Power Point Presentation
Aflac Power Point Presentation
 
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsStudy: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving Cars
 

Ähnlich wie Providing Performance Guarantees to Virtual Machines using Real-Time Scheduling

Self-tuning Schedulers for Legacy Real-Time Applications
Self-tuning Schedulers for Legacy Real-Time ApplicationsSelf-tuning Schedulers for Legacy Real-Time Applications
Self-tuning Schedulers for Legacy Real-Time Applicationstcucinotta
 
Virtual Network Functions as Real-Time Containers in Private Clouds
Virtual Network Functions as Real-Time Containers in Private CloudsVirtual Network Functions as Real-Time Containers in Private Clouds
Virtual Network Functions as Real-Time Containers in Private Cloudstcucinotta
 
The IRMOS Real-Time Scheduler
The IRMOS Real-Time SchedulerThe IRMOS Real-Time Scheduler
The IRMOS Real-Time Schedulertcucinotta
 
Self-tuning Schedulers for Legacy Real-Time Applications
Self-tuning Schedulers for Legacy Real-Time ApplicationsSelf-tuning Schedulers for Legacy Real-Time Applications
Self-tuning Schedulers for Legacy Real-Time Applicationsguestbbe1c83
 
SLAs in Virtualized Cloud Computing Infrastructures with QoS Assurance
SLAs in Virtualized Cloud Computing Infrastructures with QoS AssuranceSLAs in Virtualized Cloud Computing Infrastructures with QoS Assurance
SLAs in Virtualized Cloud Computing Infrastructures with QoS Assurancetcucinotta
 
Modeling and simulation of power consumption and execution times for real-tim...
Modeling and simulation of power consumption and execution times for real-tim...Modeling and simulation of power consumption and execution times for real-tim...
Modeling and simulation of power consumption and execution times for real-tim...tcucinotta
 
Mpls conference 2016-data center virtualisation-11-march
Mpls conference 2016-data center virtualisation-11-marchMpls conference 2016-data center virtualisation-11-march
Mpls conference 2016-data center virtualisation-11-marchAricent
 
A checkpointing mechanism for virtual clusters using memory- bound time-multi...
A checkpointing mechanism for virtual clusters using memory- bound time-multi...A checkpointing mechanism for virtual clusters using memory- bound time-multi...
A checkpointing mechanism for virtual clusters using memory- bound time-multi...IJECEIAES
 
ICALEPCS 2011: Testing Environments using Virtualization
ICALEPCS 2011: Testing Environments using VirtualizationICALEPCS 2011: Testing Environments using Virtualization
ICALEPCS 2011: Testing Environments using VirtualizationOmer Khalid
 
Optimum Scalability Point for Parallelisable Real-Time Components
Optimum Scalability Point for Parallelisable Real-Time ComponentsOptimum Scalability Point for Parallelisable Real-Time Components
Optimum Scalability Point for Parallelisable Real-Time Componentstcucinotta
 
Comparison of Open Source Virtualization Technology
Comparison of Open Source Virtualization TechnologyComparison of Open Source Virtualization Technology
Comparison of Open Source Virtualization TechnologyBenoit des Ligneris
 
Tommaso Cucinotta - Low-latency and power-efficient audio applications on Linux
Tommaso Cucinotta - Low-latency and power-efficient audio applications on LinuxTommaso Cucinotta - Low-latency and power-efficient audio applications on Linux
Tommaso Cucinotta - Low-latency and power-efficient audio applications on Linuxlinuxlab_conf
 
An Evaluation of Adaptive Partitioning of Real-Time Workloads on Linux
An Evaluation of Adaptive Partitioning of Real-Time Workloads on LinuxAn Evaluation of Adaptive Partitioning of Real-Time Workloads on Linux
An Evaluation of Adaptive Partitioning of Real-Time Workloads on Linuxtcucinotta
 
A Casual Teaching Tool for Large Size Computer Laboratories ans Small Size Se...
A Casual Teaching Tool for Large Size Computer Laboratories ans Small Size Se...A Casual Teaching Tool for Large Size Computer Laboratories ans Small Size Se...
A Casual Teaching Tool for Large Size Computer Laboratories ans Small Size Se...Takashi Yamanoue
 
High Performance Parallel Computing with Clouds and Cloud Technologies
High Performance Parallel Computing with Clouds and Cloud TechnologiesHigh Performance Parallel Computing with Clouds and Cloud Technologies
High Performance Parallel Computing with Clouds and Cloud Technologiesjaliyae
 
Embedded Intro India05
Embedded Intro India05Embedded Intro India05
Embedded Intro India05Rajesh Gupta
 
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...The Linux Foundation
 
Why AIOps Matters For Kubernetes
Why AIOps Matters For KubernetesWhy AIOps Matters For Kubernetes
Why AIOps Matters For KubernetesTimothy Chen
 
How Adobe Built An OpenStack Cloud
How Adobe Built An OpenStack CloudHow Adobe Built An OpenStack Cloud
How Adobe Built An OpenStack CloudJun Park
 

Ähnlich wie Providing Performance Guarantees to Virtual Machines using Real-Time Scheduling (20)

Self-tuning Schedulers for Legacy Real-Time Applications
Self-tuning Schedulers for Legacy Real-Time ApplicationsSelf-tuning Schedulers for Legacy Real-Time Applications
Self-tuning Schedulers for Legacy Real-Time Applications
 
Virtual Network Functions as Real-Time Containers in Private Clouds
Virtual Network Functions as Real-Time Containers in Private CloudsVirtual Network Functions as Real-Time Containers in Private Clouds
Virtual Network Functions as Real-Time Containers in Private Clouds
 
The IRMOS Real-Time Scheduler
The IRMOS Real-Time SchedulerThe IRMOS Real-Time Scheduler
The IRMOS Real-Time Scheduler
 
Self-tuning Schedulers for Legacy Real-Time Applications
Self-tuning Schedulers for Legacy Real-Time ApplicationsSelf-tuning Schedulers for Legacy Real-Time Applications
Self-tuning Schedulers for Legacy Real-Time Applications
 
SLAs in Virtualized Cloud Computing Infrastructures with QoS Assurance
SLAs in Virtualized Cloud Computing Infrastructures with QoS AssuranceSLAs in Virtualized Cloud Computing Infrastructures with QoS Assurance
SLAs in Virtualized Cloud Computing Infrastructures with QoS Assurance
 
Real-Time API
Real-Time APIReal-Time API
Real-Time API
 
Modeling and simulation of power consumption and execution times for real-tim...
Modeling and simulation of power consumption and execution times for real-tim...Modeling and simulation of power consumption and execution times for real-tim...
Modeling and simulation of power consumption and execution times for real-tim...
 
Mpls conference 2016-data center virtualisation-11-march
Mpls conference 2016-data center virtualisation-11-marchMpls conference 2016-data center virtualisation-11-march
Mpls conference 2016-data center virtualisation-11-march
 
A checkpointing mechanism for virtual clusters using memory- bound time-multi...
A checkpointing mechanism for virtual clusters using memory- bound time-multi...A checkpointing mechanism for virtual clusters using memory- bound time-multi...
A checkpointing mechanism for virtual clusters using memory- bound time-multi...
 
ICALEPCS 2011: Testing Environments using Virtualization
ICALEPCS 2011: Testing Environments using VirtualizationICALEPCS 2011: Testing Environments using Virtualization
ICALEPCS 2011: Testing Environments using Virtualization
 
Optimum Scalability Point for Parallelisable Real-Time Components
Optimum Scalability Point for Parallelisable Real-Time ComponentsOptimum Scalability Point for Parallelisable Real-Time Components
Optimum Scalability Point for Parallelisable Real-Time Components
 
Comparison of Open Source Virtualization Technology
Comparison of Open Source Virtualization TechnologyComparison of Open Source Virtualization Technology
Comparison of Open Source Virtualization Technology
 
Tommaso Cucinotta - Low-latency and power-efficient audio applications on Linux
Tommaso Cucinotta - Low-latency and power-efficient audio applications on LinuxTommaso Cucinotta - Low-latency and power-efficient audio applications on Linux
Tommaso Cucinotta - Low-latency and power-efficient audio applications on Linux
 
An Evaluation of Adaptive Partitioning of Real-Time Workloads on Linux
An Evaluation of Adaptive Partitioning of Real-Time Workloads on LinuxAn Evaluation of Adaptive Partitioning of Real-Time Workloads on Linux
An Evaluation of Adaptive Partitioning of Real-Time Workloads on Linux
 
A Casual Teaching Tool for Large Size Computer Laboratories ans Small Size Se...
A Casual Teaching Tool for Large Size Computer Laboratories ans Small Size Se...A Casual Teaching Tool for Large Size Computer Laboratories ans Small Size Se...
A Casual Teaching Tool for Large Size Computer Laboratories ans Small Size Se...
 
High Performance Parallel Computing with Clouds and Cloud Technologies
High Performance Parallel Computing with Clouds and Cloud TechnologiesHigh Performance Parallel Computing with Clouds and Cloud Technologies
High Performance Parallel Computing with Clouds and Cloud Technologies
 
Embedded Intro India05
Embedded Intro India05Embedded Intro India05
Embedded Intro India05
 
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...
 
Why AIOps Matters For Kubernetes
Why AIOps Matters For KubernetesWhy AIOps Matters For Kubernetes
Why AIOps Matters For Kubernetes
 
How Adobe Built An OpenStack Cloud
How Adobe Built An OpenStack CloudHow Adobe Built An OpenStack Cloud
How Adobe Built An OpenStack Cloud
 

Kürzlich hochgeladen

AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)Samir Dash
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard37
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMKumar Satyam
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 

Kürzlich hochgeladen (20)

AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

Providing Performance Guarantees to Virtual Machines using Real-Time Scheduling

  • 1. VHPC 2010 August 31st, Ischia, Italy Providing Performance Guarantees to Virtual Machines using Real-Time Scheduling Tommaso Cucinotta, Dhaval Giani, Dario Faggioli, Fabio Checconi Real-Time Systems Laboratory Scuola Superiore Sant'Anna Pisa, Italy Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 1/24
  • 2. Introduction and Motivations Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 2/24
  • 3. Introduction “Traditional” worlds of computing  General-Purpose Computing (GPC) and servers  Low-cost, low parallelism degree equipment  Focused on mixing batch and interactive workloads  High-Performance Computing (HPC)  High-cost, massively parallel and vector-based equipment  Focused on batch computing, tightly coupled parallel tasks, scientific applications New trends  Affordable many-core systems also for GPC  Cloud-Computing: world-level scalability and replicability  Use of high-performance hardware in CC applications  Interest in mixing interactive/real-time and HPC workloads Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 3/24
  • 4. Introduction Virtualization is a key technology  For IaaS providers (Cloud Computing)  For server consolidation Physical Host Physical Host OS OS ... Physical Host Physical Host OS OS Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 4/24
  • 5. Introduction Virtualization is a key technology  For IaaS providers (Cloud Computing)  For server consolidation Physical Host Physical Host Physical Host Physical Host OS OS VM/OS VM/OS ... ... Physical Host VM/OS VM/OS Physical Host OS OS Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 5/24
  • 6. Need for Performance Isolation Resource sharing → Temporal interference Physical Host Physical Host VM VM VM VM VM VM VM VM Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 6/24
  • 7. Need for Performance Isolation ~30ms Resource sharing VM Alone → Temporal interference Physical Host Physical Host VM VM VM VM VM VM VM VM Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 7/24
  • 8. Need for Performance Isolation ~30ms Resource sharing VM Alone → Temporal interference Physical Host Physical Host VM VM VM VM ~120ms 2 VMs VM VM VM VM Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 8/24
  • 9. Possible Solution Hardware replication and Physical Host Physical Host static partitioning VM VM  Computing  Multi-core (1 core per VM) VM VM  Networking  Multiple network adapters (1 network adapter per VM) VM VM  Multi-queue adapters Drawbacks VM VM  Limitation of flexibility  Under-utilization of resources  e.g., with real-time/interactive workloads (cloud computing) Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 9/24
  • 10. Possible Solution Another approach  Let multiple VMs use the same resources  Use proper resource scheduling strategies For example  Computing  Xen credit-based and SEDF schedulers  Networking  QoS-aware protocols (IntServ, MPLS) Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 10/24
  • 11. What is still missing ? Most approaches  Investigate on high-level load balancing techniques  Without the necessary care for fine-grain resource scheduling  Focus on fairness among multiple VMs Only a few works  Focus on providing precise QoS guarantees to VMs  For example  Gupta et al., “[...] Performance Isolation […] in Xen”  Cherkasova et al., “Comparison of the 3 CPU Schedulers in Xen” Our focus  Network performance isolation among concurrent VMs  Virtualization with a host OS  Specifically, on Linux as host OS with KVM Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 11/24
  • 12. Proposed Approach Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 12/24
  • 13. Proposed Approach Use of real-time CPU scheduling  As basic mechanism for isolating VMs concurrently running on the same CPU and core IRMOS Real-Time Scheduler  For the Linux kernel  Provides hierarchical EDF/FP scheduling  EDF-based resource reservations – (Q, P): a budget Q is granted every period P – Both a guarantee and a limitation  FP scheduling within each EDF reservation  Provides temporal isolation Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 13/24
  • 14. What can we achieve ? (by CPU real-time scheduling) CPU real-time scheduling achieves  Performance isolation of compute-intensive VMs  Shown in other papers  What about network-intensive VMs ? Problems  On the host OS (Linux)  network-intensive VMs impose a big interrupt workload – difficult to quantify and keep under control – steals CPU from reservations of other VMs  How can we fix this ? Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 14/24
  • 15. Preliminary Solution Preliminary solution (subject of this paper)  Temporal isolation of VMs by real-time scheduling  Scheduling parameters tuned according to benchmarked figures – Reservation period set according to responsiveness requirements – Budget needed for computations, plus – Budget needed for sustaining network traffic  Budget over-provisioning  According to the foreseen interference due to network-intensive VMs Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 15/24
  • 16. Experimental Results Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 16/24
  • 17. Experimental Results (Q6600 @ 2.4 GHz, 1-Gbit Card) Achievable network throughput as a function of the CPU share reserved to the VM  Measured via iperf: almost linear, as expected Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 17/24
  • 18. Experimental Results (2 VMs on the same core) Throughput as a function of its own budget  13% drop when  own reservation is 35% (from ~300 Mbps to ~260 Mbps)  and reservation of other VM increased from 10% to 40% Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 18/24
  • 19. Experimental Results (2 VMs on the same core) Throughput as a function of its own budget  ~14% budget over-provisioning needed  for sustaining a ~300 Mbps throughput  when reservation of other VM increased from 10% to 40% Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 19/24
  • 20. Experimental Results (2 VMs on the same core) Throughput as a function of the budget reserved to the other interfering VM  Drop due to compute-intensive interfering VM lower than the one due to network-intensive interfering VM Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 20/24
  • 21. Experimental Results (application-level benchmark) Download time for a 100 KB file from Apache  Periodic download requests every 20ms  Response-times may be kept much more stable by real-time scheduling Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 21/24
  • 22. Conclusions and Future Work Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 22/24
  • 23. Conclusions and Future Work Conclusions  We showed how to achieve network performance isolation by CPU real-time scheduling  Technique to be used jointly with traffic-shaping techniques Planned Future Work  Experiment with PREEMPT_RT  IRQs handled in kernel threads  Investigate on task-level isolation of network traffic of different VMs (via real-time scheduling)  Make KVM a QoS-aware hypervisor  Investigate on the use of Adaptive Reservations Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 23/24
  • 24. Thanks for your attention! Questions ? Tommaso Cucinotta – ReTiS Lab – Scuola Superiore Sant'Anna – Pisa – Italy 24/24