Progress Report 2014/02/12. Previous in IPDPS’14 Energy-efficient task scheduling on per- core DVFS architecture ◦ Batch mode  Tasks with arrival time.

Slides:



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

ECE 667 Synthesis and Verification of Digital Circuits
Scheduling Criteria CPU utilization – keep the CPU as busy as possible (from 0% to 100%) Throughput – # of processes that complete their execution per.
CPU Scheduling Tanenbaum Ch 2.4 Silberchatz and Galvin Ch 5.
CS 149: Operating Systems February 3 Class Meeting
Operating Systems Chapter 6
Chapter 5 CPU Scheduling. CPU Scheduling Topics: Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling.
Chapter 3: CPU Scheduling
Scheduling in Batch Systems
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
10/31/02CSE Greedy Algorithms CSE Algorithms Greedy Algorithms.
1Chapter 05, Fall 2008 CPU Scheduling The CPU scheduler (sometimes called the dispatcher or short-term scheduler): Selects a process from the ready queue.
10/31/02CSE Greedy Algorithms CSE Algorithms Greedy Algorithms.
IPDPS’14 Reviewer’s Comments. Summary Typos. Energy model ◦ Too simple. Cost function ◦ Should use more standardized cost functions such as the energy-
Chapter 6: CPU Scheduling
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Lecture 5 Operating Systems.
CS212: OPERATING SYSTEM Lecture 3: Process Scheduling 1.
OPERATING SYSTEMS CPU SCHEDULING.  Introduction to CPU scheduling Introduction to CPU scheduling  Dispatcher Dispatcher  Terms used in CPU scheduling.
Chapter 6 CPU SCHEDULING.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
Scheduling. Alternating Sequence of CPU And I/O Bursts.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Multiprocessor Real-time Scheduling Jing Ma 马靖. Classification Partitioned Scheduling In the partitioned approach, the tasks are statically partitioned.
Silberschatz and Galvin  Operating System Concepts Module 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
For Wednesday No reading No homework There will be homework for Friday, as well the program being due – plan ahead.
Hard Real-Time Scheduling for Low- Energy Using Stochastic Data and DVS Processors Flavius Gruian Department of Computer Science, Lund University Box 118.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
Chapter 5: CPU Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 5: CPU Scheduling Basic Concepts Scheduling Criteria.
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.
An Energy-efficient Task Scheduler for Multi-core Platforms with per-core DVFS Based on Task Characteristics Ching-Chi Lin Institute of Information Science,
Progress Report 2013/11/07. Outline Further studies about heterogeneous multiprocessing other than ARM Cache miss issue Discussion on task scheduling.
Silberschatz and Galvin  Operating System Concepts Module 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 5 CPU Scheduling Slide 1 Chapter 5 CPU Scheduling.
6.1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Outline Models Design of experiments Current Scheduler Completely Fair Scheduler(CFS) ◦ Since Linux ◦ /kernel/sched.c ◦ Maintain balance (fairness)
Progress Report 2013/08/22. Model Modification Each core works under the same frequency due to hardware limitation. A task can have different processing.
1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling.
Introduction to Operating System Created by : Zahid Javed CPU Scheduling Fifth Lecture.
Operating Systems Scheduling. Scheduling Short term scheduler (CPU Scheduler) –Whenever the CPU becomes idle, a process must be selected for execution.
1 Uniprocessor Scheduling Chapter 3. 2 Alternating Sequence of CPU And I/O Bursts.
Chapter 4 CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
CPU scheduling.  Single Process  one process at a time  Maximum CPU utilization obtained with multiprogramming  CPU idle :waiting time is wasted 2.
Basic Concepts Maximum CPU utilization obtained with multiprogramming
3. CPU Scheduling. CPU Scheduling Process execution – a cycle of CPU execution and I/O wait – figure Preemptive Non-Preemptive.
1 Lecture 5: CPU Scheduling Operating System Fall 2006.
Chapter 5: CPU Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 5: CPU Scheduling Basic Concepts Scheduling Criteria.
1 Chapter 5: CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms.
IIS Progress Report 2016/01/11. Goal Propose an energy-efficient scheduler that minimize the power consumption while providing sufficient computing resources.
CPU SCHEDULING.
EEE Embedded Systems Design Process in Operating Systems 서강대학교 전자공학과
Chapter 6: CPU Scheduling
Chapter 6: CPU Scheduling
Module 5: CPU Scheduling
Chapter 5: CPU Scheduling
3: CPU Scheduling Basic Concepts Scheduling Criteria
Chapter5: CPU Scheduling
Chapter 6: CPU Scheduling
CPU SCHEDULING.
Outline Scheduling algorithms Multi-processor scheduling
Process Scheduling Decide which process should run and for how long
Chapter 5: CPU Scheduling
Operating System , Fall 2000 EA101 W 9:00-10:00 F 9:00-11:00
Shortest-Job-First (SJR) Scheduling
Chapter 6: CPU Scheduling
Module 5: CPU Scheduling
Chapter 6: CPU Scheduling
IIS Progress Report 2016/01/18.
Progress Report 2013/08/08.
Module 5: CPU Scheduling
Presentation transcript:

