Scalable Utility Aware Scheduling Heuristics for Real-time Tasks with Stochastic Non-preemptive Execution Intervals* Terry Tidwell 1, Carter Bass 1, Eli.

Slides:



Advertisements
Similar presentations
Feedback Control Real-Time Scheduling: Framework, Modeling, and Algorithms Chenyang Lu, John A. Stankovic, Gang Tao, Sang H. Son Presented by Josh Carl.
Advertisements

THE UNIVERSITY of TEHRAN Mitra Nasri Sanjoy Baruah Gerhard Fohler Mehdi Kargahi October 2014.
Mehdi Kargahi School of ECE University of Tehran
Meta-Level Control in Multi-Agent Systems Anita Raja and Victor Lesser Department of Computer Science University of Massachusetts Amherst, MA
Decision Theoretic Planning
Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.
Near Optimal Rate Selection for Wireless Control Systems Abusayeed Saifullah, Chengjie Wu, Paras Tiwari, You Xu, Yong Fu, Chenyang Lu, Yixin Chen.
1 Reinforcement Learning Introduction & Passive Learning Alan Fern * Based in part on slides by Daniel Weld.
Senior Design Project: Parallel Task Scheduling in Heterogeneous Computing Environments Senior Design Students: Christopher Blandin and Dylan Machovec.
Infinite Horizon Problems
Planning under Uncertainty
1 Stochastic Event Capture Using Mobile Sensors Subject to a Quality Metric Nabhendra Bisnik, Alhussein A. Abouzeid, and Volkan Isler Rensselaer Polytechnic.
Towards Feasibility Region Calculus: An End-to-end Schedulability Analysis of Real- Time Multistage Execution William Hawkins and Tarek Abdelzaher Presented.
Dynamic Tuning of the IEEE Protocol to Achieve a Theoretical Throughput Limit Frederico Calì, Marco Conti, and Enrico Gregori IEEE/ACM TRANSACTIONS.
April 29, 2008 UC Berkeley EECS, Berkeley, CA 1 Anytime Control Algorithms for Embedded Real-Time Systems L. Greco, D. Fontanelli, A. Bicchi Interdepartmental.
CSE 421 Algorithms Richard Anderson Lecture 6 Greedy Algorithms.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Optimal Fixed-Size Controllers for Decentralized POMDPs Christopher Amato Daniel.
Department of Computer Science Undergraduate Events More
End-to-End Delay Analysis for Fixed Priority Scheduling in WirelessHART Networks Abusayeed Saifullah, You Xu, Chenyang Lu, Yixin Chen.
Cyber-Physical Systems Research* Chris Gill Professor of Computer Science and Engineering Washington University, St. Louis, MO, USA
Distributed Constraint Optimization Michal Jakob Agent Technology Center, Dept. of Computer Science and Engineering, FEE, Czech Technical University A4M33MAS.
CPS Scheduling Policy Design with Utility and Stochastic Execution* Chris Gill Associate Professor Department of Computer Science and Engineering Washington.
Real Time Process Control (Introduction)
Scheduling as a Learned Art* Christopher Gill, William D. Smart, Terry Tidwell, and Robert Glaubius {cdgill, wds, ttidwell, Department.
Embedded System Design Framework for Minimizing Code Size and Guaranteeing Real-Time Requirements Insik Shin, Insup Lee, & Sang Lyul Min CIS, Penn, USACSE,
MIC’2011 1/58 IX Metaheuristics International Conference, July 2011 Restart strategies for GRASP+PR Talk given at the 10 th International Symposium on.
Scheduling for Reliable Execution in Autonomic Systems* Terry Tidwell, Robert Glaubius, Christopher Gill, and William D. Smart {ttidwell, rlg1, cdgill,
Real-Time Performance and Middleware for Multiprocessor and Multicore Linux Platforms* Yuanfang Zhang, Christopher Gill, and Chenyang Lu Department of.
Non-Preemptive Scheduling Policy Design for Tasks with Stochastic Execution Times* Chris Gill Associate Professor Department of Computer Science and Engineering.
Approximation Algorithms for Task Allocation with QoS and Energy Considerations Bader N. Alahmad.
Practical Schedulability Analysis for Generalized Sporadic Tasks in Distributed Real-Time Systems Yuanfang Zhang 1, Donald K. Krecker 2, Christopher Gill.
Quantifying the Sub-optimality of Non-preemptive Real-time Scheduling Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
1 ECE-517 Reinforcement Learning in Artificial Intelligence Lecture 7: Finite Horizon MDPs, Dynamic Programming Dr. Itamar Arel College of Engineering.
1 Reducing Queue Lock Pessimism in Multiprocessor Schedulability Analysis Yang Chang, Robert Davis and Andy Wellings Real-time Systems Research Group University.
Computer Science CPSC 502 Lecture 14 Markov Decision Processes (Ch. 9, up to 9.5.3)
Scheduling policies for real- time embedded systems.
Scheduling Periodic Real-Time Tasks with Heterogeneous Reward Requirements I-Hong Hou and P.R. Kumar 1.
Real Time Scheduling Telvis Calhoun CSc Outline Introduction Real-Time Scheduling Overview Tasks, Jobs and Schedules Rate/Deadline Monotonic Deferrable.
1 Markov Decision Processes Infinite Horizon Problems Alan Fern * * Based in part on slides by Craig Boutilier and Daniel Weld.
Scheduling Periodic Real-Time Tasks with Heterogeneous Reward Requirements I-Hong Hou and P.R. Kumar 1 Presenter: Qixin Wang.
The 32nd IEEE Real-Time Systems Symposium Meeting End-to-End Deadlines through Distributed Local Deadline Assignment Shengyan Hong, Thidapat Chantem, X.
BLAST: Basic Local Alignment Search Tool Altschul et al. J. Mol Bio CS 466 Saurabh Sinha.
Object-Oriented Design and Implementation of the OE-Scheduler in Real-time Environments Ilhyun Lee Cherry K. Owen Haesun K. Lee The University of Texas.
Hard Real-Time Scheduling for Low- Energy Using Stochastic Data and DVS Processors Flavius Gruian Department of Computer Science, Lund University Box 118.
1 Markov Decision Processes Infinite Horizon Problems Alan Fern * * Based in part on slides by Craig Boutilier and Daniel Weld.
Scheduling Policy Design for Stochastic Non-preemptive Real-time Systems* Chris Gill Professor of Computer Science and Engineering Washington University,
Quality of LP-based Approximations for Highly Combinatorial Problems Lucian Leahu and Carla Gomes Computer Science Department Cornell University.
CSE 522 Real-Time Scheduling (2)
Decision Theoretic Planning. Decisions Under Uncertainty  Some areas of AI (e.g., planning) focus on decision making in domains where the environment.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
Common Approaches to Real-Time Scheduling Clock-driven (time-driven) schedulers Priority-driven schedulers Examples of priority driven schedulers Effective.
Static Process Scheduling
Introduction to Real-Time Systems
Department of Computer Science Undergraduate Events More
Markov Decision Process (MDP)
For a good summary, visit:
Introductory Seminar on Research CIS5935 Fall 2008 Ted Baker.
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Achieving Goals in Decentralized POMDPs Christopher Amato Shlomo Zilberstein UMass.
Scalable Scheduling Policy Design for Open Soft Real-Time Systems*
Scheduling Design and Verification for Open Soft Real-time Systems
Optimizing Expected Time Utility in Cyber-Physical Systems Schedulers
Chris Gill Associate Professor
 Real-Time Scheduling via Reinforcement Learning
Elastic Task Model For Adaptive Rate Control
 Real-Time Scheduling via Reinforcement Learning
Real-Time Scheduling David Ferry CSCI 3500 – Operating Systems
Presentation transcript:

Scalable Utility Aware Scheduling Heuristics for Real-time Tasks with Stochastic Non-preemptive Execution Intervals* Terry Tidwell 1, Carter Bass 1, Eli Lasker 1, Micah Wylde 2, Christopher Gill 1 & William D. Smart 1 1 CSE Department, Washington University, St. Louis, MO, USA 2 Wesleyan University, Middletown, CT, USA 23 rd Euromicro Conference on Real-Time Systems Porto, Portugal, July 6-8, 2011 *Research supported in part by NSF grants CNS (Cybertrust) and CCF (CAREER)

2 - Tidwell et al. – 5/5/2015 Motivating Example: Control Tasks Designed to execute at a specific frequency »Inter-job jitter may impact control stability »Task execution times may have stochastic distributions »Preemption may not be feasible (episodic binding of devices/processing to tasks) Time controller actuatorsensor CAN Early completion may be as problematic as late »Sensor data may be fresher later »Very early actuation may disrupt physical control »Job’s value increases the nearer to a target it completes

3 - Tidwell et al. – 5/5/2015 Time Utility Functions (TUFs) A TUF encodes the utility gained from completing a job, as a function of time »Can describe a rich variety of timing constraints Time Utility Based on Figure 1 in Ravindran, et. al. “On Recent Advances in Time/Utility Function Real-Time Scheduling and Resource Management”, Previous goal (RTSS 2010) and results »Maximize stochastic non-preemptive tasks’ utility accrual »MDP-based approach gives value-optimal scheduling policy Goal and results of this work »Make scalable in # of tasks, still with high utility accrual »Heuristics are scalable, can perform well (selectively)

4 - Tidwell et al. – 5/5/2015 System Model Tasks »Periodic, non-preemptive, with stochastic durations »A job’s value: its TUF at completion time (soft real-time) »Also may add a deadline miss penalty (hard real-time) System states »Finite duration distributions and hyper-period guarantee a finite number of states can model tasks’ resource use »A scheduling policy decides action to take in each state »I.e., which task to schedule (or to idle the resource) action 2action 1idle action

5 - Tidwell et al. – 5/5/2015 Scheduling Policy Design/Evaluation x0x0 x1x1 x2x2 x3x3 γ 0 r 0 t 0 – t 1 γ 1 r 1 t 1 – t 2 γ 2 r 2 t 2 – t 3 =++ + V(π) V(π): the value of a scheduling policy π »Long term future expectation of utility accrual »Discount factor (γ=0.99) makes sum of rewards converge »MDP uses V(π) to find value-optimal scheduling policy »Here we use V(π) to evaluate several scalable heuristics

6 - Tidwell et al. – 5/5/2015 Scalable Utility-Aware Heuristics Pseudo α and UPA α (our contributions) »Extend UPA algorithm (Wang, Ravindran 2004) to handle both stochastic task durations & arbitrary TUF shapes α is a threshold on minimum probability of on-time completion 0 considers any job, 1 only those guaranteed timely completion »Pseudo α orders jobs by pseudoslope -U i (t)/(τ i - t) »UPA α then permutes jobs locally (possibly improves) Other heuristics (for comparison) »Sequencing: finds work-conserving order of currently available jobs that gives maximum utility »Greedy: dispatches job with maximum immediate utility »Deadline: orders jobs by TUFs’ “deadlines” (Locke 1986) Assigned to earliest discontinuity in TUF or its first derivative

7 - Tidwell et al. – 5/5/2015 Evaluation (target sensitive) (linear drop) (downward step) utility bounds critical points termination times Different TUF shapes »Useful to characterize tasks’ different utilities 3 representative ones »Randomly generated based on utility bounds, termination times, and critical points Task periods »Randomly selected from divisors >= 100 of 2400 Task duration distributions »Also randomly generated, within bounds on 80% of the probability mass

8 - Tidwell et al. – 5/5/2015 Effect of α Parameter We found that it is important to consider all jobs »E.g., soft real-time linear drop TUF results shown above Therefore we always use Pseudo 0 and UPA 0 ideal

9 - Tidwell et al. – 5/5/2015 UPA 0 vs. Pseudo 0 for Soft Real-Time For SRT UPA 0 improved on Pseudo 0, but not a lot »Soft real-time (no deadline miss penalty), linear drop TUF »Similar results were seen for target sensitive TUFs Therefore, Pseudo 0 may be preferable (less costly)

10 - Tidwell et al. – 5/5/2015 Effects of SRT Load on Pseudo 0 high loadmedium load low load Greater load: Pseudo 0 is closer to value-optimal »Fewer ways to go wrong Target sensitive is worst »More opportunities for a work-conserving decision to be worse than idling

11 - Tidwell et al. – 5/5/2015 Effects of Other TUF Shape Features (upward step function) (downward step function) (rise linear) (linear drop with different y-intercepts) τiτi n n

12 - Tidwell et al. – 5/5/2015 Effects of TUF Class on Pseudo 0 Soft real-time high load scenario for Pseudo 0 »100 randomly generated 5-task problem instances Pseudo 0 performed well except on target sensitive »Consistent with previous observations Pseudo 0 performed worse as the y-intercept decreased (became more like target sensitive TUF)

13 - Tidwell et al. – 5/5/2015 Deadline Heuristic: SRT Downward Step Deadline heuristic outperformed both UPA 0 and Pseudo 0 for soft real-time downward step TUFs »Deadline captures most important feature of TUF (tm i ) »No penalty for early completion so simple ordering works

14 - Tidwell et al. – 5/5/2015 Hard Real-Time Scenarios Hard real-time cases add a deadline miss penalty Pseudo 0 did badly on HRT target sensitive TUFs »Tuning the α parameter to find a better one didn’t help »Pseudo 0 performed close to UPA 0 on the other TUFs Deadline heuristic again performed much better with downward step TUFs than with the others

15 - Tidwell et al. – 5/5/2015 Conclusions Observations and Lessons Learned »UPA and Pseudo do their best with α=0 (consider all jobs) »Pseudo 0 (less expensive) performed close to UPA 0 for SRT and (except for target sensitive TUFs) HRT cases »Deadline heuristic performed very well for linear drop TUFs but performed poorly for the other TUF classes »Greedy & sequencing heuristics underperformed overall Future Work »Relatively poor performance of sequencing heuristic is a bit surprising (UPA improves slightly on Pseudo that way) Further consideration of non-work-conserving vs. work-conserving variations, and comparing those orderings to UPA, is needed »Ongoing inquiry into (e.g., geometric) approximations of value-optimal TUF scheduling policies appears worthwhile

16 - Tidwell et al. – 5/5/2015 Backup Slides

17 - Tidwell et al. – 5/5/2015 Soft RT Scenario: Target Sensitive TUF

18 - Tidwell et al. – 5/5/2015 Hard RT Scenario: Downward Step

19 - Tidwell et al. – 5/5/2015 Hard RT Scenario: Linear Drop

20 - Tidwell et al. – 5/5/2015 Greedy HRT Scenarios: High Load

21 - Tidwell et al. – 5/5/2015 Greedy HRT Scenarios: Medium Load

22 - Tidwell et al. – 5/5/2015 Greedy HRT Scenarios: Low Load