A Look into Stochastic Scheduling of Mixed Criticality Real

advertisement
Probabilistic Results for Mixed
Criticality Real-Time Scheduling
Bader N. Alahmad
Sathish Gopalakrishnan
Example
Platform
Single Processor
Preemptive
Simpler case: Independent Job Model
𝑛 independent (one-shot) jobs {𝐽1 , … , 𝐽𝑛 }
Job 𝐽𝑖 characterized by
π‘Ÿπ‘– ∈ β„š+
𝑑𝑖 ∈ β„š+
πœ’π‘– ∈ 1, … , 𝐿
οƒ  Release Time
οƒ  Absolute Deadline
οƒ  Criticality
𝒄𝑖 = 𝑐𝑖 1 , … , 𝑐𝑖 πœ’π‘– , … , 𝑐𝑖 πœ’π‘–
∈ β„šπΏ+ οƒ  Assumption ?
Job Criticality
• Codifies (potential) overload conditions
• In overload, jobs with higher criticality have
infinite marginal utility of execution over
lower criticality ones
Execution behaviours
MC-Schedulability/Scheduling
MC-Schedulability
MC-Scheduling
Need to find a scheduling policy…
Approach: Worst Case Reservation (WCR)
Scheduling
Performance Metric? How to quantify
the quality of the solution ?
Resource Augmentation οƒ  Processor speed
up factor
1
Processor is
a unit
capacity bin
WCR
Optimal (Oracle)
• If system criticality level
= 1: all criticality 1 jobs
execute and are
allowed to fully utilize
the processor
• If system criticality level
= 2: all criticality 2 jobs
execute and are
allowed to fully utilize
the processor
WCR
• If system criticality level
= 1: all criticality 1 jobs
execute and are
allowed to fully utilize
the processor
• If system criticality level
= 2: all jobs execute and
are allowed to fully
utilize the processor
WCR-Schedulability
If an instance is WCR-schedulable on a processor οƒ  it
is MC-schedulable on the same processor
Conversely, if an instance with 𝐿 criticality levels is MCschedulable on a given processor οƒ  it is WCRschedulable on a processor that is 𝐿 times as fast, and
this factor is tight.
Own Criticality Based Priority (OCBP)
Construct fixed priority table offline.
At each scheduling decision point, dispatch
the job with the highest priority.
Priorities assigned using Audsley’s/Lawler’s
method.
OCBP – Speed up factor
The root of the equation π‘₯ 𝐿 = 1 + π‘₯
𝐿−1
𝑠𝐿 = πœƒ(𝐿/ ln 𝐿) οƒ 
improvement of πœƒ(ln 𝐿) asymptotically over WCR
For dual-criticality systems: 𝐿 = 2 οƒ  𝐿𝑖 ∈ LO, HI
𝑠2 =
5+1
2
= πœ™ The Golden ration
Deterministic results are based on
adversarial/worst-case behaviour.
Probabilistic execution times to guide
execution time allocation
Mutually independent
Open Questions
• What is a policy that minimizes expected lateness?
– Based on expected criticality level.
– Lateness: Response Time – Deadline.
• What is a policy that minimizes tardiness/lateness ratio?
– Tardiness ratio: Response Time/Deadline.
• What is a policy that minimizes the probability of a
deadline miss?
Current Investigation
Finite Horizon Bandit Process
Dynamic Allocation Indexes (DAI) οƒ 
e.g., Gittins Index for multi-armed bandit processes
Model as Markov Decision Processes
Class of Optimal Stopping Problems
Dropping times and time(s) to engage in job execution are random
?
Download