Scheduling Periodic Real-Time Tasks with Heterogeneous Reward Requirements I-Hong Hou and P.R. Kumar 1 Presenter: Qixin Wang.

Slides:



Advertisements
Similar presentations
Scheduling Heterogeneous Real- Time Traffic over Fading Wireless Channels I-Hong Hou P.R. Kumar University of Illinois, Urbana-Champaign 1/24.
Advertisements

ANDREW MAO, STACY WONG Regrets and Kidneys. Intro to Online Stochastic Optimization Data revealed over time Distribution of future events is known Under.
Online Scheduling with Known Arrival Times Nicholas G Hall (Ohio State University) Marc E Posner (Ohio State University) Chris N Potts (University of Southampton)
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems (m, k)-firm tasks and QoS enhancement.
RUN: Optimal Multiprocessor Real-Time Scheduling via Reduction to Uniprocessor Paul Regnier † George Lima † Ernesto Massa † Greg Levin ‡ Scott Brandt ‡
Fair Real-time Traffic Scheduling over A Wireless Local Area Network Maria Adamou, Sanjeev Khanna, Insup Lee, Insik Shin, and Shiyu Zhou Dept. of Computer.
Admission Control and Scheduling for QoS Guarantees for Variable-Bit-Rate Applications on Wireless Channels I-H. Hou and P.R. Kumar Department of Computer.
Infinite Horizon Problems
June 3, 2015Windows Scheduling Problems for Broadcast System 1 Amotz Bar-Noy, and Richard E. Ladner Presented by Qiaosheng Shi.
Kuang-Hao Liu et al Presented by Xin Che 11/18/09.
Synthesis of Embedded Software Using Free-Choice Petri Nets.
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.
Chapter 6: CPU Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Feb 2, 2005 Chapter 6: CPU Scheduling Basic.
Quality-Aware Segment Transmission Scheduling in Peer-to-Peer Streaming Systems Cheng-Hsin Hsu Senior Research Scientist Deutsche Telekom R&D Lab USA Los.
1 Combinatorial Dominance Analysis The Knapsack Problem Keywords: Combinatorial Dominance (CD) Domination number/ratio (domn, domr) Knapsack (KP) Incremental.
A Scalable Network Resource Allocation Mechanism With Bounded Efficiency Loss IEEE Journal on Selected Areas in Communications, 2006 Johari, R., Tsitsiklis,
Optimal Proxy Cache Allocation for Efficient Streaming Media Distribution Bing Wang, Subhabrata Sen, Micah Adler, and Don Towsley INFOCOM 2002.
System-Wide Energy Minimization for Real-Time Tasks: Lower Bound and Approximation Xiliang Zhong and Cheng-Zhong Xu Dept. of Electrical & Computer Engg.
Adaptive Rate Control for Streaming Stored Fine- Grained Scalable Video Philippe de Cuetos, Keith W. Ross NOSSDAV 2002, May 12-14,2002.
Fair Real-time Traffic Scheduling over Wireless Local Area Networks Insik Shin Joint work with M. Adamou, S. Khanna, I. Lee, and S. Zhou Dept. of Computer.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Combined Scheduling of Periodic and Aperiodic Tasks.
EE 685 presentation Distributed Cross-layer Algorithms for the Optimal Control of Multi-hop Wireless Networks By Atilla Eryılmaz, Asuman Özdağlar, Devavrat.
Task Scheduling By Dr. Amin Danial Asham.
Page 110/9/2015 CSE 40373/60373: Multimedia Systems So far…  RMS - task with highest rate has highest priority  EDF – earliest deadline first  Tasks.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
Real-Time Systems Hierarchical Real-Time Systems for Imprecise Computation Model The 5th EuroSys Doctoral Workshop (EuroDW 2011) Guy Martin.
GRID’2012 Dubna July 19, 2012 Dependable Job-flow Dispatching and Scheduling in Virtual Organizations of Distributed Computing Environments Victor Toporkov.
1 Reducing Queue Lock Pessimism in Multiprocessor Schedulability Analysis Yang Chang, Robert Davis and Andy Wellings Real-time Systems Research Group University.
Scheduling policies for real- time embedded systems.
Dominant Resource Fairness: Fair Allocation of Multiple Resource Types Ali Ghodsi, Matei Zaharia, Benjamin Hindman, Andy Konwinski, Scott Shenker, Ion.
Utility-Optimal Scheduling in Time- Varying Wireless Networks with Delay Constraints I-Hong Hou P.R. Kumar University of Illinois, Urbana-Champaign 1/30.
Scheduling Periodic Real-Time Tasks with Heterogeneous Reward Requirements I-Hong Hou and P.R. Kumar 1.
Silberschatz and Galvin  Operating System Concepts Module 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor.
Admission Control and Scheduling for QoS Guarantees for Variable-Bit-Rate Applications on Wireless Channels I-Hong Hou P.R. Kumar University of Illinois,
Incentive-Oriented Downlink Scheduling for Wireless Networks with Real-Time and Non-Real-Time Flows I-Hong Hou, Jing Zhu, and Rath Vannithamby.
An Optimal Service Ordering for a World Wide Web Server A Presentation for the Fifth INFORMS Telecommunications Conference March 6, 2000 Amy Csizmar Dalal.
1 Markov Decision Processes Infinite Horizon Problems Alan Fern * * Based in part on slides by Craig Boutilier and Daniel Weld.
1 Short Term Scheduling. 2  Planning horizon is short  Multiple unique jobs (tasks) with varying processing times and due dates  Multiple unique jobs.
Michael J. Neely, University of Southern California CISS, Princeton University, March 2012 Asynchronous Scheduling for.
Utility Maximization for Delay Constrained QoS in Wireless I-Hong Hou P.R. Kumar University of Illinois, Urbana-Champaign 1 /23.
Providing End-to-End Delay Guarantees for Multi-hop Wireless Sensor Networks I-Hong Hou.
Hard Real-Time Scheduling for Low- Energy Using Stochastic Data and DVS Processors Flavius Gruian Department of Computer Science, Lund University Box 118.
1 Job Scheduling for Grid Computing on Metacomputers Keqin Li Proceedings of the 19th IEEE International Parallel and Distributed Procession Symposium.
Lecture 3: Uninformed Search
1 Markov Decision Processes Infinite Horizon Problems Alan Fern * * Based in part on slides by Craig Boutilier and Daniel Weld.
1 11/29/2015 Chapter 6: CPU Scheduling l Basic Concepts l Scheduling Criteria l Scheduling Algorithms l Multiple-Processor Scheduling l Real-Time Scheduling.
Cpr E 308 Spring 2005 Process Scheduling Basic Question: Which process goes next? Personal Computers –Few processes, interactive, low response time Batch.
Loss-Bounded Analysis for Differentiated Services. By Alexander Kesselman and Yishay Mansour Presented By Sharon Lubasz
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Content caching and scheduling in wireless networks with elastic and inelastic traffic Group-VI 09CS CS CS30020 Performance Modelling in Computer.
Rounding scheme if r * j  1 then r j := 1  When the number of processors assigned in the continuous solution is between 0 and 1 for each task, the speed.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Fair Energy-efficient Sensing Task Allocation in Participatory Sensing with Smartphones 使用智能手机的共享式传感中的公平、高效能的传感任务分配 --- 赵若男.
Introduction to Real-Time Systems
A Theory of QoS for Wireless I-Hong Hou Vivek Borkar P.R. Kumar University of Illinois, Urbana-Champaign.
Self-Organized Resource Allocation in LTE Systems with Weighted Proportional Fairness I-Hong Hou and Chung Shue Chen.
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Wireless Packet Scheduling With Soft Deadlines Aditya Dua and Nicholas Bambos Department of Electrical Engineering Stanford University ICC 2007.
Chapter 4 CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
An On-line Approach to Reduce Delay Variations on Real-Time Operating Systems Shengyan Hong.
Lecture 6: Real-Time Scheduling
Spark on Entropy : A Reliable & Efficient Scheduler for Low-latency Parallel Jobs in Heterogeneous Cloud Huankai Chen PhD Student at University of Kent.
Team: Aaron Sproul Patrick Hamilton
MESOS.
Imprecise Computation September 7, 2006
Department of Computer Science & Engineering
Broadcasting Delay-Constrained Traffic over Unreliable Wireless Links with Network Coding I-Hong Hou and P.R. Kumar.
Networked Real-Time Systems: Routing and Scheduling
Deadline Scheduling and Heavy tailED distributions
Presentation transcript:

Scheduling Periodic Real-Time Tasks with Heterogeneous Reward Requirements I-Hong Hou and P.R. Kumar 1 Presenter: Qixin Wang

Problem Overview  Imprecise Computation Model:  Tasks generate jobs periodically, each job with some deadline  Jobs that miss deadline cause performance degradation of the system, rather than serious failure  Partially-completed jobs are still useful and generate some rewards  Previous work: maximize the total rewards of all tasks  Assumes that rewards of different tasks are equivalent  May result in serious unfairness  Does not allow tradeoff between tasks  This work: Provide guarantees on reward for each task 2

Example: Video Streaming  A server serves several video streams  Each stream generates a group of video-frames (GOF) periodically  Video-Frames need to be delivered on time, or they are not useful  Lost video-frames result in glitches of videos  Video-Frames of the same flow are not equally important  MPEG has three types of video-frames: I, P, and B  I-frames are more important than P-frames, which are more important than B-frames  Goal: provide guarantees on perceived video quality for each stream 3

System Model  Discrete time, basic unit: time-slot.  A system with several tasks (task = video stream)  Each task X generates one job every τ X time-slots, deadline = τ X (job = GOF)  All tasks release one job at the first time-slot A B C A A A A B B B C C C C C τ A =4 τ B =6 τ C =3 4