Progress Report 2014/02/12

Previous in IPDPS’14 Energy-efficient task scheduling on per- core DVFS architecture ◦ Batch mode  Tasks with arrival time = 0. ◦ Mixed mode  interactive + computation + background

Modification in ICPP’14 Energy-efficient task scheduling on per- core DVFS architecture ◦ Batch mode  Tasks with arrival time = 0. ◦ Mixed mode  interactive + computation + background ◦ Online mode  interactive + non-interactive

Batch Mode For tasks without deadline ◦ Single core  There exists an optimal solution with the minimum cost in which the tasks are in non-decreasing order of the number of cycles. ◦ Multi-core  A greedy scheduling that assigns heavier tasks to core with smaller C’ j (k’) among all cores gives the minimum cost for a heterogeneous multi-core system.  C’ j (k’) is the coefficient of position k’ on core j.

Online Mode Assign tasks to cores and decide the processing speeds which minimize the total cost in an online fashion. Tasks ◦ Can arrive at any time ◦ Interactive tasks  Higher priority.  Finish as soon as possible. ◦ Non-interactive tasks  No deadline constraint.

Heuristic If the new task is an interactive task ◦ Choose a core, preempt current task, execute this task with highest frequency, resume the preempted task after finishing this task. If the new task is a non-interactive task ◦ Insert this task into queue

Heuristic(Cont.) According to the finding in batch mode, we can always rearrange tasks every time a new task arrives to achieve minimal cost. ◦ “Assigns heavier tasks to core with smaller C’ j (k’) among all cores ” However, there will be extra computation costs and migration costs.

Least Extra Cost Instead of rearrange every task, we assign the new task to one specific core. Choose the core with the least extra cost incurred by inserting this task. ◦ “There exists an optimal solution with the minimum cost in which the tasks are in non- decreasing order of the number of cycles.” ◦ Binary search for position x.

Complexity Assume there N tasks already in the system. There are m cores, each with n i tasks in queue. ◦ Σ n i = N For each core i ◦ Binary search: ㏒ (n i ) ◦ Compute C i inc :n i

Homogeneous Multi-core Recall that in batch mode ◦ “A round-robin scheduling that assigns heavier tasks to smaller k’ gives the minimum cost for a homogeneous multi-core system.” ◦ Optimal scheduling plan. Least Extra Cost will produce optimal scheduling plan after inserting a new task to an optimal scheduling plan in homogeneous multi-core.

Example L2L2 L1L1 L5L5 L4L4 L3L3 L8L8 L7L7 L6L6 L2L2 L1L1 L5L5 L4L4 LnLn L8L8 L7L7 L6L6 L3L3 LnLn L5<Ln<L6L5<Ln<L6 L2L2 L1L1 L5L5 L4L4 L3L3 L8L8 L7L7 L6L6 L2L2 L1L1 L5L5 L4L4 L3L3 L8L8 L7L7 L6L6 L2L2 L1L1 L5L5 L4L4 L3L3 L8L8 L7L7 L6L6 LnLn LnLn LnLn Min(,,)

Counterexample L2L2 L1L1 L5L5 L4L4 L3L3 L8L8 L7L7 L6L6 L2L2 L1L1 L5L5 L4L4 LnLn L8L8 L7L7 L6L6 L3L3 LnLn L5<Ln<L6L5<Ln<L6 L2L2 L1L1 L3L3 L4L4 L5L5 L8L8 L7L7 L6L6 L2L2 L1L1 L3L3 L4L4 L5L5 L8L8 L7L7 L6L6 L2L2 L1L1 L3L3 L4L4 L5L5 L8L8 L7L7 L6L6 LnLn LnLn LnLn

Starvation However, sorting tasks in non-decreasing order of the number of cycles may results in starvation for larger tasks. ◦ One solution is that after the waiting time of a task exceeds a threshold, increase the priority of that task so that it can preempt the current task. Slightly increasing the total cost.

Next Experiment Prepare the paper for ICPP’14.

Offline Mode Given the arrival time of each task, how to schedule the task to achieve minimal cost. ◦ Batch mode is a special case of offline mode. ◦ Compare to online mode, offline mode does not consider interactive tasks.