26
Why real-time scheduling theory still matters Sanjoy Baruah The University of North Carolina at Chapel Hill

Why real-time scheduling theory still matters

Embed Size (px)

DESCRIPTION

Why real-time scheduling theory still matters. Sanjoy Baruah The University of North Carolina at Chapel Hill. Our discipline = Systems + Theory. Our discipline. is about systems …that require formal/ theoretical analysis. Has over-emphasized the theory. - PowerPoint PPT Presentation

Citation preview

Page 1: Why real-time scheduling theory still matters

Why real-time scheduling theory still matters

Sanjoy Baruah

The University of North Carolina at Chapel Hill

Page 2: Why real-time scheduling theory still matters

Our discipline

Has over-emphasized the theory

is about systems …that require formal/ theoretical analysis

- A distinguishing characteristic of the discipline

Is starting to remedy this

Our discipline = Systems + Theory

-The “only theory?” test -Hard to get a uniprocessor paper into ECRTS/ RTSS!-Special issues/ invited talks are systems-oriented

Let’s not over-compensate

Page 3: Why real-time scheduling theory still matters

Scheduling theory remains relevant to real-time systems.

Page 4: Why real-time scheduling theory still matters

Scheduling theory remains relevant to real-time systems. Some forms of scheduling theory are particularly important.

Page 5: Why real-time scheduling theory still matters

Scheduling theory remains relevant to real-time systems. Some forms of scheduling theory are particularly important. These important forms can be identified.

Page 6: Why real-time scheduling theory still matters

Scheduling theory remains relevant to real-time systems. Some forms of scheduling theory are particularly important. These important forms can be identified.

Outline of presentation

1. Why theory mattered (and matters)2. What forms of scheduling theory are important3. What specific areas are most important

Thesis

why theory? – what kinds? – which areas?why theory? – what kinds? – which areas?why theory? – what kinds? – which areas?

Page 7: Why real-time scheduling theory still matters

Our discipline = Systems + Theory

The window of scarcity

Real-time systems often have resource constraints

hardware resources

systemspecifications

impossible toimplement

window of scarcity

easy to implement

Why theory?

why theory? – what kinds? – which areas?

Page 8: Why real-time scheduling theory still matters

Why theory?

Our discipline = Systems + Theory

The window of scarcity

Often safety-critical

• Very high cost of error

• Must be validated correct by Certification Authorities

Use theory to prove correctness

why theory? – what kinds? – which areas?

Real-time systems often have resource constraints

Page 9: Why real-time scheduling theory still matters

Why theory?

The window of scarcity

Often safety-critical

why theory? – what kinds? – which areas?

Page 10: Why real-time scheduling theory still matters

What counts as good theory?

Should potentially be useful

The “pure” sciences legitimately take the discovery of facts and laws as an end in itself. A new fact, a new law is an accomplishment, worthy of publication. But in [computer science and engineering] novelty in itself has no merit.. We test our artifacts by their usefulness and their costs, not their novelty.

- Fred Brooks. The computer scientist as toolsmith. (CACM 1996)

2. need not be useful immediately

1. new facts and laws are needed

- but present them elsewhere (e.g., theory conferences)

Caveats

why theory? – what kinds? – which areas?

“Industrially relevant research is … research that is usable when industry decides it is relevant”

-Bjorn Andersson

Page 11: Why real-time scheduling theory still matters

What counts as good theory?

Should potentially be useful

At the appropriate level of abstraction

* Should be applicable to an entire class of systems

- else, just a project report* Therefore, on abstract task/ machine models

- highlights a few salient features or principles

- E.g., for hard-real-time schedulability analysis

* Using the appropriate abstractions

In that empire, the art of cartography attained such perfection that […] the cartographers guilds struck a map of the empire whose size was that of the empire, and which coincided point for point with it.

In the Deserts of the West, still today, there are Tattered Ruins of that Map, inhabited by Animals and Beggars.

-Jorge Luis Borges

In that empire, the art of cartography attained such perfection that […] the cartographers guilds struck a map of the empire whose size was that of the empire, and which coincided point for point with it.

In the deserts of the west, still today, there are tattered ruins of that map, inhabited by animals and beggars.

-Jorge Luis Borges

Obtaining appropriate abstractions is an important research area

* Computationally tractable abstractions

why theory? – what kinds? – which areas?

Page 12: Why real-time scheduling theory still matters

Promising research areas

Multiprocessors

Component-based design

Mixed criticalities

why theory? – what kinds? – which areas?

Page 13: Why real-time scheduling theory still matters

Promising research areas

Multiprocessors

Component-based design

* Future RT systems will be multiprocessor ones -the multicore revolution

* Multiprocessor scheduling theory is not mature enough

* Important questions- models- metrics- scheduling algorithms

Mixed criticalities

Big-picture question: what critical insights are needed for multiproc. scheduling?

why theory? – what kinds? – which areas?

Page 14: Why real-time scheduling theory still matters

Promising research areas

Multiprocessors

