Page 1 Process Migration & Allocation Paul Krzyzanowski Distributed Systems Except as otherwise noted, the content of this.

Slides:



Advertisements
Similar presentations
Multiple Processor Systems
Advertisements

Multiple Processor Systems
Operating System Structures
Company name KUAS HPDS Using Remote Memory Paging for Handheld Devices in a Pervasive Computing Environment Arjuna Sathiaseelan.
Allocation of Frames Each process needs minimum number of pages
Study of Hurricane and Tornado Operating Systems By Shubhanan Bakre.
Multiple Processor Systems
Page 1 Mutual Exclusion* Distributed Systems *referred to slides by Prof. Paul Krzyzanowski at Rutgers University and Prof. Mary Ellen Weisskopf at University.
Using DSVM to Implement a Distributed File System Ramon Lawrence Dept. of Computer Science
Multiple Processor Systems Chapter Multiprocessors 8.2 Multicomputers 8.3 Distributed systems.
Chapter 101 Virtual Memory Chapter 10 Sections and plus (Skip:10.3.2, 10.7, rest of 10.8)
©Brooks/Cole, 2003 Chapter 7 Operating Systems Dr. Barnawi.
Silberschatz, Galvin and Gagne  Operating System Concepts Common System Components Process Management Main Memory Management File Management.
PRASHANTHI NARAYAN NETTEM.
1 Distributed Systems: Distributed Process Management – Process Migration.
Distributed Process Management1 Learning Objectives Distributed Scheduling Algorithms Coordinator Elections Orphan Processes.
RESOURCE MANAGEMENT System Resources. What resources are managed in a computer system?
MULTICOMPUTER 1. MULTICOMPUTER, YANG DIPELAJARI Multiprocessors vs multicomputers Interconnection topologies Switching schemes Communication with messages.
Design and Implementation of a Single System Image Operating System for High Performance Computing on Clusters Christine MORIN PARIS project-team, IRISA/INRIA.
Challenges of Process Allocation in Distributed System Presentation 1 Group A4: Syeda Taib, Sean Hudson, Manasi Kapadia.
Yavor Todorov. Introduction How it works OS level checkpointing Application level checkpointing CPR for parallel programing CPR functionality References.
1 Distributed Operating Systems and Process Scheduling Brett O’Neill CSE 8343 – Group A6.
 What is an operating system? What is an operating system?  Where does the OS fit in? Where does the OS fit in?  Services provided by an OS Services.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