System Model  Cycle = least common multiple of τ A, τ B, … A B C T = 12 5

Model for Rewards  A job can run for several time-slots before its deadline  Upon finishing its k th time-slot of execution, a job of task X wins a marginal reward of r X k, where r X 1 ≥ r X 2 ≥ r X 3 ≥… (i.e., the reward of the k th video-frame in a GOF is r X k ) A B C A A A A B B B C C C C C τ A =4 τ B =6 τ C =3 6

Scheduling Example  Reward of A per cycle = 3 r A 1 +2 r A 2 + r A 3 A B C A A A A B B B C C C C C A A B C C B A C B A A A rA1rA1 rA2rA2 rA1rA1 rA1rA1 rA2rA2 rA3rA3 7

Scheduling Example  Reward of A per cycle = 3 r A 1 +2 r A 2 + r A 3  Reward of B per cycle = 2 r B 1 + r B 2  Reward of C per cycle = 3 r C 1 A B C A A A A B B B C C C C C A A B C C B A C B A A A 8

Reward Requirements  Task X requires an average reward per cycle of ≥ q X  Q: Is [ q A, q B,…] feasible? How to schedule to meet the reward requirements? A B C A A A A B B B C C C C C A A B C C B A C B A A A 9

Extension for Imprecise Computation Models  Imprecise Computation Model: Each job may have a mandatory part and an optional part  Mandatory part has to run to completion, or a serious failure happens.  Incomplete optional part only harms performance  Our model: set the reward of a mandatory part to be M, where M is larger than any finite number  The reward requirement of a task = aM + b, where a is the mandatory part length in the unit of time-slots, and b is the optional part’s total reward.  Mandatory part has to be completed before optional part can start. 10

Feasibility Condition  f X k := average number of X jobs, each of which runs for at least k time-slots per cycle  Obviously, 0 ≤ f X k ≤ T/τ X  Average reward of X = ∑ k f X k r X k  Average reward requirement: ∑ k f X k r X k ≥ q X  The average number of time-slots that the CPU spends on X per cycle = ∑ k f X k  Hence, ∑ X ∑ k f X k ≤ T 11

Admission Control  Theorem: A system is feasible if and only if there exists a vector [ f X k ]such that 1. 0 ≤ f X k ≤ T/τ X 2. ∑ k f X k r X k ≥ q X 3. ∑ X ∑ k f X k ≤ T  Check feasibility by linear programming  Complexity of admission control can be further reduced by noting r X 1 ≥ r X 2 ≥ r X 3 ≥…  Theorem: check feasibility in O(∑ X τ X ) time 12

Scheduling Policy  Q: Given a feasible system, how to design a scheduling policy that fulfills all reward requirements?  Propose a framework for designing scheduling policies  Propose an on-line scheduling policy  Analyze the performance of the on-line scheduling policy 13

A Condition Based on Debts  Let s X (l) be the reward obtained by X in the l th cycle  The (accumulated) Debt of task X right after the l th cycle: d X (l) := [d X (l-1)+q X - s X (l)] +  x + := max{x, 0}  The requirement of task X is met if d X (l)/l→0, as l→∞  Theorem: A schedling policy that maximizes ∑ X d X (l)s X (l) for every cycle fulfills every feasible system  Such a policy is called an optimal policy 14