Component-based design

Open systems and componentization

- more powerful platforms

- SWaP considerations

- software engineering issues

Some work has been done…but much remains

- abstraction and interface specification- an algebra for composition

Mixed criticalities

why theory? – what kinds? – which areas?

Size, Weight, and Power (i.e., Energy)

Page 15: Why real-time scheduling theory still matters

Promising research areas

Multiprocessors

Component-based design

Mixed criticalities: Promising research areas

Mixed criticalities

why theory? – what kinds? – which areas?

Page 16: Why real-time scheduling theory still matters

Different sub-systems have different certification requirements- Defense avionics example.

Some sub-systems are more important than others - Automotive example: ABS vs car stereo

- flight-critical certification: cycle-counting under pessimistic assumptions- mission-critical validation: extensive experimentation

Example: Determining worst-case execution time (WCET)

Flight critical: certified by Certification Authorities

Mission-critical: validated by design team

and mission-critical functionalitiesFlight-critical

Mixed criticalities: Promising research areas

why theory? – what kinds? – which areas?

Page 17: Why real-time scheduling theory still matters

J1 is flight-critical; J2 is mission-criticalBoth arrive at t=0; have deadlines at t=10 WCET of J1 is 6; WCET of J2 is 5

0 2 4 6 8 10time

6 + 5 > 10 not schedulable

But…- flight-criticality certification does not need J2 to meet its deadline- for mission-critical validation, J1’s WCET of 6 may be too pessimistic

* Suppose J1’s WCET, obtained by extensive experimentation, is 5

Priority-based scheduling: J1 > J2

Mixed criticalities: Promising research areas

why theory? – what kinds? – which areas?

Page 18: Why real-time scheduling theory still matters

0 2 4 6 8 10time

* Suppose J1’s WCET, obtained by extensive experimentation, is 5

Flight-criticality certification

J2 misses deadlineJ1 meets deadline

But…- flight-criticality certification does not need J2 to meet its deadline- for mission-critical validation, J1’s WCET of 6 may be too pessimistic

J1 is flight-critical; J2 is mission-criticalBoth arrive at t=0; have deadlines at t=10 WCET of J1 is 6; WCET of J2 is 5

Priority-based scheduling: J1 > J2

Mixed criticalities: Promising research areas

why theory? – what kinds? – which areas?

Page 19: Why real-time scheduling theory still matters

0 2 4 6 8 10time

But…- flight-criticality certification does not need J2 to meet its deadline- for mission-critical validation, J1’s WCET of 6 may be too pessimistic

* Suppose J1’s WCET, obtained by extensive experimentation, is 5

Mission-critical validation

J1 meets deadline

J2 meets deadline

J1 is flight-critical; J2 is mission-criticalBoth arrive at t=0; have deadlines at t=10 WCET of J1 is 6; WCET of J2 is 5

Validated at both criticalities

Priority-based scheduling: J1 > J2

Mixed criticalities: Promising research areas

why theory? – what kinds? – which areas?

Page 20: Why real-time scheduling theory still matters

Validated at both criticalitiesJ1 is flight-critical; J2 is mission-criticalBoth arrive at t=0; have deadlines at t=10 WCET of J1 is 6; WCET of J2 is 5

The same system is being validated, twice

Flight-critical certification Mission-critical validation

of only a subset of the system

at a very high level of assurance

of the entire system

at a lower level of assurance

Mixed criticalities: Promising research areas

Interesting open issues:- How do we represent MC systems?- How do we reason about them?

- “parallel worlds”? space-time partitioning?- What scheduling strategies are suitable?

why theory? – what kinds? – which areas?

Page 21: Why real-time scheduling theory still matters

Summary

Scheduling theory remains relevant to real-time systems.

A thesis…

…and its justification

• The window of scarcity; safety-critical nature of applications

Page 22: Why real-time scheduling theory still matters

Summary

Scheduling theory remains relevant to real-time systems. Some forms of scheduling theory are particularly important.

A thesis…

…and its justification

• The window of scarcity; safety-critical nature of applications

• Must be relevant; must be at appropriate level of abstraction

Page 23: Why real-time scheduling theory still matters

Scheduling theory remains relevant to real-time systems. Some forms of scheduling theory are particularly important. These important forms can be identified.

Summary

A thesis…

…and its justification

• The window of scarcity; safety-critical nature of applications

• Must be relevant; must be at appropriate level of abstraction

• Multiprocessors; component-based design; and mixed

criticalities

Page 24: Why real-time scheduling theory still matters

SCHEDULING THEORY

REAL-TIME SYSTEMS

Page 25: Why real-time scheduling theory still matters

Scheduling theory remains relevant to real-time systems. Some forms of scheduling theory are particularly important. These important forms can be identified.

Summary

A thesis…

…and its justification

• The window of scarcity; safety-critical nature of applications

• Must be relevant; must be at appropriate level of abstraction

• Multiprocessors; component-based design; and mixed

criticalities

Page 26: Why real-time scheduling theory still matters