Multiple Processor Systems. Multiprocessor Systems Continuous need for faster and powerful computers –shared memory model ( access nsec) –message passing.
Virtualization Paul Krzyzanowski Distributed Systems Except as otherwise noted, the content of this presentation is licensed.
Fast Multi-Threading on Shared Memory Multi-Processors Joseph Cordina B.Sc. Computer Science and Physics Year IV.
Chapter 41 Processes Chapter 4. 2 Processes  Multiprogramming operating systems are built around the concept of process (also called task).  A process.
Transparent Process Migration: Design Alternatives and the Sprite Implementation Fred Douglis and John Ousterhout.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
Page 1 Logical Clocks Paul Krzyzanowski Distributed Systems Except as otherwise noted, the content of this presentation is.
Operating Systems CSE 411 Multi-processor Operating Systems Multi-processor Operating Systems Dec Lecture 30 Instructor: Bhuvan Urgaonkar.
Multiple Processor Systems. Multiprocessor Systems Continuous need for faster computers –shared memory model ( access nsec) –message passing multiprocessor.
Chapter 8-2 : Multicomputers Multiprocessors vs multicomputers Multiprocessors vs multicomputers Interconnection topologies Interconnection topologies.
Operating Systems David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 432.
OPERATING SYSTEMS - I. What is an Operating System OS is a program that manages the computer hardware It provides a basis for application programs and.
Middleware Services. Functions of Middleware Encapsulation Protection Concurrent processing Communication Scheduling.
Distributed System Services Fall 2008 Siva Josyula
DISTRIBUTED COMPUTING
Lecture 4 Mechanisms & Kernel for NOSs. Mechanisms for Network Operating Systems  Network operating systems provide three basic mechanisms that support.
Distributed Systems Unit – 1 Concepts of DS By :- Maulik V. Dhamecha Maulik V. Dhamecha (M.Tech.)
Page 1 Mutual Exclusion & Election Algorithms Paul Krzyzanowski Distributed Systems Except as otherwise noted, the content.
Introduction Contain two or more CPU share common memory and peripherals. Provide greater system throughput. Multiple processor executing simultaneous.
Operating Systems: Summary INF1060: Introduction to Operating Systems and Data Communication.
Distributed Mutual Exclusion Synchronization in Distributed Systems Synchronization in distributed systems are often more difficult compared to synchronization.
Major OS Components CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University
Background Computer System Architectures Computer System Software.
CS3771 Today: Distributed Coordination  Previous class: Distributed File Systems Issues: Naming Strategies: Absolute Names, Mount Points (logical connection.
Dynamic Load Balancing Tree and Structured Computations.
Intro to Distributed Systems Hank Levy. 23/20/2016 Distributed Systems Nearly all systems today are distributed in some way, e.g.: –they use –they.
Lecture 4 Page 1 CS 111 Summer 2013 Scheduling CS 111 Operating Systems Peter Reiher.
System Components Operating System Services System Calls.
PROCESSOR ALLOCATION Presented by, Wiwek Deshmukh Csc 8320 Instructor: Dr.Yanqing Zhang.
The Mach System Sri Ramkrishna.
Welcome to OS Class!.
Page Replacement.
Outline Midterm results summary Distributed file systems – continued
Basic Grid Projects – Condor (Part I)
Multiple Processor Systems
Multiple Processor Systems
Outline Module 1 and 2 dealt with processes, scheduling and synchronization Next two modules will deal with memory and storage Processes require data to.
Chapter 2: Operating-System Structures
Prof. Leonardo Mostarda University of Camerino
Multiple Processor and Distributed Systems
CSE 451: Operating Systems Winter 2004 Module 19 Distributed Systems
CSE 153 Design of Operating Systems Winter 2019
CSE 542: Operating Systems
Chapter 2: Operating-System Structures
COMP755 Advanced Operating Systems
Presentation transcript:

Page 1 Process Migration & Allocation Paul Krzyzanowski Distributed Systems Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5 License.

Page 2 Processor allocation Easy with multiprocessor systems –Every processor has access to the same memory and resources. –All processors pick a job from a common run queue. –Process can be restarted on any available processor. Much more complex with multicomputer systems –No shared memory (usually) –Little or no shared state (file name space, open files, signals, …) –Network latency

Page 3 Allocation or migration? Migratory or nonmigratory? Most environments are nonmigratory –System decides where a process is born –User decides where a process is born Migratory processes: –Move a process between machines during its lifetime –Can achieve better system-wide utilization of resources

Page 4 Need transparency Process must see the same environment on different computers –Same set of system calls & shared libraries Non-migratory processes: –File system name space –stdin, stdout, stderr Migratory processes: –File system name space –Open file descriptors (including stdin, stdout, stderr) –Signals –Shared-memory segments –Network connections (e.g. TCP sockets) –Semaphores, message queues –Synchronized clocks

Page 5 Migration strategies Move state

Page 6 Migration strategies Move state Keep state on original system –Use RPC for system calls

Page 7 Migration strategies Move state Keep state on original system –Use RPC for system calls Ignore state

Page 8 Constructing process migration algorithms Deterministic vs. heuristic centralized, hierarchical or distributed optimal vs. suboptimal local or global information location policy

Page 9 Up-down algorithm Centralized coordinator maintains usage table Goal: provide a fair share of available compute power –do not allow the user to monopolize the environment System creates process –decides if local system is too congested for local execution –sends request to central manager, asking for a process Centralized coordinator keeps points per workstation –+points for running jobs on other machines –-points if you have unsatisfied requests pending –If your points > 0: you are a net user of processing resources coordinator takes request from workstation with lowest score

Page 10 Hierarchical algorithm Removes central coordinator to provide greater scalability Each group of “workers” (processors) gets a “manager” (coordinator responsible for process allocation to its workers) Manager keeps track of workers available for work (similar to centralized algorihtm) If a manager does not have enough workers (CPU cycles), it then passes the request to its manager (up the hierarchy)

Page 11 Distributed algorithms Sender initiated distributed heuristic –If a system needs help in running jobs: pick machine at random send it a message: Can you run my job? if it cannot, repeat (give up after n tries) –Algorithm has been shown to behave well and be stable –Problem: network load increases as system load increases Receiver initiated distributed heuristic –If a system is not loaded: pick machine at random send it a message: I have free cycles if it cannot, repeat (sleep for a while after n tries and try again) –Heavy network load with idle systems but no extra load during critical (loaded) times

Page 12 Migrating a Virtual Machine Checkpoint an entire operating system Restart it on another system Does the checkpointed image contain a filesystem? –Easy if all file access is network or to a migrated file system –Painful if file access goes through the host OS to the host file system.

Page 13 The end.