Maryam Elahi Fairness in Speed Scaling Design Joint work with: Carey Williamson and Philipp Woelfel.

Slides:



Advertisements
Similar presentations
Effects and Implications of File Size/Service Time Correlation on Web Server Scheduling Policies Dong Lu* + Peter Dinda* Yi Qiao* Huanyuan Sheng* *Northwestern.
Advertisements

Energy-efficient Task Scheduling in Heterogeneous Environment 2013/10/25.
CPU Scheduling Questions answered in this lecture: What is scheduling vs. allocation? What is preemptive vs. non-preemptive scheduling? What are FCFS,
Scheduling. Main Points Scheduling policy: what to do next, when there are multiple threads ready to run – Or multiple packets to send, or web requests.
1 Size-Based Scheduling Policies with Inaccurate Scheduling Information Dong Lu *, Huanyuan Sheng +, Peter A. Dinda * * Prescience Lab, Dept. of Computer.
A Cyber-Physical Systems Approach to Energy Management in Data Centers Presented by Chen He Adopted form the paper authors.
Ceng Operating Systems Chapter 2.2 : Process Scheduling Process concept  Process scheduling Interprocess communication Deadlocks Threads.
Simulation Evaluation of Hybrid SRPT Policies
Web Server Request Scheduling Mingwei Gong Department of Computer Science University of Calgary November 16, 2004.
Day 25 Uniprocessor scheduling. Algorithm: Selection function Selection function – which process among ready processes to select. w – time spent in system,
CS 3013 & CS 502 Summer 2006 Scheduling1 The art and science of allocating the CPU and other resources to processes.
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.
Effects and Implications of File Size/Service Time Correlation on Web Server Scheduling Policies Dong Lu* + Peter Dinda* Yi Qiao* Huanyuan Sheng* *Northwestern.
Looking at the Server-side of P2P Systems Yi Qiao, Dong Lu, Fabian E. Bustamante and Peter A. Dinda Department of Computer Science Northwestern University.
1 Connection Scheduling in Web Servers Mor Harchol-Balter School of Computer Science Carnegie Mellon
Wk 2 – Scheduling 1 CS502 Spring 2006 Scheduling The art and science of allocating the CPU and other resources to processes.
Carnegie Mellon University Computer Science Department 1 CLASSIFYING SCHEDULING POLICIES WITH RESPECT TO HIGHER MOMENTS OF CONDITIONAL RESPONSE TIME Adam.
Job scheduling Queue discipline.
1 Lecture 10: Uniprocessor Scheduling. 2 CPU Scheduling n The problem: scheduling the usage of a single processor among all the existing processes in.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts, Amherst Operating Systems CMPSCI 377 Lecture.
1Chapter 05, Fall 2008 CPU Scheduling The CPU scheduler (sometimes called the dispatcher or short-term scheduler): Selects a process from the ready queue.
Energy, Energy, Energy  Worldwide efforts to reduce energy consumption  People can conserve. Large percentage savings possible, but each individual has.
RAQFM – a Resource Allocation Queueing Fairness Measure David Raz School of Computer Science, Tel Aviv University Jointly with Hanoch Levy, Tel Aviv University.
Efficient Scheduling of Heterogeneous Continuous Queries Mohamed A. Sharaf Panos K. Chrysanthis Alexandros Labrinidis Kirk Pruhs Advanced Data Management.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-3 CPU Scheduling Department of Computer Science and Software Engineering.
Operating System Concepts and Techniques Lecture 5 Scheduling-1 M. Naghibzadeh Reference M. Naghibzadeh, Operating System Concepts and Techniques, First.
OPERATING SYSTEMS CPU SCHEDULING.  Introduction to CPU scheduling Introduction to CPU scheduling  Dispatcher Dispatcher  Terms used in CPU scheduling.
Chapter 9 Uniprocessor Scheduling Spring, 2011 School of Computer Science & Engineering Chung-Ang University.
1 Mor Harchol-Balter Carnegie Mellon University Computer Science Heavy Tails: Performance Models & Scheduling Disciplines.
OPTIMAL SERVER PROVISIONING AND FREQUENCY ADJUSTMENT IN SERVER CLUSTERS Presented by: Xinying Zheng 09/13/ XINYING ZHENG, YU CAI MICHIGAN TECHNOLOGICAL.
1 Scheduling Processes. 2 Processes Each process has state, that includes its text and data, procedure call stack, etc. This state resides in memory.
Quantifying the Sub-optimality of Non-preemptive Real-time Scheduling Abhilash Thekkilakattil, Radu Dobrin and Sasikumar Punnekkat.
1 Server Scheduling in the L p norm Nikhil Bansal (CMU) Kirk Pruhs (Univ. of Pittsburgh)
CS 3150 Presentation 1 Ihsan Ayyub Qazi “Achievable sojourn times in M/M/1 and GI/GI/1 systems: A Comparison between SRPT and Blind Policies” A(t), Q(t)Q(t)
A Maiden Analysis of Longest Wait First Jeff Edmonds York University Kirk Pruhs University of Pittsburgh.
CPU Scheduling CSCI 444/544 Operating Systems Fall 2008.
1 Scheduling The part of the OS that makes the choice of which process to run next is called the scheduler and the algorithm it uses is called the scheduling.
1 The Effect of Heavy-Tailed Job Size Distributions on System Design Mor Harchol-Balter MIT Laboratory for Computer Science.
1 Process Scheduling in Multiprocessor and Multithreaded Systems Matt Davis CS5354/7/2003.
An Optimal Service Ordering for a World Wide Web Server A Presentation for the Fifth INFORMS Telecommunications Conference March 6, 2000 Amy Csizmar Dalal.
Dana Butnariu Princeton University EDGE Lab June – September 2011 OPTIMAL SLEEPING IN DATACENTERS Joint work with Professor Mung Chiang, Ioannis Kamitsos,
Towards Dynamic Green-Sizing for Database Servers Mustafa Korkmaz, Alexey Karyakin, Martin Karsten, Kenneth Salem University of Waterloo.
Carnegie Mellon University Computer Science Department 1 OPEN VERSUS CLOSED: A CAUTIONARY TALE Bianca Schroeder Adam Wierman Mor Harchol-Balter Computer.
Chapter 5 Processor Scheduling Introduction Processor (CPU) scheduling is the sharing of the processor(s) among the processes in the ready queue.
Uniprocessor Scheduling
Distributed Process Scheduling : A Summary
ITFN 2601 Introduction to Operating Systems Lecture 4 Scheduling.
1 Real-Time Scheduling. 2Today Operating System task scheduling –Traditional (non-real-time) scheduling –Real-time scheduling.
Uniprocessor Scheduling Chapter 9. Aim of Scheduling Assign processes to be executed by the processor or processors: –Response time –Throughput –Processor.
Analysis of SRPT Scheduling: Investigating Unfairness Nikhil Bansal (Joint work with Mor Harchol-Balter)
Static Process Scheduling
Efficient Gigabit Ethernet Switch Models for Large-Scale Simulation Dong (Kevin) Jin David Nicol Matthew Caesar University of Illinois.
Lecture Topics: 11/15 CPU scheduling: –Scheduling goals and algorithms.
1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling.
CPU Scheduling Operating Systems CS 550. Last Time Deadlock Detection and Recovery Methods to handle deadlock – Ignore it! – Detect and Recover – Avoidance.
Introduction to Operating System Created by : Zahid Javed CPU Scheduling Fifth Lecture.
Lecture 4 Page 1 CS 111 Summer 2013 Scheduling CS 111 Operating Systems Peter Reiher.
Copyright © Genetic Computer School 2008 Computer Systems Architecture SA 9- 0 Lesson 9 Process Management.
CPU Scheduling CS Introduction to Operating Systems.
Lecture 5 Scheduling. Today CPSC Tyson Kendon Updates Assignment 1 Assignment 2 Concept Review Scheduling Processes Concepts Algorithms.
Scheduling Jobs Across Geo-distributed Datacenters Chien-Chun Hung, Leana Golubchik, Minlan Yu Department of Computer Science University of Southern California.
Scheduling.
CPU Scheduling Andy Wang Operating Systems COP 4610 / CGS 5765.
Chapter 8 – Processor Scheduling
Experimental Calibration and Validation of a Speed Scaling Simulator
Autoscaling Effects in Speed Scaling Systems
Autoscaling Effects in Speed Scaling Systems
Size-Based Scheduling Policies with Inaccurate Scheduling Information
Power-Aware Speed Scaling in Processor Sharing Systems
FAIRNESS IN QUEUES Adam Wierman Carnegie Mellon University cmu
Presentation transcript:

Maryam Elahi Fairness in Speed Scaling Design Joint work with: Carey Williamson and Philipp Woelfel

SCHEDULING Sharing resources Maximize efficiency Minimize cost Datacenters Locks Databases Routers Internet And more… Requests (Jobs) Queue Arrival Rate (λ) Shared Resource (server) CPUs Fixed Service Rates 2

THE DECISION Scheduler: Which job to serve? Preemptive Non-preemptive Goal(s): 1: Minimize response time Simple Model ? M/M/1 3

SCHEDULERS FCFS: First-Come-First-Served PS: Processor Sharing SRPT: Shortest-Remaining- Processing-Time... System Load Mean Response Time PS SRPT FCFS SRPT is proved optimal, but in practice often PS is used. 4

OTHER GOALS? Goal(s): 1: Minimize response time Other QoS: 2: Fairness 3: Robustness … Optimizes response time Is it fair to large jobs? What is fair ? SRPT 5

JUSTIFICATION Aristotle's notion of fairness Treat like cases alike Treated different cases differently, in proportion to their differences Response times should be proportional to job sizes E[T(x)]/x should be constant Normalized response time or slowdown T(x): Response Time of a job with size x 6 Policy P is fair if: [Wierman et al. 2003]

x E[T(x)] / x FAIRNESS OF SCHEDULERS PS: Always Fair FCFS: Always Unfair SRPT: Sometimes Fair... Fair and Optimal? FCFS SRPT PS x E[T(x)] / x SRPT PS Light load 7 High enough load