Approximation Policy  Computation overhead of an optimal policy may be high  Study performance guarantees of suboptimal policies  Theorem: If a policy’s resulting ∑ X d X (l)s X (l) is at least 1/p of the optimal policy’s ∑ X d X (l)s X (l), then this policy achieves reward requirement [q X ] as long as the reward requirement [pq X ] is feasible  Such a policy is called a p-approximation policy 15

An On-Line Scheduling Policy  At some time slot, let ( j X - 1) be the number of time-slots that the CPU has worked on the current job of X so far  If the CPU schedules X in this time slot, X obtains a reward of r X j X  Greedy Maximizer: Schedule the task X that maximizes r X j X d X ( l ) in every time-slot  Greedy Maximizer can be efficiently implemented 16

Performance of Greedy Maximizer  The Greedy Maximizer is optimal when the period length of all tasks are the same  τ A = τ B = …  However, when tasks have different period lengths, the Greedy Maximizer is not necessarily optimal 17

Example of Suboptimality  A system with two tasks  Task A: τ A = 6, r A 1 = r A 2 = r A 3 = r A 4 = 100, r A 5 = r A 6 = 1  Task B: τ B = 3, r B 1 = 10, r B 2 = r B 3 = 0  Suppose d A (l) = d B (l) = 1  d A (l)s A (l) + d B (l)s B (l) of Greedy Maximizer = 411 A A A AA B B A

Example of Suboptimality  A system with two tasks  Task A: τ A = 6, r A 1 = r A 2 = r A 3 = r A 4 = 100, r A 5 = r A 6 = 1  Task B: τ B = 3, r B 1 = 10, r B 2 = r B 3 = 0  Suppose d A (l) = d B (l) = 1  d A (l)s A (l) + d B (l)s B (l) of Greedy Maximizer = 411  d A (l)s A (l) + d B (l)s B (l) of an optimal policy = 420 A A A AA B B B 19

Approximation Bound  Analyze the worst case performance of the Greedy Maximizer  Show that resulting ∑ X d X (l)s X (l) is at least 1/2 of the resulting ∑ X d X (l)s X (l) by any other policy  Theorem: The Greedy Maximizer is a 2-approximation policy  The Greedy Maximizer achieves reward requirements [ q X ] as long as requirements [2 q X ] are feasible 20

Simulation Setup: MPEG Streaming  MPEG: 1 GOF consists of 1 I-frame, 3 P-frames, and 8 B- frames  Two groups of tasks, A and B  Tasks in A treat both I-frames and P-frames as mandatory parts, while tasks in B only require I-frames to be mandatory  B-frames are optional for tasks in A; both P-frames and B- frames are optional for tasks in B  3 tasks in each group 21

Reward Function for Optional Part  Each task gains some reward when its optional parts are executed  Consider three types of optional part reward functions: exponential, logarithmic, and linear  Exponential: X obtains a total reward of (5+i)(1-e -k/5 ) if its job is executed k time-slots, where i is the index of the task X  Logarithmic: X obtains a total reward of (5+i)log(10k+1) if its job is executed k time-slots  Linear: X obtains a total reward of (5+i)k if its job is executed k time-slots 22

Performance Comparison  Assume all tasks in A requires an average reward of α, and all tasks in B requires an average reward of β  Plot all pairs of ( α, β ) that are achieved by each policy  Consider three policies:  Feasible: the feasible region characterized by the feasibility conditions  Greedy Maximizer  MAX: a policy that aims to maximize the total reward in the system 23

Simulation Results: Same Frame Rate  All streams generate one GOF every 30 time slots Exponential reward functions: Greedy = Feasible Thus, Greedy Maximizer is indeed feasibility optimal Greedy is much better than MAX 24

Simulation Results: Same Frame Rate  All streams generate one GOF every 30 time slots  Greedy = Feasible, and is always better than MAX LogarithmicLinear 25

Simulation Results: Heterogeneous Frame Rate  Different tasks generate GOFs at different rates  Period length may be 20, 30, or 40 time slots Performance of Greedy is close to optimal Greedy is much better than MAX Exponential 26

Simulation Results: Heterogeneous Frame Rate  Different tasks generate GOFs at different rates  Period length may be 20, 30, or 40 time slots LogarithmicLinear 27

Conclusions  We propose a model based on the imprecise computation models that supports per-task reward guarantees  This model can achieve better fairness, and allow fine- grain tradeoff between tasks  Derive a sharp condition for feasibility  Propose an on-line scheduling policy, the Greedy Maximizer  Greedy Maximizer is feasibility optimal when all tasks have the same period length  It is a 2-approximation policy, otherwise 28