Algorithmic problems in Scheduling jobs on Variable-speed processors Frances Yao City University of Hong Kong.

Slides:



Advertisements
Similar presentations
Energy-efficient Task Scheduling in Heterogeneous Environment 2013/10/25.
Advertisements

Minimum Clique Partition Problem with Constrained Weight for Interval Graphs Jianping Li Department of Mathematics Yunnan University Jointed by M.X. Chen.
S YSTEM -W IDE E NERGY M ANAGEMENT FOR R EAL -T IME T ASKS : L OWER B OUND AND A PPROXIMATION Xiliang Zhong and Cheng-Zhong Xu ICCAD 2006, ACM Trans. on.
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.
Explicit Preemption Placement for Real- Time Conditional Code via Graph Grammars and Dynamic Programming Bo Peng, Nathan Fisher, and Marko Bertogna Department.
Fast Algorithms For Hierarchical Range Histogram Constructions
Advanced Topics in Algorithms and Data Structures Lecture 7.2, page 1 Merging two upper hulls Suppose, UH ( S 2 ) has s points given in an array according.
Introduction and Background  Power: A Critical Dimension for Embedded Systems  Dynamic power dominates; static /leakage power increases faster  Common.
Online Scheduling with Known Arrival Times Nicholas G Hall (Ohio State University) Marc E Posner (Ohio State University) Chris N Potts (University of Southampton)
RUN: Optimal Multiprocessor Real-Time Scheduling via Reduction to Uniprocessor Paul Regnier † George Lima † Ernesto Massa † Greg Levin ‡ Scott Brandt ‡
Power Management Algorithms An effort to minimize Processor Temperature and Energy Consumption.
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.
Aleksandra Tešanović Low Power/Energy Scheduling for Real-Time Systems Aleksandra Tešanović Real-Time Systems Laboratory Department of Computer and Information.
Energy-Aware Modeling and Scheduling of Real-Time Tasks for Dynamic Voltage Scaling Xiliang Zhong and Cheng-Zhong Xu Dept. of Electrical & Computer Engg.
Energy-Efficient Rate Scheduling in Wireless Links A Geometric Approach Yashar Ganjali High Performance Networking Group Stanford University
System-Wide Energy Minimization for Real-Time Tasks: Lower Bound and Approximation Xiliang Zhong and Cheng-Zhong Xu Dept. of Electrical & Computer Engg.
Job Scheduling Lecture 19: March 19. Job Scheduling: Unrelated Multiple Machines There are n jobs, each job has: a processing time p(i,j) (the time to.
Online Auctions in IaaS Clouds: Welfare and Profit Maximization with Server Costs Xiaoxi Zhang 1, Zhiyi Huang 1, Chuan Wu 1, Zongpeng Li 2, Francis C.M.
Embedded System Design Framework for Minimizing Code Size and Guaranteeing Real-Time Requirements Insik Shin, Insup Lee, & Sang Lyul Min CIS, Penn, USACSE,
A Model for Minimizing Active Processor Time Jessica Chang Joint work with Hal Gabow and Samir Khuller.
Presented by Justin Chester.  Sensor Networks ◦ Resource Constraints ◦ Multimedia Support  Mobility ◦ Path Planning & Tour Planning ◦ Optimization &
Energy, Energy, Energy  Worldwide efforts to reduce energy consumption  People can conserve. Large percentage savings possible, but each individual has.
Task Alloc. In Dist. Embed. Systems Murat Semerci A.Yasin Çitkaya CMPE 511 COMPUTER ARCHITECTURE.
Control and Optimization Meet the Smart Power Grid: Scheduling of Power Demands for Optimal Energy Management Authors: Iordanis Koutsopoulos Leandros Tassiulas.
Minimizing Response Time Implication in DVS Scheduling for Low Power Embedded Systems Sharvari Joshi Veronica Eyo.
VOLTAGE SCHEDULING HEURISTIC for REAL-TIME TASK GRAPHS D. Roychowdhury, I. Koren, C. M. Krishna University of Massachusetts, Amherst Y.-H. Lee Arizona.
OPTIMAL SERVER PROVISIONING AND FREQUENCY ADJUSTMENT IN SERVER CLUSTERS Presented by: Xinying Zheng 09/13/ XINYING ZHENG, YU CAI MICHIGAN TECHNOLOGICAL.
Baoxian Zhao Hakan Aydin Dakai Zhu Computer Science Department Computer Science Department George Mason University University of Texas at San Antonio DAC.
THE STABILITY BOX IN INTERVAL DATA FOR MINIMIZING THE SUM OF WEIGHTED COMPLETION TIMES Yuri N. Sotskov Natalja G. Egorova United Institute of Informatics.
Stochastic Algorithms Some of the fastest known algorithms for certain tasks rely on chance Stochastic/Randomized Algorithms Two common variations – Monte.
Computer Science Department University of Pittsburgh 1 Evaluating a DVS Scheme for Real-Time Embedded Systems Ruibin Xu, Daniel Mossé and Rami Melhem.
Energy-Efficient Soft Real-Time CPU Scheduling for Mobile Multimedia Systems Wanghong Yuan, Klara Nahrstedt Department of Computer Science University of.
Optimal Scheduling of File Transfers with Divisible Sizes on Multiple Disjoint Paths Mugurel Ionut Andreica Polytechnic University of Bucharest Computer.
Speed Scaling to Manage Energy and Temperature Nikhil Bansal (IBM Research) Tracy Kimbrel (IBM) and Kirk Pruhs (Univ. of Pittsburgh)
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Low Power Design for Real-Time Systems Low power (energy) consumption is a key design for embedded systems Battery’s life during operation Reliability.
Efficient and Scalable Computation of the Energy and Makespan Pareto Front for Heterogeneous Computing Systems Kyle M. Tarplee 1, Ryan Friese 1, Anthony.
1 EE5900 Advanced Embedded System For Smart Infrastructure Energy Efficient Scheduling.
Online Power Saving Strategies Sandy Irani Joint work with Rajesh Gupta, Sandeep Shukla, Dinesh Ramanathan.
1 Distributed Energy-Efficient Scheduling for Data-Intensive Applications with Deadline Constraints on Data Grids Cong Liu and Xiao Qin Auburn University.
Company name KUAS HPDS A Realistic Variable Voltage Scheduling Model for Real-Time Applications ICCAD Proceedings of the 2002 IEEE/ACM international conference.
A Node and Load Allocation Algorithm for Resilient CPSs under Energy-Exhaustion Attack Tam Chantem and Ryan M. Gerdes Electrical and Computer Engineering.
Doshisha Univ., Kyoto, Japan CEC2003 Adaptive Temperature Schedule Determined by Genetic Algorithm for Parallel Simulated Annealing Doshisha University,
Resource Mapping and Scheduling for Heterogeneous Network Processor Systems Liang Yang, Tushar Gohad, Pavel Ghosh, Devesh Sinha, Arunabha Sen and Andrea.
FORS 8450 Advanced Forest Planning Lecture 11 Tabu Search.
Managing Server Energy and Operational Costs Chen, Das, Qin, Sivasubramaniam, Wang, Gautam (Penn State) Sigmetrics 2005.
Hard Real-Time Scheduling for Low- Energy Using Stochastic Data and DVS Processors Flavius Gruian Department of Computer Science, Lund University Box 118.
Power and Control in Networked Sensors E. Jason Riedy and Robert Szewczyk Presenter: Fayun Luo.
Jennifer Campbell November 30,  Problem Statement and Motivation  Analysis of previous work  Simple - competitive strategy  Near optimal deterministic.
Special Class on Real-Time Systems
ECE555 Topic Presentation Energy-efficient real-time scheduling Xing Fu 20 September 2008 Acknowledge Dr. Jian-Jia Chen from ETH providing PPT Slides for.
Minimizing Response time in Broadcast Scheduling Nikhil Bansal Don Coppersmith and Maxim Sviridenko.
Multimedia Computing and Networking Jan Reduced Energy Decoding of MPEG Streams Malena Mesarina, HP Labs/UCLA CS Dept Yoshio Turner, HP Labs.
Workload Clustering for Increasing Energy Savings on Embedded MPSoCs S. H. K. Narayanan, O. Ozturk, M. Kandemir, M. Karakoy.
Problems in Combinatorial Optimization. Linear Programming.
11 -1 Chapter 12 On-Line Algorithms On-Line Algorithms On-line algorithms are used to solve on-line problems. The disk scheduling problem The requests.
Yingchao ZHAO, Caritas Institute of Higher Education Xiangtong QI, HKUST Minming LI, City University of Hong Kong.
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 32 – Multimedia OS Klara Nahrstedt Spring 2010.
CS203 – Advanced Computer Architecture
1 Chapter 5 Branch-and-bound Framework and Its Applications.
Memory Segmentation to Exploit Sleep Mode Operation
Jacob R. Lorch Microsoft Research
Flavius Gruian < >
Dynamic Voltage Scaling
Jian-Jia Chen and Tei-Wei Kuo
Minimizing the Aggregate Movements for Interval Coverage
University of Pittsburgh
Alan Kuhnle*, Victoria G. Crawford, and My T. Thai
Presentation transcript:

Algorithmic problems in Scheduling jobs on Variable-speed processors Frances Yao City University of Hong Kong

Background Energy and heat Workstation and server draw energy and produce heat Portable electronic devices rely on battery Analysis from Intel: 25,000-square-foot server farm with approximately 8,000 servers consumes 2 megawatts —— 25% of the total cost for such a facility

Background Financial Times (2000): Information Technology (IT) consumes about 8% of energy in US exponential growth  50% of the energy consumption Some techniques: Add several “inactive” states Processor can be set at one of the states if idle Extra energy is required to bring the processor back to the normal state

DVS Technique (dynamic voltage scaling) Variable Voltage Processor Processor with multiple speeds Voltage is proportional to speed Power function s p ( p >1) Current and future DVS technology Intel’s SpeedStep — 2 speeds AMD’s PowerNow — 9 speeds Intel’s Foxton technology — 64 speeds Operating systems can save energy by scheduling jobs wisely -- executing as slowly as possible

DVS Scheduling Model ([Yao, Demers and Shenker (1995)]) A set of n jobs a k : arrival time b k : deadline R k : required CPU cycles Preemptive execution Schedule S specifies: 0≤s(t)< which job is executed at time t Cost What’s the optimal (Min-Energy) schedule Good characterization  efficient computation Benchmark for heuristics speed time bkbk akak RkRk t s area=require d cycles job k

The Basics Each job will be executed at one uniform speed in optimal schedule Convexity: Optimal schedule needs at most n different speeds the flatter the better Strategy: Determine peak speed s *, apply iterative procedure to find 2nd peak speed etc.

Optimal Schedule What’s the peak speed in the optimal schedule? defines the speed lower bound over any I s* defines peak speed and critical interval I* s* over critical interval is feasible Extract critical interval, update jobs and repeat I* time speed

Developments 1995: Model and characterization of optimal schedule O(n 3 ) 2005: Optimal schedule in the discrete model O(n 3 )  O(nlogn) 2006: New scheduling algorithm for the continuous model O(n 3 )  O(n 2 logn) 1. Yao F, Demers A and Shenker S. A Scheduling Model for Reduced CPU Energy. FOCS 1995, Minming Li, Frances F. Yao. An Efficient Algorithm for Computing Optimal Discrete Voltage Schedules. SIAM J. Comput. 2005, 35(3): Minming Li, Andrew C. Yao, Frances F. Yao. Discrete and Continuous Min-Energy Schedules for Variable Voltage Processors. Proceedings of the National Academy of Sciences of the USA, 2006(103):

Scheduling Model (Discrete) Discrete speed levels Discrete Optimal [Kwon and Kim (2002)]: Compute optimal schedule for the continuous model Adjust each job’s optimal speed to adjacent levels sisi s s i+1

Can we obtain discrete optimal without computing continuous optimal? For example, what if only two speed levels are available? Strategy: Partition sufficient to do repeated Bi-partition Two-Level scheduling Two-Level Scheduling

Bi-partition (relative to some speed s) Let s>0 be given for job set J Can we divide jobs into J high and J low correctly? Identify segments of T high and T low s T high T low S opt (t) time speed

Bi-partition Main tool: s-schedule an EDF schedule with constant speed s Gaps Tight deadlines Tight arrival times J(T low )=J low J(T high )=J high s T high T low Gap

Bi-partition (Algorithm Outline) Gaps always exist (and only exist) in T low Expand a gap suitably to identify a connected component of T low Delete all jobs intersecting with this component New gaps must exist

Example: Bi-partition Algorithm T low gap

Optimal Discrete Schedule Strategy Partition J into J 1,J 2,…J d with Bi-partition Find Two-Level schedule for J i with s i &s i+1

Optimal Discrete Schedule Strategy Partition J into J 1,J 2,…J d with Bi-partition Find Two-Level schedule for J i with s i & s i+1

Two-Level Scheduling Given job set J and s 1 >s 2 satisfying Optimal speeds of jobs in J are between s 1 & s 2 Compute an optimal ( s 1, s 2 )- schedule Observation Any feasible (s 1,s 2 )-schedule is optimal How to obtain a feasible (s 1,s 2 )-schedule ? s1s1 s2s2

Two-Level Scheduling (Algorithm Outline) Compute s 1 -schedule and s 2 -schedule Process jobs reversely by deadlines j n, j n-1, … j 1 Use up all s 2 -execution time of each job Take extra time (if needed) from its s 1 -execution time (all available) 1…i i+1…n disjoint i+1…n 1…i s2s2 s1s1

Correctness and Complexity Every iteration preserves the existence of feasible schedule for the remaining jobs No idle time is left in the end Total intervals of the final schedule: Intersection of sorted lists of s 1 -schedule and s 2 - schedule blocks (can be pre-computed) At most one extra interval is introduced when scheduling every job O(n log n)

Optimal Discrete Schedule Strategy Partition J into J 1,J 2,…J d with Bi-partition O(d nlogn) Find Two-Level schedule for J i with s i and s i+1 O(nlogn) Total time: O(d nlogn)

Lower Bound Any deterministic algorithm for computing a min-energy Discrete Voltage Schedule with d>1 voltage levels will require A linear reduction from Integer Element Uniqueness (IEU) to this problem

Interesting By-product: Original Method for Continuous Optimal: Compute iteratively peak speed via convex program New Method: Calculate successive approximations to the entire optimal speed curve Complexity: Continuous ModelDiscrete Model

Optimal Continuous Schedule s=avr(J) time speed

Online Heuristics Competitive ratio AVR (Average Rate)  Lower bound 4 and upper bound 8 [Yao, Demers and Shenker (1995)]  Tight bound 4 for some special job sets [Li, Liu and Yao (2005)]  Can be adapted to the discrete model with competitive ratio 2(k+1) 2 /k, where k =max ratio of two adjacent speeds OPA (Optimal Available)  Tight bound 4 [Bansal, Kimbrel and Pruhs (2004)] AVR(t) t

AVR for Discrete Model Discrete Speed Levels: k=max {s i /s i+1 } Adjustment: change speed s to its adjacent speed levels AVRD off : off-line adjustment of AVR AVRD on : on-line adjustment of AVR (running at higher speed first)

AVR for Discrete Model AVRD on AVRD off (knows the future) s s1s1 s2s2 s s1s1 s2s2 tt It can be proved that E(AVRD on )≤E(AVRD off ) E(AVRD off ) ≤ 2(k+1) 2 /k ▪ E(AVR) True for a class of online heuristics

Analysis of OPA [Bansal, Kimbrel and Pruhs (2004)] Defining a potential function φ: Let Δφ(t) denote the change in the potential due to a job arrival at time t. Then Δφ(t)≤0 At any time t between arrivals, s α opa (t) - α α s α opt (t) + dφ(t)/dt ≤0 φ(t 0 )=φ(t )= 0

Temperature Model The rate of cooling follows Fourier’s law: The rate of cooling is proportional to the difference in temperature between the object and the ambient environmental temperature First order approximation T’(t)=aP(t)-bT(t) P(t): supplied power at time t

Throughput (under max speed constraint) Throughput = total workload of those jobs finished by their deadlines Max Throughput: NP-hard Approx maximizing throughput while Approx minimizing energy An online algorithm [Chan et al. (SODA 2007)]  14-competitive in throughput  68-competitive in energy An offline algorithm [Li et al. 2007]  3-approx in throughput & 4-approx in energy

Summary Job scheduling for variable speed processor Optimal discrete DVS schedule: O(n logn) Multi-level partition Two-level schedule Optimal continuous DVS schedule: O(n 2 logn) Find successive approx to optimal speed curve Online heuristics Continuous ModelDiscrete Model

Conclusion Many open problems in DVS scheduling: throughput, job switches (online & offline) etc. Algorithmic techniques needed to enable more efficient use of energy in various domains: variable voltage processors wireless ad hoc networks  Suitable modeling to capture the essence  Specific problems & solutions  Unifying techniques for multiple models  Algorithmic foundations for new paradigms

Thank you!