FAIR AND OPTIMAL? FSP: Fair Sojourn Protocol [Friedman, et al. 2003] Implement SRPT on the PS remaining times Slowdown : never worse than PS Mean response time : close to that of SRPT E[T(x)] / x SRPT PS FSP x Compute the completion time under virtual PS Order the jobs based on their virtual completion times Execute the job with the earliest PS completion time 8

THE DECISION S Scheduler: Which job to serve? What speed to use? Dynamic speed scaling Gated-static (shut-down) Goal(s): 1: Minimize response time ( T ) 2: Minimize energy usage ( E ) ? Adjustable Service Rates Speed Power P(s) = s α 9

THE TRADEOFF response-timeenergy How much reduction in response time justifies using one extra joule β: cost of energy 10

DYNAMIC SPEED SCALING Which job to serve? What speed? Job scheduling SRPT ? P(s) = s α n: jobs in the system + [Bansal et al. 2009]: 3-competitive for arbitrary power function 11

FAIRNESS AND SPEED SCALING FCFS SRPTPSFSP Biased towards big jobs Biased towards small jobs Treats all the same ? [Andrew et al. 2010]: Jobs that run when the queue is big, run faster 12

FAIRNESS AND SPEED SCALING Is Slowdown of PS still the right criterion for fairness? 13 [Andrew et al. 2010]: - For PS with speed scaling, stays constant. - Dynamic Speed Scaling magnifies unfairness under SRPT and non-preemptive policies like FCFS.

SIMULATION STUDY 14

RESULTS: CONSTANT SPEED LOAD:

RESULTS: CONSTANT SPEED LOAD:

RESULTS: DYNAMIC SPEED SCALING LOAD:

RESULTS: DYNAMIC SPEED SCALING LOAD:

CONCLUSIONS FSP with speed scaling shows better fairness behavior in comparison to speed scaled SRPT The definition of fairness for scheduling with speed scaling requires further investigations 19

QUESTIONS? THANK YOU!