Speed Scaling to Manage Energy and Temperature Nikhil Bansal (IBM Research) Tracy Kimbrel (IBM) and Kirk Pruhs (Univ. of Pittsburgh)

Slides:



Advertisements
Similar presentations
On allocations that maximize fairness Uriel Feige Microsoft Research and Weizmann Institute.
Advertisements

Machine scheduling Job 1Job 3 Job 4 Job 5Machine 1 Machine 2 time 0C max Job 2.
1 SOFSEM 2007 Weighted Nearest Neighbor Algorithms for the Graph Exploration Problem on Cycles Eiji Miyano Kyushu Institute of Technology, Japan Joint.
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.
THE UNIVERSITY of TEHRAN Mitra Nasri Sanjoy Baruah Gerhard Fohler Mehdi Kargahi October 2014.
Approximation Algorithms for Capacitated Set Cover Ravishankar Krishnaswamy (joint work with Nikhil Bansal and Barna Saha)
1 Learning with continuous experts using Drifting Games work with Robert E. Schapire Princeton University work with Robert E. Schapire Princeton University.
Online Scheduling with Known Arrival Times Nicholas G Hall (Ohio State University) Marc E Posner (Ohio State University) Chris N Potts (University of Southampton)
Princeton University COS 423 Theory of Algorithms Spring 2001 Kevin Wayne Competitive Analysis.
Greedy Algorithms Basic idea Connection to dynamic programming
Greedy Algorithms Basic idea Connection to dynamic programming Proof Techniques.
Power Management Algorithms An effort to minimize Processor Temperature and Energy Consumption.
Basic Feasible Solutions: Recap MS&E 211. WILL FOLLOW A CELEBRATED INTELLECTUAL TEACHING TRADITION.
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
1 Better Scalable Algorithms for Broadcast Scheduling Ravishankar Krishnaswamy Carnegie Mellon University Joint work with Nikhil Bansal and Viswanath Nagarajan.
MAE 552 Heuristic Optimization Instructor: John Eddy Lecture #33 4/22/02 Fully Stressed Design.
MIT and James Orlin © Nonlinear Programming Theory.
1 Ecole Polytechnque, Nov 7, 2007 Scheduling Unit Jobs to Maximize Throughput Jobs:  all have processing time (length) = 1  release time r j  deadline.
Towards a Theory of Cache-Efficient Algorithms Summary for the seminar: Analysis of algorithms in hierarchical memory – Spring 2004 by Gala Golan.
Energy-Efficient Rate Scheduling in Wireless Links A Geometric Approach Yashar Ganjali High Performance Networking Group Stanford University
Online Oblivious Routing Nikhil Bansal, Avrim Blum, Shuchi Chawla & Adam Meyerson Carnegie Mellon University 6/7/2003.
1 Worst-Case Equilibria Elias Koutsoupias and Christos Papadimitriou Proceedings of the 16th Annual Symposium on Theoretical Aspects of Computer Science.
1 Scheduling on Heterogeneous Machines: Minimize Total Energy + Flowtime Ravishankar Krishnaswamy Carnegie Mellon University Joint work with Anupam Gupta.
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.
1 Scheduling Jobs with Varying Parallelizability Ravishankar Krishnaswamy Carnegie Mellon University.
Algorithmic problems in Scheduling jobs on Variable-speed processors Frances Yao City University of Hong Kong.
10/31/02CSE Greedy Algorithms CSE Algorithms Greedy Algorithms.
Minimizing Flow Time on Multiple Machines Nikhil Bansal IBM Research, T.J. Watson.
Online Function Tracking with Generalized Penalties Marcin Bieńkowski Institute of Computer Science, University of Wrocław, Poland Stefan Schmid Deutsche.
Energy, Energy, Energy  Worldwide efforts to reduce energy consumption  People can conserve. Large percentage savings possible, but each individual has.
10/31/02CSE Greedy Algorithms CSE Algorithms Greedy Algorithms.
Minimizing Cache Usage in Paging Alejandro Salinger University of Waterloo Joint work with Alex López-Ortiz.
1/24 Algorithms for Generalized Caching Nikhil Bansal IBM Research Niv Buchbinder Open Univ. Israel Seffi Naor Technion.
Approximation Algorithms for Stochastic Combinatorial Optimization Part I: Multistage problems Anupam Gupta Carnegie Mellon University.
Primal-Dual Meets Local Search: Approximating MST’s with Non-uniform Degree Bounds Author: Jochen Könemann R. Ravi From CMU CS 3150 Presentation by Dan.
On the Construction of Data Aggregation Tree with Minimum Energy Cost in Wireless Sensor Networks: NP-Completeness and Approximation Algorithms National.
Speed Scaling To Manage Temperature Nikhil Bansal IBM T.J. Watson Kirk Pruhs University of Pittsburgh.
Online Oblivious Routing Nikhil Bansal, Avrim Blum, Shuchi Chawla & Adam Meyerson Carnegie Mellon University 6/7/2003.
Bold Stroke January 13, 2003 Advanced Algorithms CS 539/441 OR In Search Of Efficient General Solutions Joe Hoffert
Energy-Efficient Soft Real-Time CPU Scheduling for Mobile Multimedia Systems Wanghong Yuan, Klara Nahrstedt Department of Computer Science University of.
Online Power Saving Strategies Sandy Irani Joint work with Rajesh Gupta, Sandeep Shukla, Dinesh Ramanathan.
9/8/10 A. Smith; based on slides by E. Demaine, C. Leiserson, S. Raskhodnikova, K. Wayne Adam Smith Algorithm Design and Analysis L ECTURE 6 Greedy Algorithms.
Practical Schedulability Analysis for Generalized Sporadic Tasks in Distributed Real-Time Systems Yuanfang Zhang 1, Donald K. Krecker 2, Christopher Gill.
1 Pruhs, Woeginger, Uthaisombut 2004  Qos Objective: Minimize total flow time  Flow time f i of a job i is completion time C i – r i  Power Objective:
1 Server Scheduling in the L p norm Nikhil Bansal (CMU) Kirk Pruhs (Univ. of Pittsburgh)
3.4 Linear Programming p Optimization - Finding the minimum or maximum value of some quantity. Linear programming is a form of optimization where.
A Maiden Analysis of Longest Wait First Jeff Edmonds York University Kirk Pruhs University of Pittsburgh.
Energy-Efficient Sensor Network Design Subject to Complete Coverage and Discrimination Constraints Frank Y. S. Lin, P. L. Chiu IM, NTU SECON 2005 Presenter:
1 Chapter 5-1 Greedy Algorithms Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
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.
1 Approximation Algorithms for Generalized Scheduling Problems Ravishankar Krishnaswamy Carnegie Mellon University joint work with Nikhil Bansal, Anupam.
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.
Common Intersection of Half-Planes in R 2 2 PROBLEM (Common Intersection of half- planes in R 2 ) Given n half-planes H 1, H 2,..., H n in R 2 compute.
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Approximation Algorithms based on linear programming.
Scheduling Parallel DAG Jobs to Minimize the Average Flow Time K. Agrawal, J. Li, K. Lu, B. Moseley.
3.4 Linear Programming p Optimization - Finding the minimum or maximum value of some quantity. Linear programming is a form of optimization where.
Lecture 6: Real-Time Scheduling
Deadline Scheduling and Heavy tail distributionS
On Scheduling in Map-Reduce and Flow-Shops
Increasing and Decreasing Functions and the First Derivative Test
3.2 Linear Programming 3 Credits AS
Linear Programming.
8.4 Linear Programming p
Compute convex lower bounding function and optimize it instead!
University of Pittsburgh
University of Pittsburgh
1.6 Linear Programming Pg. 30.
Non-clairvoyant Precedence Constrained Scheduling
Presentation transcript:

Speed Scaling to Manage Energy and Temperature Nikhil Bansal (IBM Research) Tracy Kimbrel (IBM) and Kirk Pruhs (Univ. of Pittsburgh)

2

3 Reasons for Power Management 1) Optimize Energy: Power(t) ¼ c ¢ speed(t) 3 Energy =  t power(t) Power (Pentium 4): GHz, 1.8V GHz, 1.0V 2) Control Temperature

4 Energy Problem [ Yao, Demers, Shenker 96] Jobs arrive over time: Job i: arrives at r i, work w i to do by deadline d i At time t: Speed s(t) requires power s(t) p, p>1 Goal: Minimize total energy =  t s(t) p, subject to: Finish each job by its deadline. 012 Area = Work of a job Work = Cost = 2 p + 2 p speed 2

5 Energy Problem [ Yao, Demers, Shenker 96] Jobs arrive over time: Job i: arrives at r i, work w i to do by deadline d i At time t: Speed s(t) requires power s(t) p, p>1 Goal: Minimize total energy =  t s(t) p, subject to: Finish each job by its deadline. 012 Area = Work of a job Work = 2 Cost = 1 p + 3 p 012 speed 1 speed 3

6 Energy Problem [ Yao, Demers, Shenker 96] Jobs arrive over time: Job i: arrives at r i, work w i to do by deadline d i At time t: Speed s(t) requires power s(t) p, p>1 Goal: Minimize total energy =  t s(t) p, subject to: Finish each job by its deadline. Note: 1) Speed allowed to be arbitrarily fast. 2) Which job: Earliest Deadline First (EDF) [Main issue: How fast to work?]

7 Energy Problem (Lower Bound) No 2 o(p) competitive algorithm possible 012 Work = 2 Online Cost = 2 p Offline Cost = 1 p + 1 p Ratio ¼ (2) p /2 = O(2 p )

8 Energy Problem (Lower Bound) No 2 o(p) competitive algorithm possible 012 Work = Online Cost = 1 p + 3 p Offline Cost = 2 p + 2 p Ratio ¼ (3/2) p Work = 2

