Xen Project Schedulers: Difference between revisions

From Xen
Jump to navigationJump to search
(Updated the table)
(Update to take 4.8 and 4.9)
Line 37: Line 37:
[[ARINC653 Scheduler|ARINC653]] is an embedded (automotive and avionics) real-time scheduler.
[[ARINC653 Scheduler|ARINC653]] is an embedded (automotive and avionics) real-time scheduler.


= Use cases and Support in Xen 4.8 =
= Use cases and Support Status =

''Legend:''
* {{Tick}} likely in 4.8
* {{HalfDone}} possible in 4.8
<br>


{|class="prettytable" style="text-align: left;" valign="top"
{|class="prettytable" style="text-align: left;" valign="top"
Line 48: Line 43:
!style="width: 30%;"|Use-cases
!style="width: 30%;"|Use-cases
!style="width: 15%;"|Xen 4.7
!style="width: 15%;"|Xen 4.7
!style="width: 30%;"|Plans for 4.8+
!style="width: 30%;"|Xen 4.8
!style="width: 15%;"|Xen 4.9
|-
|-
|[[Credit_Scheduler|Credit]]
|[[Credit_Scheduler|Credit]]
|General Purpose
|General Purpose
|Supported<br>'''Default'''
|Supported<br>'''Default'''
|{{Tick}}Supported<br>{{Tick}} '''Default'''
|{{Tick}}Supported<br>{{Tick}} '''Default'''
|{{Tick}}Supported<br>{{Tick}} '''Default'''
|-
|-
Line 59: Line 56:
Optimized for low latency, scalability, high VM density
Optimized for low latency, scalability, high VM density
|Experimental
|Experimental
|{{HalfDone}} Supported
|{{Tick}} Supported
|No change
|-
|-
|[[RTDS-Based-Scheduler|RTDS]]
|[[RTDS-Based-Scheduler|RTDS]]
Line 65: Line 63:
|Experimental
|Experimental
|{{Tick}} Improved xl support<br>{{Tick}} Experimental
|{{Tick}} Improved xl support<br>{{Tick}} Experimental
|No change
|-
|-
|[[ARINC653_Scheduler|ARINC 653]]
|[[ARINC653_Scheduler|ARINC 653]]
|Hard Real-time <br>Avionics, Drones, Medical
|Hard Real-time <br>Avionics, Drones, Medical
|[http://lists.xenproject.org/archives/html/xen-devel/2015-06/msg00972.html Supported?]
|[http://lists.xenproject.org/archives/html/xen-devel/2015-06/msg00972.html Supported?]
|{{Tick}} No change
|No change
|No change
|}
|}



Revision as of 08:38, 12 July 2017

Overview

The Xen Project Hypervisor supports several different virtual CPU schedulers, with different properties.

The job of an hypervisor's scheduler is to decide, among all the various vCPUs of the various virtual machines, which ones should execute on the host's physical CPUs (pCPUs), at any given point in time.

Each schedulers can be assigned to

  • the entire host,
  • a cpupool (i.e., basically, a group of physical CPUs)
Sched2.jpg

More than one cpupool can be created, and each pool will have its own scheduler. IT is possible to use the same scheduler for more than one pool, but that means different instances of the same scheduling algorithm (and code) will be used in each pool.

Two kind of interactions with a scheduler are possible:

  • checking or changing its global parameters,
  • checking or changing a VM's scheduling parameters.
Sched3.jpg

Currently Available Schedulers

The Credit Scheduler

Credit is a general purpose, weighted fair share scheduler, and is the current default.

The Credit2 Scheduler

Credit2 is the evolution of Credit, more scalable and better with latency sensitive workload, while still being based on a general purpose, weighted fair share, scheduling algorithm.

The RTDS Scheduler

RTDS is a real-time scheduler, meant at supporting real-time workloads in the cloud, as well as embedded and mobile virtualization use cases.

The ARINC653 Scheduler

ARINC653 is an embedded (automotive and avionics) real-time scheduler.

Use cases and Support Status

Scheduler Use-cases Xen 4.7 Xen 4.8 Xen 4.9
Credit General Purpose Supported
Default
Supported
Default
Supported
Default
Credit2 General Purpose

Optimized for low latency, scalability, high VM density

Experimental Supported No change
RTDS Soft & Firm Real-time
Embedded, mobile & automotive
Graphics & Gaming in the Cloud
Experimental Improved xl support
Experimental
No change
ARINC 653 Hard Real-time
Avionics, Drones, Medical
Supported? No change No change

Historical Xen Schedulers

simple Earliest Deadline First (sEDF)

Quoting from sEDF (not any longer) in-tree documentation, "this scheduler provides weighted CPU sharing in an intuitive way and uses real-time algorithms to ensure time guarantees."

The real-time algorithm used was Earliest Deadline First (EDF), although it was modified for being used as a general purpose scheduler too. It could work in both work conserving and non-work conserving modes.

It was introduced in Xen 3.0, and was the default for a while. The scheduler was never properly adapted for dealing with SMP systems and multi vCPUs VMs. Both were working, but behavior and performance were unideal and unreliable. It was eventually removed from Xen 4.6.

Borrowed Virtual Time (BVT)

A virtual time based fair-share, general purpose, scheduler in use in Xen 2.0 and 3.0. Domains's shares of CPU time were determined by their weights. What it is traditionally called quantum, or timeslice, was known there as **context switch allowance**, and was configurable. It was SMP enabled, but lacked a non-work conserving mode.

Atropos

A soft real-time scheduler, capable of providing guarantees on the absolute shares of CPU time, and allowing using the slack on a best-effort basis. Of course (as it's always the case in RT schedulers) CPU slices were only really guaranteed in absence of CPU over-commitment.

It was in use in Xen 2.0.

Round Robin

It was... well... Round Robin! IT was there as a simple demonstration of Xen's internal scheduler API, not for real production use.

Also See