Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc.

12
© 2002 Mercury Computer Systems, Inc What’s Keeping Hard Real-Time Scheduling from Being a Mainstream Technology in the Embedded Multiprocessing Domain Space Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc. HPEC - September 2002

description

Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc. What’s Keeping Hard Real-Time Scheduling from Being a Mainstream Technology in the Embedded Multiprocessing Domain Space. HPEC - September 2002. Assumption Model. - PowerPoint PPT Presentation

Transcript of Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc.

Page 1: Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc.

© 2002 Mercury Computer Systems, Inc.

What’s Keeping HardReal-Time Scheduling from

Being a Mainstream Technology in the Embedded

Multiprocessing Domain Space

Daniel M. Lorts

University of Texas – Dallas and Mercury Computer Systems, Inc.

HPEC - September 2002

Page 2: Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc.

2© 2002 Mercury Computer Systems, Inc.

Assumption ModelAssumption Model

To make the scheduling problem simpler, various assumptions, or boundary conditions, in one or more of the models are typically made.

Why? No-hard/complete problem Single semester projects Limited tenureship of research Focused interest/purpose

The choices and assumptions made in the development of real-time systems affect many areas.

In this research, we look at six individual, but closely related components of a system architecture.

Technology Model

System ModelCommunication

Model

Fault Model

Scheduling Model

Application Model

Page 3: Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc.

3© 2002 Mercury Computer Systems, Inc.

System & Communication (current)System & Communication (current)

System model assumptions Heterogeneous processing assets High-level processing capabilities Fictitious architectures and topologies Assets fully connected

Communication model assumptions Negligible communication costs Uniform communication costs Non-contentious communications No priority discernment

Interconnection Network

Memory

CPUCache

Memory

CPUCache

Memory

CPUCache

Page 4: Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc.

4© 2002 Mercury Computer Systems, Inc.

Multi-Level System GraphMulti-Level System Graph

S = (R, L) top level system definition

R = (r1, r2 ,..., rN) N resources of system

L = {l<ŕ,c> | ŕ R c > 0 Adj(ŕ ) = 1}• l represents a link connecting two resources• ŕ is a subset of the resources of system (R)• c represents the number of links between the resources• Adj() is a binary function testing for presence of links

Advantages of the MGS: Multi-path capability between resources Total # of communication links bounded by I/O ports Ability to model all multiprocessing topologies Scalable to account for resources that have multiple functional units

r1={c1, c2,…, cM}

where cj is a unique capability of resource r

Page 5: Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc.

5© 2002 Mercury Computer Systems, Inc.

An MSG ExampleAn MSG Example

R1 R2

R3 R4

S=(R,L) whereR={R1,R2,R3,R4}

and L={l<ŕ1,c1>, l< ŕ2,c2>, l< ŕ3,c3>, l< ŕ4,c4>}

with ŕ1 = {R1} and c1=1 ŕ2 = {R1,R2} and c2=1 ŕ3 = {R2,R4} and c3=2 ŕ4 = {R2,R3,R4} and c4=1

R1

R2

R3

R4

R1 R2 R3 R4

l(1,1)

l(1,1)l(4,1)

l(2,1) l(2,1)

l(2,1)

l(2,1)

l(2,1)

l(2,1)

l(3,2)

l(3,2)

Alternate Representation

The system model can also be defined mathematically within a table. Each cell represents the paths that exist between each resource : l<id,count>.

4

1

2 3

Page 6: Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc.

6© 2002 Mercury Computer Systems, Inc.

Scheduling ModelScheduling Model

Dynamic scheduling Transfer policy Selection policy Location policy Information policy

Heuristics include: Heavy Node First (HNF) Critical Path Method (CPM) Weighted Length (WL) Earliest Deadline First (EDF) Least Laxity First (LLF)

Scheduling

Local Global

Static

Sub-optimalOptimal

HeuristicApproximate Cooperative

Sub-optimalOptimal

HeuristicApproximate

Non-cooperative

Physically distributed

Dynamic

Physically centralized

Page 7: Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc.

7© 2002 Mercury Computer Systems, Inc.

Dynamic FrameworkDynamic Framework

Allocation stage: statically assigning processes to resources Scheduling stage: dynamically based on allocation and application Provides run-time analysis of loading and balance Scalable solution for all multiprocessing system applications Possible multicomputer processor configurations

Round-robin/next available Single parallel cluster Pipeline of parallel clusters Hybrid

Interconnect Network

p0

p4p4

p1

p2p0p5

p3

p3

p5p6

p5p1

Page 8: Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc.

8© 2002 Mercury Computer Systems, Inc.

Application ModelApplication Model Non-realistic program models (DAGs) Task model limited

Uniform temporal metrics Preemptability Entry points into nodes Typically unary dependencies Limited methods of prioritization Acyclic models limited

W X Y

* +

/

Z

A

Directed Acyclic Graph

Task Variables Computational times Communications times Deadlines (laxity) Precedence

• Number of children• Number of parents

Page 9: Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc.

9© 2002 Mercury Computer Systems, Inc.

Technology ModelTechnology Model

Other technological issues Compiler optimization techniques Multifunctional resources Size, weight, and power considerations

Rel

ativ

e P

erfo

rman

ce

Time

CPU Performance

Memory Bandwidth

I/O Bandwidth

ProgrammingDifficulties

Page 10: Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc.

10© 2002 Mercury Computer Systems, Inc.

Fault ModelingFault Modeling

CAUSES

TYPES

ERRORS

FAILURES

SpecificationImplementationExternalsDefects

Fault Avoidance

Fault Masking

Fault Tolerance

HardwareSoftware

Drivers• Visibility• Cost• Affects

Fault model Too simplistic Single fault assumption Fault isolated to task or processor Limited recovery techniques Inconsistent QoS issues

Page 11: Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc.

11© 2002 Mercury Computer Systems, Inc.

Temporal Characteristics Hard,

Soft, Fuzzy, Real-Time

The Scheduling FrameworkThe Scheduling Framework

Quality of Service (QoS)Runtime Performance

Development Efficiency

Application Awareness

Reconfigurability

Plan for Detection, Correction, and

Recovery

StructuredDevelopment

Static Plus Dynamic Adaptive

A Real-Time Hybrid Scheduling Framework for Fault Tolerant Polymorphic Computing

Page 12: Daniel M. Lorts University of Texas – Dallas and Mercury Computer Systems, Inc.

12© 2002 Mercury Computer Systems, Inc.

Framework DetailsFramework Details Structured development

Provides foundation Validated by mapping know architecture

Hybrid scheduling Focal point of research Static and dynamic approaches

Real-Time Formal temporal methods

Fault tolerance Dynamic detection, correction, and recovery

Polymorphism Reactive environments Efficient ‘morphing’

Computing Quality of Service (QoS) Usability and generality