9 Previous Work [Yao Demers Shenker 96] Optimum Offline Algorithm Average: Work on each job independently at rate w i /(d i -r i ) Competitive ratio 2 [p p,(2p) p ] [complicated spectral analysis] Open: Is there an O(c p ) competitive algorithm ? Example: W i =1, r i =0, d i = i Opt = … + 1 = n Average ¼  k log (n/k) p 1 1/2 1/3 1/n

10 Previous Work YDS propose another algorithm Opt Available (OA) Work at minimum feasible speed Speed(t) = max x (Unfinished Work w/ deadline <= t+x) / x Open: Competitive ratio of OA ( YDS show that >= p p )? Example: W i =1, r i =0, d i = i t=0 OA optimal on this example 1 1/2 1/3 1/n

11 Our results for Energy Problem 1) Analyze OA, show (tight) competitive ratio of p p [elementary potential function based proof] 2) Give a 8 e p competitive online algorithm. 3) Exponent e above is tight. [If p>>1, c.r. determined by max speed, any online algorithm for max speed has c.r. >= e] 4) Tight e competitive algorithm for max speed.

12 Our results for Energy Problem 1) Analyze OA, show (tight) competitive ratio of p p [elementary potential function based proof] 2) Give a 8 e p competitive online algorithm. 3) Exponent e above is tight. [If p>>1, c.r. determined by max speed, any online algorithm for max speed has c.r. >= e] 4) Tight e competitive algorithm for max speed.

13 Opt Available (OA) OA: Work at minimum feasible speed Suggests: Be a bit more aggressive Perhaps work twice the minimum feasible speed? Optimum OA t=0 t=n speed = 1/n t=1 Too fast towards the end. Not c p competitive

14 Main Algorithm tt+x t- (e-1)x w(t,x) : Work arrived by time t, and Totally contained in the interval (t – (e-1)x, t+x) Algorithm: Speed(t) = e ¢ max x w(t,x) / (ex) = max x w(t,x)/x Intuition: If W work totally contained in [a,b], then Opt rate ¸ W/(a-b) on average during [a,b]

15 Main Algorithm tt+x t- (e-1)x w(t,x) : Work arrived by time t, and Totally contained in the interval (t – (e-1)x, t+x) Algorithm: Speed(t) = e ¢ max x w(t,x) / (ex) = max x w(t,x)/x e competitive for max-speed 2 (p/(p-1)) p e p competitive for energy. Bad for small p. Choose best of OA and this: min (p p, 2(p/(p-1)) p e p ) · 8 e p

16 Main Algorithm tt+x t- (e-1)x w(t,x) : Work arrived by time t, and Totally contained in the interval (t – (e-1)x, t+x) Algorithm: Speed(t) = e ¢ max x w(t,x) / (ex) = max x w(t,x)/x Need to show: 1)Feasibility : All jobs finish by their deadlines 2)Bound the energy

17 Bounding the energy Intuition: If W work totally contained in [a,b]. During [a,b], Opt rate >= W/(a-b) on average Problems: 1) Locally very different speeds for online and Opt. 2) How does max x w(t,x)/x behave Non-trivial inequalities due to Hardy and Littlewood(1920’s) Competitive ratio of 2 (p/(p-1)) p e p

18 Temperature Problem Fourier’s Law of Heat Conduction: dT(t)/dt = a P(t) – b (T(t) – T a ) (heating term) (cooling term) T = Temperature t = time P = supplied power T a = ambient temperature (assume stays constant) Rescale so that T a = 0 Basic Equation: dT/dt = a P - b T Problem: Finish all jobs while minimizing T max

19 Temperature Exact offline algorithm: Convex Program W i,j : work done on job j in interval i. T i, T i+1 : Temp. at beginning and end of Interval i. Constraints: Each job j receives w j work in total Temperature always below T max t i+1 titi Interval i

20 MaxW Subproblem Start: time t 0, temp T 0 End: time t 1, temp T 1 What is maximum work you can do? Constraint: Temperature remains ≤ T max ? T max t 0 =0t1t1 time T0T0 T1T1 ? ? ? Temp Calculus of Variations Work = s t speed(t) dt = s t Power(t) 1/3 dt = s t (dT/dt + bT/a) 1/3 dt

21 MaxW w/ Boundary Constraint T ≤ T max T max t0t0 t1t1 time T0T0 T1T1 Euler Curve T = T max αβ T = c exp( -bt) + d exp( -3bt/2) Show convexity and solve using Ellipsoid Algorithm Can compute subgradient of MaxW(t i,t i+1,T i,T i+1 )

22 Conclusions Subsequent Work: O(1) competitive algorithm for T max in the online setting. Future Directions: Tight competitive ratio for Energy problem. Other bicriteria algorithms that trade off energy vs. quality of schedule.

23 Thank You.

24 Feasibility Suppose a deadline first missed at time d. Online always working till time d. EDF => all deadlines <= d max x w(t,x)) /x ¸ w(t,d-t)/(d-t) Proof: Show that total work that arrives during [0,d] with deadline · d. t t+x t- (e-1)x