Approximation Algorithms for Task Allocation with QoS and Energy Considerations Bader N. Alahmad.

Slides:



Advertisements
Similar presentations
On the Complexity of Scheduling
Advertisements

Energy-efficient Task Scheduling in Heterogeneous Environment 2013/10/25.
CALTECH CS137 Fall DeHon 1 CS137: Electronic Design Automation Day 19: November 21, 2005 Scheduling Introduction.
 Review: The Greedy Method
Class-constrained Packing Problems with Application to Storage Management in Multimedia Systems Tami Tamir Department of Computer Science The Technion.
Real- time Dynamic Voltage Scaling for Low- Power Embedded Operating Systems Written by P. Pillai and K.G. Shin Presented by Gaurav Saxena CSE 666 – Real.
Minimizing Expected Energy Consumption in Real-Time Systems through Dynamic Voltage Scaling Ruibin Xu, Daniel Mosse’, and Rami Melhem.
RUN: Optimal Multiprocessor Real-Time Scheduling via Reduction to Uniprocessor Paul Regnier † George Lima † Ernesto Massa † Greg Levin ‡ Scott Brandt ‡
Module 2 Priority Driven Scheduling of Periodic Task
Martha Garcia.  Goals of Static Process Scheduling  Types of Static Process Scheduling  Future Research  References.
All Hands Meeting, 2006 Title: Grid Workflow Scheduling in WOSE (Workflow Optimisation Services for e- Science Applications) Authors: Yash Patel, Andrew.
Soft Real-Time Semi-Partitioned Scheduling with Restricted Migrations on Uniform Heterogeneous Multiprocessors Kecheng Yang James H. Anderson Dept. of.
PCPs and Inapproximability Introduction. My T. Thai 2 Why Approximation Algorithms  Problems that we cannot find an optimal solution.
Infinite Horizon Problems
Introduction to Approximation Algorithms Lecture 12: Mar 1.
Green: A Framework for Supporting Energy-Conscious Programming using Controlled Approximation Woongki Baek Stanford University Trishul M. Chilimbi Microsoft.
Kuang-Hao Liu et al Presented by Xin Che 11/18/09.
Parameterized Approximation Scheme for the Multiple Knapsack Problem by Klaus Jansen (SODA’09) Speaker: Yue Wang 04/14/2009.
System-Wide Energy Minimization for Real-Time Tasks: Lower Bound and Approximation Xiliang Zhong and Cheng-Zhong Xu Dept. of Electrical & Computer Engg.
Algoritmi on-line e risoluzione di problemi complessi Carlo Fantozzi
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
Summary for Chapter 5 --Distributed Process Scheduling
Energy, Energy, Energy  Worldwide efforts to reduce energy consumption  People can conserve. Large percentage savings possible, but each individual has.
Minimizing Makespan and Preemption Costs on a System of Uniform Machines Hadas Shachnai Bell Labs and The Technion IIT Tami Tamir Univ. of Washington Gerhard.
Domain decomposition in parallel computing Ashok Srinivasan Florida State University COT 5410 – Spring 2004.
Bold Stroke January 13, 2003 Advanced Algorithms CS 539/441 OR In Search Of Efficient General Solutions Joe Hoffert
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
Computer Science Department University of Pittsburgh 1 Evaluating a DVS Scheme for Real-Time Embedded Systems Ruibin Xu, Daniel Mossé and Rami Melhem.
Approximation schemes Bin packing problem. Bin Packing problem Given n items with sizes a 1,…,a n  (0,1]. Find a packing in unit-sized bins that minimizes.
A S CHEDULABILITY A NALYSIS FOR W EAKLY H ARD R EAL - T IME T ASKS IN P ARTITIONING S CHEDULING ON M ULTIPROCESSOR S YSTEMS Energy Reduction in Weakly.
Probabilistic Results for Mixed Criticality Real-Time Scheduling Bader N. Alahmad Sathish Gopalakrishnan.
Quality of Service Karrie Karahalios Spring 2007.
Scheduling policies for real- time embedded systems.
TECH Computer Science NP-Complete Problems Problems  Abstract Problems  Decision Problem, Optimal value, Optimal solution  Encodings  //Data Structure.
Approximation Algorithms
Princeton University COS 423 Theory of Algorithms Spring 2001 Kevin Wayne Approximation Algorithms These lecture slides are adapted from CLRS.
1 Short Term Scheduling. 2  Planning horizon is short  Multiple unique jobs (tasks) with varying processing times and due dates  Multiple unique jobs.
Static Process Scheduling Section 5.2 CSc 8320 Alex De Ruiter
Resource Mapping and Scheduling for Heterogeneous Network Processor Systems Liang Yang, Tushar Gohad, Pavel Ghosh, Devesh Sinha, Arunabha Sen and Andrea.
Hard Real-Time Scheduling for Low- Energy Using Stochastic Data and DVS Processors Flavius Gruian Department of Computer Science, Lund University Box 118.
CSC 8420 Advanced Operating Systems Georgia State University Yi Pan.
Outline Introduction Minimizing the makespan Minimizing total flowtime
An Energy-efficient Task Scheduler for Multi-core Platforms with per-core DVFS Based on Task Characteristics Ching-Chi Lin Institute of Information Science,
Real-Time Support for Mobile Robotics K. Ramamritham (+ Li Huan, Prashant Shenoy, Rod Grupen)
1 Iterative Integer Programming Formulation for Robust Resource Allocation in Dynamic Real-Time Systems Sethavidh Gertphol and Viktor K. Prasanna University.
A Membrane Algorithm for the Min Storage problem Dipartimento di Informatica, Sistemistica e Comunicazione Università degli Studi di Milano – Bicocca WMC.
Operational Research & ManagementOperations Scheduling Economic Lot Scheduling 1.Summary Machine Scheduling 2.ELSP (one item, multiple items) 3.Arbitrary.
CS 484 Load Balancing. Goal: All processors working all the time Efficiency of 1 Distribute the load (work) to meet the goal Two types of load balancing.
ECE555 Topic Presentation Energy-efficient real-time scheduling Xing Fu 20 September 2008 Acknowledge Dr. Jian-Jia Chen from ETH providing PPT Slides for.
6.1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Static Process Scheduling
Practical Message-passing Framework for Large-scale Combinatorial Optimization Inho Cho, Soya Park, Sejun Park, Dongsu Han, and Jinwoo Shin KAIST 2015.
Multimedia Computing and Networking Jan Reduced Energy Decoding of MPEG Streams Malena Mesarina, HP Labs/UCLA CS Dept Yoshio Turner, HP Labs.
Dynamic Priority Driven Scheduling of Periodic Task
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Dynamic Power Management Using Online Learning Gaurav Dhiman, Tajana Simunic Rosing (CSE-UCSD) Existing DPM policies do not adapt optimally with changing.
Great Theoretical Ideas in Computer Science.
Pradeep Konduri Static Process Scheduling:  Proceedance process model  Communication system model  Application  Dicussion.
Conceptual Foundations © 2008 Pearson Education Australia Lecture slides for this course are based on teaching materials provided/referred by: (1) Statistics.
8.3.2 Constant Distance Approximations
Multiprocessor Real-Time Scheduling
Some Topics in OR.
Wayne Wolf Dept. of EE Princeton University
Server Allocation for Multiplayer Cloud Gaming
CprE 458/558: Real-Time Systems
Objective of This Course
Sanjoy Baruah The University of North Carolina at Chapel Hill
Networked Real-Time Systems: Routing and Scheduling
Jian-Jia Chen and Tei-Wei Kuo
Processes and operating systems
Presentation transcript:

Approximation Algorithms for Task Allocation with QoS and Energy Considerations Bader N. Alahmad

Problems we consider Task allocation such that QoS score achieved & number of processors minimized a)Variation 1: number of service classes (QoS levels) fixed, built into platform b)Variation 2 : Minimum service class should be maintained, arbitrary number of service classes Task Allocation such that QoS score achieved & Overall Energy minimized 2

Problems are NP-Hard  Reduction from Bin-Packing and PARTITION  Bin-Packing (decision): STRONGLY NP- Complete  PARTITION (decision): NP-Complete in the ordinary (weak) sense 3

Approximability Everywhere ! (Problem Instance) Algorithm (error Factor) (solution) 4 PTAS: running time poly in FPTAS: running time poly in

Quality of Service (QoS) tolerable error minimum precision required Service provider Client Service Level Agreement The service will provide a response of within 300ms for 99.9% of its request for a peak client load of 500 requests per second 5

QoS example: Search Engines “Woongki Baek and Trishul M. Chilimbi Green: a framework for supporting energy-conscious programming using controlled approximation. In Proceedings of the 2010 ACM SIGPLAN conference on Programming language design and implementation (PLDI '10).” Accept user query Search index for matching docs Rank docs, return the top N docs in ranked order QoS Loss metric: % of queries that return Different set of top N docs Same set of top N docs in different RANK order Tradeoff (Approximation) Execute less cycles Ranking for faster response 6

Tasks can even have hard deadlines 7

Tasks are periodic N tasks Each invokes jobs periodically forever every period Pi 8

Quality of Service A task comes equipped with service class specifications  (utilization, reward) per processor 1/4 1 9

Task Allocation with Service Classes (TASC) Tasks associated with resource function. Task1 Task3 Task2 1 Identical processors of unit capacity 10 General Solution Method: Memoization

Fixed Service Classes Variation 1: Service classes are fixed Service classes (pool) predetermined by provider (platform) Task1 Task3 Task2 11

FSC – Assign Tasks to Service Classes 12

Verify Assignment – Max Flow in a bipartite graph for each assignment 13

Minimum Makespan & Bin-Packing are DUAL problems t Scheduling Makespan = t t Bin Packing: bin capacity = t 14 1 Bin Packing: bin capacity = 1 Normalize

Find minimum number of bins for each assignment Result PTAS for TASC ! 15

Minimum Service Class (MSC) Variation 2: Relax fixed service classes But: require minimum service class to be maintained. Why? What is the maximum number of service classes ? Are they bounded? Solution: Quantize ! Why?? 16

Quantize Service Classes - qMSC 17 Catch ! Processors may need to have capacity

Incorporate Energy Expenditure and platform heterogeneity ! 18

Platform K heterogeneous processor types: AMD, INTEL, … Proce ssor1 Proce ssor2 K heterogeneous physical processor types At most S speeds per processor Logical Processors Distinct physical processors have different speed levels Processor speeds dynamically adjustable 19

Platform - Continued  Platform consists of M processor “slots” to be filled  Need to build platform with the available processors. M Logical processors (physical processor/speed) pairs 20

Tasks look like this Task1 Task2 21

Prior attempts related to our work  Closest to our efforts: C.-Y. Yang, J.-J. Chen, T.-W. Kuo, and L. Thiele. An approximation scheme for energy-efficient scheduling of real-time tasks in heterogeneous multiprocessor systems. In DATE, pages 694–699, 2009  Energy Model is weak  utilization scales linearly with speed  Cannot capture holistic energy expenditure (devices)  Interpolates speed ! Might get very inaccurate 22

Linear Scaling of Utilization: I/O bound Tasks 23 Our work Relax all previous assumptions Completely discrete, arbitrarily structured setting f t (cpu) 2f t/2 (I/O)t/2 (cpu) t/2 t/4 Task1 Task2

Worst Case Execution Cycles are NOT Constant with respect to speed ! I/O bound vs. CPU Bound Tasks Our work Relax all previous assumptions Completely discrete, arbitrarily structured setting 24

Forget about Uniprocessor task scheduling !  Earliest Deadline First  Utilizes processor up to 100%  Tasks are matched only to processors on which they are defined Capacity = 1 ¾ ½ 3/7 1/4 25

Energy Model  Dynamic power consumption per (processor/speed)  Static power consumption per physical processor (independent of speed)  Idle power: when processor in dormant mode 26 Service Level Agreement The service will provide a response of within 300ms for 99.9% of its request for a peak client load of 500 requests per second

Tasks have infinite job invocations, Is Energy finite ? Yes, when unifying the energy measurement period 27

Objectives Overall Energy Expenditure minimized Quality of Service Score achieved 28

Offline Dynamic Program  Enumerate platform configurations  Iterate through tasks  Assign tasks to processors  Build state space per task from states of previous task  The solution is the state of last task 29

State space  Each task maintains a set of states  State is a partial feasible schedule up to current task across all processors. T1 T4 T2 T3 T5 T8 T6 T7 T1 T4 T2 T3 T5 T8 T6 T7 T8 30

Trimming the state space How to bring down the size of the state space to polynomial, while controlling the error propagation ? 31

Measure of nearness: Delta-close states 32

State Space partitioned into -Boxes 33

Choose the dominating state in each -box Dominating: has maximum Reward value 34

Results Quality of Solution Running Time 35

Approximation Schemes vs. Heuristics Approximation Algorithms  Guaranteed worst case bounds on quality of solution  Running time might be too large to be used in practice Heuristics  Stochastic Local Search, greedy, …  Hard to design “good” ones  Hard to obtain guarantees on quality of returned solution  Might converge quickly, depending on input 36

Heuristics for Bin Packing 37

Heuristics were hard to analyze  Pack the task with the smallest Go Greedy ! 38

Was it Fun? Thank you 39

Mathematical Program 40