ICOM 5007 - Noack Scheduling For Distributed Systems Classification – degree of coupling Classification – granularity Local vs centralized scheduling Methods.

Slides:



Advertisements
Similar presentations
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts Essentials – 9 th Edition Chapter 6: CPU Scheduling.
Advertisements

1 Multiprocessor and Real-Time Scheduling Chapter 10.
Chap 5 Process Scheduling. Basic Concepts Maximum CPU utilization obtained with multiprogramming CPU–I/O Burst Cycle – Process execution consists of a.
Chapter 5 CPU Scheduling. CPU Scheduling Topics: Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling.
Real Time Operating Systems
1 Multiprocessor and Real-Time Scheduling Chapter 10.
1 Multiprocessor and Real-Time Scheduling Chapter 10.
CS 3013 & CS 502 Summer 2006 Scheduling1 The art and science of allocating the CPU and other resources to processes.
Tao Yang, UCSB CS 240B’03 Unix Scheduling Multilevel feedback queues –128 priority queues (value: 0-127) –Round Robin per priority queue Every scheduling.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
Cs238 CPU Scheduling Dr. Alan R. Davis. CPU Scheduling The objective of multiprogramming is to have some process running at all times, to maximize CPU.
Multiprocessor and Real-Time Scheduling Chapter 10.
1 Introduction to Load Balancing: l Definition of Distributed systems. Collection of independent loosely coupled computing resources. l Load Balancing.
1 Traditional OSes with Soft Real- Time Scheduling Module 3.3 For a good summary, visit:
5: CPU-Scheduling1 Jerry Breecher OPERATING SYSTEMS SCHEDULING.
1 Scheduling in Representative Operating Systems.
Informationsteknologi Tuesday, October 9, 2007Computer Systems/Operating Systems - Class 141 Today’s class Scheduling.
Wk 2 – Scheduling 1 CS502 Spring 2006 Scheduling The art and science of allocating the CPU and other resources to processes.
MULTIPROCESSOR SYSTEMS OUTLINE  Coordinated job Scheduling  Separate Systems  Homogeneous Processor Scheduling  Master/Slave Scheduling.
Chapter 10 Multiprocessor and Real-Time Scheduling
Multiprocessor and Real-Time Scheduling
Operating System 10 MULTIPROCESSOR AND REAL-TIME SCHEDULING
Computer System Architectures Computer System Software
 Scheduling  Linux Scheduling  Linux Scheduling Policy  Classification Of Processes In Linux  Linux Scheduling Classes  Process States In Linux.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Lecture 5 Operating Systems.
CSC 360- Instructor: K. Wu CPU Scheduling. CSC 360- Instructor: K. Wu Agenda 1.What is CPU scheduling? 2.CPU burst distribution 3.CPU scheduler and dispatcher.
1 Previous lecture review n Out of basic scheduling techniques none is a clear winner: u FCFS - simple but unfair u RR - more overhead than FCFS may not.
Chapter 10 Multiprocessor and Real-Time Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community.
Chapter 10 Multiprocessor and Real-Time Scheduling Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community.
Page 1 2P13 Week 9. Page 2 Table 9.2 Scheduling Criteria User Oriented, Performance Related Turnaround time This is the interval of time between the submission.
Multiprocessor and Real-Time Scheduling Chapter 10.
Multiprocessor and Real-Time Scheduling
Chapter 101 Multiprocessor and Real- Time Scheduling Chapter 10.
1 Multiprocessor and Real-Time Scheduling Chapter 10 Real-Time scheduling will be covered in SYSC3303.
1 Multiprocessor Scheduling Module 3.1 For a good summary on multiprocessor and real-time scheduling, visit:
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 31 – Multimedia OS (Part 1) Klara Nahrstedt Spring 2011.
© 2000 Morgan Kaufman Overheads for Computers as Components Processes and operating systems  Operating systems.
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.
Scheduling – part 2. Real-time Hard real-time – Mandatory response requirement Soft real-time – Requested response requirement Used in: – robotics, –
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.
Traditional UNIX Scheduling Scheduling algorithm objectives Provide good response time for interactive users Ensure that low-priority background jobs do.
Page 1 2P13 Week 10. Page 2 Page 3 Static table-driven approaches performs a static analysis of feasible schedules of dispatching result is a schedule.
1 Real-Time Scheduling. 2Today Operating System task scheduling –Traditional (non-real-time) scheduling –Real-time scheduling.
Real time scheduling G.Anuradha Ref:- Stallings. Real time computing Correctness of the system depends not only on the logical result of computation,
6.1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 31 – Process Management (Part 1) Klara Nahrstedt Spring 2009.
For a good summary, visit:
1.  System Characteristics  Features of Real-Time Systems  Implementing Real-Time Operating Systems  Real-Time CPU Scheduling  An Example: VxWorks5.x.
1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling.
Unit - I Real Time Operating System. Content : Operating System Concepts Real-Time Tasks Real-Time Systems Types of Real-Time Tasks Real-Time Operating.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 32 – Multimedia OS Klara Nahrstedt Spring 2010.
Chapter 4 CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Operating Systems Unit 5: – Processor scheduling – Java – Linux – Windows XP Operating Systems.
CPU scheduling.  Single Process  one process at a time  Maximum CPU utilization obtained with multiprogramming  CPU idle :waiting time is wasted 2.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 6: CPU Scheduling.
CPU Scheduling Scheduling processes (or kernel-level threads) onto the cpu is one of the most important OS functions. The cpu is an expensive resource.
Principles of Operating Systems Lecture 16 Abhishek Dubey Daniel Balasubramanian Real Time Scheduling Fall 2014.
Multiprocessor, Multicore, and Real-Time Scheduling Chapter 10
Computer Architecture: Parallel Task Assignment
Chapter 6: CPU Scheduling (Cont’d)
Introduction to Load Balancing:
Wayne Wolf Dept. of EE Princeton University
OverView of Scheduling
Multiprocessor and Real-Time Scheduling
Chapter 6: CPU Scheduling
CS703 – Advanced Operating Systems
Chapter 10 Multiprocessor and Real-Time Scheduling
CS703 - Advanced Operating Systems
Presentation transcript:

ICOM Noack Scheduling For Distributed Systems Classification – degree of coupling Classification – granularity Local vs centralized scheduling Methods

ICOM Noack Motivation Additional computing capability can be added more easily by adding than enlarging processors Users and tasks are distributed, but in different ways Many applications and languages are now threaded

ICOM Noack Classification – degree of coupling Degree Of coupling Description Loosely coupled Autonomous systems with individual memory and I/O – networked systems Functionally specialized Separate specialized processors for I/O, networking, DSP, etc. Tightly coupled I/O and usually main memory are in common, CPU’s usually have semiprivate caches

ICOM Noack Classification – granularity Grain sizeDescription Synch interval fineSingle instruction stream – domain of processor and compiler design <20 mediumParallel processing or multiprocessing within application coarseMultiprocessing of applications inside an operating system very coarseDistributed processing across network M independen t Multiple unrelated processes ∞

ICOM Noack What scheduling involves Assigning processes to processors static assignment – process runs there until completion Common queue – time slot is the unit of assignment Peer architecture – each processor selects process to run Using multiprogramming on individual processors Primary issue is how threads are handled Goal is best performance rather than 100% utilization Actual dispatching of a process Coefficient of variance idea – variability of service times Simpler scheduling can work for multiprocessors without causing bottlenecks

ICOM Noack Thread scheduling Load sharing Global queue of ready threads – this is not load balancing Gang scheduling Related threads are scheduled to run on a set of processors at the same time Dedicated processor assignment Application is alloted a processor per thread until done Dedication of processors reduces thread-switching overhead Dynamic scheduling Number of threads in a process can change while it runs Scheduler allots processors on a demand basis (it can take them away)

ICOM Noack Real-time Scheduling Classification – hard vs soft real-time Classification – aperiodic/periodic Responsiveness requirements Reliability requirements

ICOM Noack Real-time OS characteristics CharacteristicComments DeterminismPredictable response time to event acknowledgement – latency much faster than non-RT OS ResponsivenessPredictable service time (after acknowledgement) User controlUser needs to be able to assign task priorities ReliabilityGoverned by needs of system under control – can be life-threatening Fail-soft operationUseful behavior (partial functioning) even after failure – crash survival

ICOM Noack RT scheduling approaches ApproachComments Static - table-drivenStatic analysis of tasks before run-time – result is schedule Static – priority- driven Static analysis determines priority table – result is priority list for standard scheduler Dynamic - planningFeasilility is determined at run time – table-driven, arriving tasks are accepted only if they can be done Dynamic – best effort System tries to meet all deadlines – aborts those whose deadline has expired * Tacit assumption – tasks are identified with deadlines and durations

ICOM Noack Deadline scheduling – explicitly Deadline typeDescription StartingWhen it needs to begin CompletionWhen it needs to finish Processing timeHow long it takes Resource requirementsResources needed (other than processor) PriorityRelative importance (hard RT tasks have priority over soft) Subtask structureMay have mandatory and optional parts

ICOM Noack Rate monotonic scheduling (RMS) Basic idea Suboptimal algorithm High arrival rate = high priority Empirical observations RMS is almost as good as earliest-deadline scheduling Soft-RT parts of tasks can be scheduled to use the CPU time not used by the hard-RT work Stability is better than earliest-deadline

ICOM Noack UNIX SVR4 scheduling Single priority queue Three priority classes Real-time – Kernel – Time-shared – 0-59 Each level is actually a priority queue Preemption is done when a high-priority RT process arrives Time-sharing class Penalty box – priority is reduced if process uses all its time Time allowed varies from 10 ms – priority ms – priority 0 Observations – system has much adaptability

ICOM Noack Linux RT scheduling Basic approach Like non-RT Linux – except RT processes have highest priority Three task queues SCHED_FIFO SCHED_RR – also has time quota SCHED_OTHER – executes only if no RT is waiting Multiple priorities within each class This description differs from present methods Continuous revision area of Linux

ICOM Noack Windows 2K Scheduling Priority-driven preemptive scheduler 2 bands Real-time All threads have fixed priority All threads in a given level are in a RR queue 16 levels (31-16) Other All threads have variable priority FIFO at each level – behavior-based priority modification 16 levels (15-0) Single vs multiple processor Single – highest priority thread Multiple – n-1 highest priority threads each get own processor Last processor is shared by all others