SlideShare a Scribd company logo
Process
Management
Process Migration
ο Relocationof a process from its current location to
another node.
ο Process may be migrated
ν either before it start executing on its source node
ο known as non-preemptive process migration.
ν or during the course of its execution
ο Known as preemptive process migration.
Process Migration
• Selecting a process to be
migrated
• Selecting the destination node
• Suspending the process
• Capturing the process state
• Sending the state to the
destination
• Resuming the process
• Forwarding future messages to
the destination
Process P1
:
:
:
:
Execution
suspended
Source Site Destination Site
Execution
Resumed
:
:
:
:
Process P1
Transfer of
control
Time
Freezing
time
Desirable features of a good process
migration mechanism
ο
ο
ο
ο
ο
ο
Transparency
Minimal Interference
Minimal Residual Dependencies-
Efficiency
Robustness
Communication between coprocesses of a job
Transparency
Level of transparency:(Location
Independent)ν
ν
Object Access Level
System Call & Interprocess Communication level
Minimal Interference
ο Migration of a process should cause minimal
interference of progress of the process involved.
ο Achieve by minimizing the freezing time of the
process being migrated.
ν Freezing time is the time period for which the execution
of the process is stopped for transferring its information to
the destination node.
Minimal Residual
Dependencies
ο The process migrated should not depend
on any factor with the previous process.
Efficiency
ο Minimum time required for migrating a
process.
ο Minimum cost of locating an object.
ο Minimum cost of supporting remote execution
once the process is migrated.
Robustness
ο Except the failure of a node on which a process is
currently running should not affect the
accessibility or execution of process.
Communication between coprocessors of a
job
ο To reduce communication cost, it is necessary that
coprocesses are able to directly communicate with
each other irrespective of their locations.
Process Migration
Benefits
• Better response time and execution speed-up
–Dynamic load balancing among multiple nodes
• Higher throughput and Effective resource utilization
–Migrating I/O and CPU-bound processes to file and cycle servers.
• Reducing network traffic
–Migrating processes closer to the resources they are using most
heavily.
• Improving system reliability
–Migrating processes from a site in failure to more reliable sites
–Replicating and migrating critical processes to a remote.
Process Migration Mechanisms
Four major activities
1. Freezing the process on its source node and restarting it
on its destination node.
2. Transferring the process’s address space from its
source node to its destination node.
3. Forwarding messages meant for the migrant process.
4. Handling communication between cooperating
processes that have been separated as a result of process
migration.
Cont… : Mechanisms for Freezing and
Restarting a Process
ο Freezing the process:
ν The execution of the process is suspended in the source
node and the state of information is transferred to its
destination node and from there it is restarted.
ο Issues:
ν
ν
ν
ν
Immediate and delayed blocking of the process
Fast and slow I/O operations
Information about open files
Reinstating the process on its Destination node
Cont… : Reinstating the process on its
Destination Node
ο On the destination node, an empty process state is
created.
Cont…
ο Once all the state of the migrating process has been
transferred from the source to destination node and
copied into the empty state, new copy of the process
is unfrozen and old copy is deleted.
ο The process is restarted on its destination node in
whatever state it was in before being migrated.
Address Space Transfer Mechanisms
ο The migration of a process involves the
transfer of
ν
ν
Process’s state
Process’s address space
from the source node to the destination
node.
Address Space Transfer Mechanisms
• Since the target process for migration is preempted , its
state information must also be transferred.
• State information consists of computation state and
communication state .
• The computation state is the information necessary to
save and restore a process at the remote site and
• communication state is the status of process
communication links and messages in transit.
Process State consists of
• CPU registers
–Captured upon a freeze
• Address space
–Difficult to restore pointers
• I/O state:
–Fast I/O Operations
•Completed before a process migration
–Durable I/O Operations like files and user interactions
•Difficult to carry files in use and to freeze/restore system calls.
•Necessity to maintain a connection with I/O established at the source
node.
Cont…
ο Process address space
ν
ν
ν
code,
data and
program stack
Cont…
ο Mechanisms for address space transfer:
ν
ν
ν
Total freezing
Pre-transferring
Transfer on reference
Process Migration
Address Transfer Mechanisms
Transfer of
address space
Source
node
Destination
node
Suspended
Migration
decision
resumed
Freezing
time
Transfer of
address space
Source
node
Destination
node
Suspended
Migration
decision
resumed
Freezing
time
On-demand
transfer
Source
node
Destination
node
Suspended
Migration
decision
resumed
Freezing
time
Total Freezing Pretransferring Transfer-on-reference
Merits: easy
implementation
Demerits:long delay time
Merits: freezing time
reduce
Demerits:total time
Merits: quick migration
Demerits: large memory
latency
Cont… : Total Freezing
ο A process’s execution is stopped while its address
space is being transferred.
ο Disadvantage:
ν Process is suspended for long time during migration,
timeouts may occur, and if process is interactive, the
delay will be noticed by the user.
Cont … : Pretransferring
ο Also known as precopying.
ο The address space is transferred while the process is
still running on the source node.
ο After the transfer, the modified pages are picked
up.
Cont …
ο Reduces the freezing time of the process but it
may increase the total time for migrating due to
the possibility of redundant page transfers.
Cont… : Transfer on Reference
ο The process address space is left behind on its
source node, and as the relocated process executes
on its destination node.
ο Attempts to reference memory page results in the
generation of requests to copy in the desired
blocks from their remote location.
ο A page is transferred from its source node to its
destination node only when referenced.
Cont…
ο Very short switching time of the process from its
source node to its destination node.
Cont…
ο Mechanisms:
ν
ν
ν
ν
Mechanism of resending the message
Origin site mechanism
Link traversal mechanism Link
update mechanism
Process Migration
Message Forwarding Mechanisms
Sender
Origin
Dest 1
Dest 2
Receiver
Migrate
Migrate again
Resend
Resend again
Sender
Origin
Dest 1
Dest 2
Receiver
Migrate
Migrate again
Resending messages Ask origin site
SendSend
Forward
Process Migration
Message Forwarding Mechanisms (Cont’d)
Sender
Origin
Dest 1
Dest 2
Receiver
Migrate
Migrate again
Link Update
Send
Sender
Origin
Dest 1
Dest 2
Receiver
Migrate
Migrate again
Link traversal
Link
Link
Send
Forward
Forward
Send
New location
Send
New location
Send
Current location
Cont… : Mechanisms of resending the
message
ο Messages of are returned to the sender as not
deliverable or are simply dropped, with the
assurance that the sender of the message is storing
a copy of the data and is prepared to retransmit it.
Cont…
ο Disadvantage:
ν The message forwarding mechanism of process
migration operation is nontransparent to the
processes interacting with the migrant process.
Cont… : Origin Site Mechanism
ο Each site is responsible for keeping information
about the current locations of all the processes
created on it.
ο Messages for a particular process are always first
sent to its origin site.
ο The origin site then forwards the message to the
process’s current location.
Cont…
ο Disadvantage:
ν site will disrupt the messageFailure of the origin
forwarding
mechanism.
Cont… : Link Traversal Mechanism
ο To redirect message, a message queue for the
migrant process is created on its source node.
ο A forwarding address known as link is left at the
source node pointing to the destination of the
migrant process.
ο Components of link, one is unique process
identifier and second is last known location.
Cont…
ο Disadvantage:
ν Several link may have to be traversed to locate a process
from a node and if any node in chain of link fails, the
process cannot be located.
Cont… : Link Update Mechanisms
ο Link update message
ν
ν
Tells the new address of each link held by the migrant
process.
Acknowledged for synchronization purposes.
Mechanisms for Handling
Coprocesses
ο To provide efficient communication between a
process and its sub processes which might have
been migrated on different nodes.
ο Mechanisms :
ν
ν
Disallowing separation of coprocesses.
Home node or origin site concept.
Cont… : Disallowing Separation of
coprocesses
ο Easiest method of handling communication
between coprocesses is to disallow their separation.
ο Methods :
ν
ν
By disallowing the migration of processes that wait for
one or more of their children to complete.
By ensuring that when a parent process migrates,its
children process will be migrated along with it.
Cont…
ο Disadvantage:
ν It does not allow the use of parallelism within jobs.
Cont… : Home node or Origin Sites
Concept
ο Used for communication between a process and its
sub process when the two are running on different
nodes.
ο Allows the complete freedom of migrating a
process or its sub process independently and
executing them on different nodes of the system.
Cont…
ο Disadvantage:
ν All communication between a parent process and its
children processes take place via the home node.
ο traffic and the communication cost increaseThe message
considerably.
Advantages of Process Migration
ο Reducing average response time of processes
ν To reduce the average response time of the processes,
processes of a heavily loaded node are migrated to idle or
underutilized nodes.
ο Speeding up individual jobs
ν
ν
ν
A migration of job to different node is done and execute
them concurrently.
Migrate a job to a node having a faster CPU or to a node
at which it has minimum turnaround time.
More speed up more migration cost involved.
Cont…
ο Gaining higher throughput
ν Process migration facility may also be used properly to
mix I/O and CPU-bound processes on a global basis for
increasing the throughput of the system.
ο Utilizing resources effectively
ν Depending upon the nature of a process, it can be
migrated to suitable node to utilize the system resource in
the most efficient manner.
59
Cont…
ο Reducing network traffic
ν Migrating a process closer to the resources it is using
most heavily.
ο Improving system reliability
ν Migrate a copy of a critical process to some other node
and to execute both the original and copied processes
concurrently on different nodes.
ο Improving system security
ν A sensitive process may be migrated and run on a secure
node.
Ad

More Related Content

What's hot (20)

Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
sumitjain2013
 
Message passing in Distributed Computing Systems
Message passing in Distributed Computing SystemsMessage passing in Distributed Computing Systems
Message passing in Distributed Computing Systems
Alagappa Govt Arts College, Karaikudi
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
Ashish Kumar
 
Distributed File Systems
Distributed File Systems Distributed File Systems
Distributed File Systems
Maurvi04
 
Naming in Distributed Systems
Naming in Distributed SystemsNaming in Distributed Systems
Naming in Distributed Systems
Nandakumar P
 
key distribution in network security
key distribution in network securitykey distribution in network security
key distribution in network security
babak danyal
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
Sunita Sahu
 
CS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMSCS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMS
Kathirvel Ayyaswamy
 
6.distributed shared memory
6.distributed shared memory6.distributed shared memory
6.distributed shared memory
Gd Goenka University
 
Message and Stream Oriented Communication
Message and Stream Oriented CommunicationMessage and Stream Oriented Communication
Message and Stream Oriented Communication
Dilum Bandara
 
Replication in Distributed Systems
Replication in Distributed SystemsReplication in Distributed Systems
Replication in Distributed Systems
Kavya Barnadhya Hazarika
 
Synchronization in distributed computing
Synchronization in distributed computingSynchronization in distributed computing
Synchronization in distributed computing
SVijaylakshmi
 
File models and file accessing models
File models and file accessing modelsFile models and file accessing models
File models and file accessing models
ishmecse13
 
Deadlock in Distributed Systems
Deadlock in Distributed SystemsDeadlock in Distributed Systems
Deadlock in Distributed Systems
Pritom Saha Akash
 
Naming in Distributed System
Naming in Distributed SystemNaming in Distributed System
Naming in Distributed System
MNM Jain Engineering College
 
Communication primitives
Communication primitivesCommunication primitives
Communication primitives
Student
 
VIRTUALIZATION STRUCTURES TOOLS.docx
VIRTUALIZATION STRUCTURES TOOLS.docxVIRTUALIZATION STRUCTURES TOOLS.docx
VIRTUALIZATION STRUCTURES TOOLS.docx
kumari36
 
2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts
Prajakta Rane
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
Haitham Ahmed
 
8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems
Dr Sandeep Kumar Poonia
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
sumitjain2013
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
Ashish Kumar
 
Distributed File Systems
Distributed File Systems Distributed File Systems
Distributed File Systems
Maurvi04
 
Naming in Distributed Systems
Naming in Distributed SystemsNaming in Distributed Systems
Naming in Distributed Systems
Nandakumar P
 
key distribution in network security
key distribution in network securitykey distribution in network security
key distribution in network security
babak danyal
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
Sunita Sahu
 
Message and Stream Oriented Communication
Message and Stream Oriented CommunicationMessage and Stream Oriented Communication
Message and Stream Oriented Communication
Dilum Bandara
 
Synchronization in distributed computing
Synchronization in distributed computingSynchronization in distributed computing
Synchronization in distributed computing
SVijaylakshmi
 
File models and file accessing models
File models and file accessing modelsFile models and file accessing models
File models and file accessing models
ishmecse13
 
Deadlock in Distributed Systems
Deadlock in Distributed SystemsDeadlock in Distributed Systems
Deadlock in Distributed Systems
Pritom Saha Akash
 
Communication primitives
Communication primitivesCommunication primitives
Communication primitives
Student
 
VIRTUALIZATION STRUCTURES TOOLS.docx
VIRTUALIZATION STRUCTURES TOOLS.docxVIRTUALIZATION STRUCTURES TOOLS.docx
VIRTUALIZATION STRUCTURES TOOLS.docx
kumari36
 
2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts
Prajakta Rane
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
Haitham Ahmed
 
8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems
Dr Sandeep Kumar Poonia
 

Similar to Process Management-Process Migration (20)

Cs 704 d aos-resource&processmanagement
Cs 704 d aos-resource&processmanagementCs 704 d aos-resource&processmanagement
Cs 704 d aos-resource&processmanagement
Debasis Das
 
Topic: Virtual circuit & message switching
Topic: Virtual circuit & message switchingTopic: Virtual circuit & message switching
Topic: Virtual circuit & message switching
Dr Rajiv Srivastava
 
DISTRIBUTED SYSTEM CHAPTER THREE UP TO FIVE.pdf
DISTRIBUTED SYSTEM CHAPTER THREE UP TO FIVE.pdfDISTRIBUTED SYSTEM CHAPTER THREE UP TO FIVE.pdf
DISTRIBUTED SYSTEM CHAPTER THREE UP TO FIVE.pdf
BachaLamessaa
 
1 messagepassing-121015032028-phpapp01
1 messagepassing-121015032028-phpapp011 messagepassing-121015032028-phpapp01
1 messagepassing-121015032028-phpapp01
Zaigham Abbas
 
Chapter00000000
Chapter00000000Chapter00000000
Chapter00000000
Mani Deepak Choudhry
 
Trasport layer
Trasport layerTrasport layer
Trasport layer
RAJ ANAND
 
Types of connections -Peer to peer connection
Types of connections -Peer to peer connectionTypes of connections -Peer to peer connection
Types of connections -Peer to peer connection
hariom9759017593
 
Lecture 3.ppt of cs field using AI and machine management
Lecture 3.ppt of cs field using AI and machine managementLecture 3.ppt of cs field using AI and machine management
Lecture 3.ppt of cs field using AI and machine management
MadinaKhan6
 
Processbejdndnnnnnjsnsgsvvdvvvguigv.pptx
Processbejdndnnnnnjsnsgsvvdvvvguigv.pptxProcessbejdndnnnnnjsnsgsvvdvvvguigv.pptx
Processbejdndnnnnnjsnsgsvvdvvvguigv.pptx
AaryaNigade
 
Processprehsjsjsjskakwkwkejjdbdbdjj.pptx
Processprehsjsjsjskakwkwkejjdbdbdjj.pptxProcessprehsjsjsjskakwkwkejjdbdbdjj.pptx
Processprehsjsjsjskakwkwkejjdbdbdjj.pptx
AaryaNigade
 
The OSI model
 The OSI model The OSI model
The OSI model
ShofiqulIslam38
 
RPC: Remote procedure call
RPC: Remote procedure callRPC: Remote procedure call
RPC: Remote procedure call
Sunita Sahu
 
3.1 Transport Layer Presentationsss.pptx
3.1 Transport Layer Presentationsss.pptx3.1 Transport Layer Presentationsss.pptx
3.1 Transport Layer Presentationsss.pptx
rnoob7989
 
Message Passing, Remote Procedure Calls and Distributed Shared Memory as Com...
Message Passing, Remote Procedure Calls and  Distributed Shared Memory as Com...Message Passing, Remote Procedure Calls and  Distributed Shared Memory as Com...
Message Passing, Remote Procedure Calls and Distributed Shared Memory as Com...
Sehrish Asif
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
Kathirvel Ayyaswamy
 
Chap-3- Process.pptx distributive system
Chap-3- Process.pptx distributive systemChap-3- Process.pptx distributive system
Chap-3- Process.pptx distributive system
Tofikmohammed5
 
Task migration in os
Task migration in osTask migration in os
Task migration in os
uos lahore pakistan
 
08 coms 525 tcpip - tcp 1
08   coms 525 tcpip - tcp 108   coms 525 tcpip - tcp 1
08 coms 525 tcpip - tcp 1
Palanivel Kuppusamy
 
tcpiposi.pptx
tcpiposi.pptxtcpiposi.pptx
tcpiposi.pptx
JustinMathew73
 
Lec07 multiprocessor schaduling chap.ppt
Lec07 multiprocessor schaduling chap.pptLec07 multiprocessor schaduling chap.ppt
Lec07 multiprocessor schaduling chap.ppt
naghamsalimmohammed
 
Cs 704 d aos-resource&processmanagement
Cs 704 d aos-resource&processmanagementCs 704 d aos-resource&processmanagement
Cs 704 d aos-resource&processmanagement
Debasis Das
 
Topic: Virtual circuit & message switching
Topic: Virtual circuit & message switchingTopic: Virtual circuit & message switching
Topic: Virtual circuit & message switching
Dr Rajiv Srivastava
 
DISTRIBUTED SYSTEM CHAPTER THREE UP TO FIVE.pdf
DISTRIBUTED SYSTEM CHAPTER THREE UP TO FIVE.pdfDISTRIBUTED SYSTEM CHAPTER THREE UP TO FIVE.pdf
DISTRIBUTED SYSTEM CHAPTER THREE UP TO FIVE.pdf
BachaLamessaa
 
1 messagepassing-121015032028-phpapp01
1 messagepassing-121015032028-phpapp011 messagepassing-121015032028-phpapp01
1 messagepassing-121015032028-phpapp01
Zaigham Abbas
 
Trasport layer
Trasport layerTrasport layer
Trasport layer
RAJ ANAND
 
Types of connections -Peer to peer connection
Types of connections -Peer to peer connectionTypes of connections -Peer to peer connection
Types of connections -Peer to peer connection
hariom9759017593
 
Lecture 3.ppt of cs field using AI and machine management
Lecture 3.ppt of cs field using AI and machine managementLecture 3.ppt of cs field using AI and machine management
Lecture 3.ppt of cs field using AI and machine management
MadinaKhan6
 
Processbejdndnnnnnjsnsgsvvdvvvguigv.pptx
Processbejdndnnnnnjsnsgsvvdvvvguigv.pptxProcessbejdndnnnnnjsnsgsvvdvvvguigv.pptx
Processbejdndnnnnnjsnsgsvvdvvvguigv.pptx
AaryaNigade
 
Processprehsjsjsjskakwkwkejjdbdbdjj.pptx
Processprehsjsjsjskakwkwkejjdbdbdjj.pptxProcessprehsjsjsjskakwkwkejjdbdbdjj.pptx
Processprehsjsjsjskakwkwkejjdbdbdjj.pptx
AaryaNigade
 
RPC: Remote procedure call
RPC: Remote procedure callRPC: Remote procedure call
RPC: Remote procedure call
Sunita Sahu
 
3.1 Transport Layer Presentationsss.pptx
3.1 Transport Layer Presentationsss.pptx3.1 Transport Layer Presentationsss.pptx
3.1 Transport Layer Presentationsss.pptx
rnoob7989
 
Message Passing, Remote Procedure Calls and Distributed Shared Memory as Com...
Message Passing, Remote Procedure Calls and  Distributed Shared Memory as Com...Message Passing, Remote Procedure Calls and  Distributed Shared Memory as Com...
Message Passing, Remote Procedure Calls and Distributed Shared Memory as Com...
Sehrish Asif
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
Kathirvel Ayyaswamy
 
Chap-3- Process.pptx distributive system
Chap-3- Process.pptx distributive systemChap-3- Process.pptx distributive system
Chap-3- Process.pptx distributive system
Tofikmohammed5
 
Lec07 multiprocessor schaduling chap.ppt
Lec07 multiprocessor schaduling chap.pptLec07 multiprocessor schaduling chap.ppt
Lec07 multiprocessor schaduling chap.ppt
naghamsalimmohammed
 
Ad

More from MNM Jain Engineering College (15)

IT8602 MOBILE COMMUNICATION.docx
IT8602 MOBILE COMMUNICATION.docxIT8602 MOBILE COMMUNICATION.docx
IT8602 MOBILE COMMUNICATION.docx
MNM Jain Engineering College
 
IT8602 Syllabus.pdf
IT8602 Syllabus.pdfIT8602 Syllabus.pdf
IT8602 Syllabus.pdf
MNM Jain Engineering College
 
Mg8591 syllabus
Mg8591 syllabusMg8591 syllabus
Mg8591 syllabus
MNM Jain Engineering College
 
Ccse ii model_qp
Ccse ii model_qpCcse ii model_qp
Ccse ii model_qp
MNM Jain Engineering College
 
Distributed Mutual exclusion algorithms
Distributed Mutual exclusion algorithmsDistributed Mutual exclusion algorithms
Distributed Mutual exclusion algorithms
MNM Jain Engineering College
 
Task assignment approach
Task assignment approachTask assignment approach
Task assignment approach
MNM Jain Engineering College
 
Remote method invocation
Remote method invocationRemote method invocation
Remote method invocation
MNM Jain Engineering College
 
Remote Procedure Call
Remote Procedure CallRemote Procedure Call
Remote Procedure Call
MNM Jain Engineering College
 
Engineering Ethics
Engineering EthicsEngineering Ethics
Engineering Ethics
MNM Jain Engineering College
 
Distributed System-Multicast & Indirect communication
Distributed System-Multicast & Indirect communicationDistributed System-Multicast & Indirect communication
Distributed System-Multicast & Indirect communication
MNM Jain Engineering College
 
It6312 dbms lab-ex2
It6312 dbms lab-ex2It6312 dbms lab-ex2
It6312 dbms lab-ex2
MNM Jain Engineering College
 
Expected questions in Artificial Intelligence
Expected questions in Artificial IntelligenceExpected questions in Artificial Intelligence
Expected questions in Artificial Intelligence
MNM Jain Engineering College
 
Qp mobile & pervasive 2015
Qp mobile & pervasive 2015Qp mobile & pervasive 2015
Qp mobile & pervasive 2015
MNM Jain Engineering College
 
It6611 mobile application development laboratory l t p c0 0 3 2
It6611 mobile application development laboratory l t p c0 0 3 2It6611 mobile application development laboratory l t p c0 0 3 2
It6611 mobile application development laboratory l t p c0 0 3 2
MNM Jain Engineering College
 
Instruction formats-in-8086
Instruction formats-in-8086Instruction formats-in-8086
Instruction formats-in-8086
MNM Jain Engineering College
 
Ad

Recently uploaded (20)

RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.
Kamal Acharya
 
Basic Principles for Electronics Students
Basic Principles for Electronics StudentsBasic Principles for Electronics Students
Basic Principles for Electronics Students
cbdbizdev04
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Taking AI Welfare Seriously, In this report, we argue that there is a realist...
Taking AI Welfare Seriously, In this report, we argue that there is a realist...Taking AI Welfare Seriously, In this report, we argue that there is a realist...
Taking AI Welfare Seriously, In this report, we argue that there is a realist...
MiguelMarques372250
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
Unit III.pptx IT3401 web essentials presentatio
Unit III.pptx IT3401 web essentials presentatioUnit III.pptx IT3401 web essentials presentatio
Unit III.pptx IT3401 web essentials presentatio
lakshitakumar291
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
Reagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptxReagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptx
AlejandroOdio
 
How to Make Material Space Qu___ (1).pptx
How to Make Material Space Qu___ (1).pptxHow to Make Material Space Qu___ (1).pptx
How to Make Material Space Qu___ (1).pptx
engaash9
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
IntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdfIntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdf
Luiz Carneiro
 
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
LiyaShaji4
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
BTech_CSE_LPU_Presentation.pptx.........
BTech_CSE_LPU_Presentation.pptx.........BTech_CSE_LPU_Presentation.pptx.........
BTech_CSE_LPU_Presentation.pptx.........
jinny kaur
 
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptxFourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
VENKATESHBHAT25
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.
Kamal Acharya
 
Basic Principles for Electronics Students
Basic Principles for Electronics StudentsBasic Principles for Electronics Students
Basic Principles for Electronics Students
cbdbizdev04
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Taking AI Welfare Seriously, In this report, we argue that there is a realist...
Taking AI Welfare Seriously, In this report, we argue that there is a realist...Taking AI Welfare Seriously, In this report, we argue that there is a realist...
Taking AI Welfare Seriously, In this report, we argue that there is a realist...
MiguelMarques372250
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
Unit III.pptx IT3401 web essentials presentatio
Unit III.pptx IT3401 web essentials presentatioUnit III.pptx IT3401 web essentials presentatio
Unit III.pptx IT3401 web essentials presentatio
lakshitakumar291
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
Reagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptxReagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptx
AlejandroOdio
 
How to Make Material Space Qu___ (1).pptx
How to Make Material Space Qu___ (1).pptxHow to Make Material Space Qu___ (1).pptx
How to Make Material Space Qu___ (1).pptx
engaash9
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
IntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdfIntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdf
Luiz Carneiro
 
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
LiyaShaji4
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
BTech_CSE_LPU_Presentation.pptx.........
BTech_CSE_LPU_Presentation.pptx.........BTech_CSE_LPU_Presentation.pptx.........
BTech_CSE_LPU_Presentation.pptx.........
jinny kaur
 
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptxFourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
VENKATESHBHAT25
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 

Process Management-Process Migration

  • 2. Process Migration ο Relocationof a process from its current location to another node. ο Process may be migrated ν either before it start executing on its source node ο known as non-preemptive process migration. ν or during the course of its execution ο Known as preemptive process migration.
  • 3. Process Migration • Selecting a process to be migrated • Selecting the destination node • Suspending the process • Capturing the process state • Sending the state to the destination • Resuming the process • Forwarding future messages to the destination Process P1 : : : : Execution suspended Source Site Destination Site Execution Resumed : : : : Process P1 Transfer of control Time Freezing time
  • 4. Desirable features of a good process migration mechanism ο ο ο ο ο ο Transparency Minimal Interference Minimal Residual Dependencies- Efficiency Robustness Communication between coprocesses of a job
  • 5. Transparency Level of transparency:(Location Independent)ν ν Object Access Level System Call & Interprocess Communication level
  • 6. Minimal Interference ο Migration of a process should cause minimal interference of progress of the process involved. ο Achieve by minimizing the freezing time of the process being migrated. ν Freezing time is the time period for which the execution of the process is stopped for transferring its information to the destination node.
  • 7. Minimal Residual Dependencies ο The process migrated should not depend on any factor with the previous process.
  • 8. Efficiency ο Minimum time required for migrating a process. ο Minimum cost of locating an object. ο Minimum cost of supporting remote execution once the process is migrated.
  • 9. Robustness ο Except the failure of a node on which a process is currently running should not affect the accessibility or execution of process.
  • 10. Communication between coprocessors of a job ο To reduce communication cost, it is necessary that coprocesses are able to directly communicate with each other irrespective of their locations.
  • 11. Process Migration Benefits • Better response time and execution speed-up –Dynamic load balancing among multiple nodes • Higher throughput and Effective resource utilization –Migrating I/O and CPU-bound processes to file and cycle servers. • Reducing network traffic –Migrating processes closer to the resources they are using most heavily. • Improving system reliability –Migrating processes from a site in failure to more reliable sites –Replicating and migrating critical processes to a remote.
  • 12. Process Migration Mechanisms Four major activities 1. Freezing the process on its source node and restarting it on its destination node. 2. Transferring the process’s address space from its source node to its destination node. 3. Forwarding messages meant for the migrant process. 4. Handling communication between cooperating processes that have been separated as a result of process migration.
  • 13. Cont… : Mechanisms for Freezing and Restarting a Process ο Freezing the process: ν The execution of the process is suspended in the source node and the state of information is transferred to its destination node and from there it is restarted. ο Issues: ν ν ν ν Immediate and delayed blocking of the process Fast and slow I/O operations Information about open files Reinstating the process on its Destination node
  • 14. Cont… : Reinstating the process on its Destination Node ο On the destination node, an empty process state is created.
  • 15. Cont… ο Once all the state of the migrating process has been transferred from the source to destination node and copied into the empty state, new copy of the process is unfrozen and old copy is deleted. ο The process is restarted on its destination node in whatever state it was in before being migrated.
  • 16. Address Space Transfer Mechanisms ο The migration of a process involves the transfer of ν ν Process’s state Process’s address space from the source node to the destination node.
  • 17. Address Space Transfer Mechanisms • Since the target process for migration is preempted , its state information must also be transferred. • State information consists of computation state and communication state . • The computation state is the information necessary to save and restore a process at the remote site and • communication state is the status of process communication links and messages in transit.
  • 18. Process State consists of • CPU registers –Captured upon a freeze • Address space –Difficult to restore pointers • I/O state: –Fast I/O Operations •Completed before a process migration –Durable I/O Operations like files and user interactions •Difficult to carry files in use and to freeze/restore system calls. •Necessity to maintain a connection with I/O established at the source node.
  • 19. Cont… ο Process address space ν ν ν code, data and program stack
  • 20. Cont… ο Mechanisms for address space transfer: ν ν ν Total freezing Pre-transferring Transfer on reference
  • 21. Process Migration Address Transfer Mechanisms Transfer of address space Source node Destination node Suspended Migration decision resumed Freezing time Transfer of address space Source node Destination node Suspended Migration decision resumed Freezing time On-demand transfer Source node Destination node Suspended Migration decision resumed Freezing time Total Freezing Pretransferring Transfer-on-reference Merits: easy implementation Demerits:long delay time Merits: freezing time reduce Demerits:total time Merits: quick migration Demerits: large memory latency
  • 22. Cont… : Total Freezing ο A process’s execution is stopped while its address space is being transferred. ο Disadvantage: ν Process is suspended for long time during migration, timeouts may occur, and if process is interactive, the delay will be noticed by the user.
  • 23. Cont … : Pretransferring ο Also known as precopying. ο The address space is transferred while the process is still running on the source node. ο After the transfer, the modified pages are picked up.
  • 24. Cont … ο Reduces the freezing time of the process but it may increase the total time for migrating due to the possibility of redundant page transfers.
  • 25. Cont… : Transfer on Reference ο The process address space is left behind on its source node, and as the relocated process executes on its destination node. ο Attempts to reference memory page results in the generation of requests to copy in the desired blocks from their remote location. ο A page is transferred from its source node to its destination node only when referenced.
  • 26. Cont… ο Very short switching time of the process from its source node to its destination node.
  • 27. Cont… ο Mechanisms: ν ν ν ν Mechanism of resending the message Origin site mechanism Link traversal mechanism Link update mechanism
  • 28. Process Migration Message Forwarding Mechanisms Sender Origin Dest 1 Dest 2 Receiver Migrate Migrate again Resend Resend again Sender Origin Dest 1 Dest 2 Receiver Migrate Migrate again Resending messages Ask origin site SendSend Forward
  • 29. Process Migration Message Forwarding Mechanisms (Cont’d) Sender Origin Dest 1 Dest 2 Receiver Migrate Migrate again Link Update Send Sender Origin Dest 1 Dest 2 Receiver Migrate Migrate again Link traversal Link Link Send Forward Forward Send New location Send New location Send Current location
  • 30. Cont… : Mechanisms of resending the message ο Messages of are returned to the sender as not deliverable or are simply dropped, with the assurance that the sender of the message is storing a copy of the data and is prepared to retransmit it.
  • 31. Cont… ο Disadvantage: ν The message forwarding mechanism of process migration operation is nontransparent to the processes interacting with the migrant process.
  • 32. Cont… : Origin Site Mechanism ο Each site is responsible for keeping information about the current locations of all the processes created on it. ο Messages for a particular process are always first sent to its origin site. ο The origin site then forwards the message to the process’s current location.
  • 33. Cont… ο Disadvantage: ν site will disrupt the messageFailure of the origin forwarding mechanism.
  • 34. Cont… : Link Traversal Mechanism ο To redirect message, a message queue for the migrant process is created on its source node. ο A forwarding address known as link is left at the source node pointing to the destination of the migrant process. ο Components of link, one is unique process identifier and second is last known location.
  • 35. Cont… ο Disadvantage: ν Several link may have to be traversed to locate a process from a node and if any node in chain of link fails, the process cannot be located.
  • 36. Cont… : Link Update Mechanisms ο Link update message ν ν Tells the new address of each link held by the migrant process. Acknowledged for synchronization purposes.
  • 37. Mechanisms for Handling Coprocesses ο To provide efficient communication between a process and its sub processes which might have been migrated on different nodes. ο Mechanisms : ν ν Disallowing separation of coprocesses. Home node or origin site concept.
  • 38. Cont… : Disallowing Separation of coprocesses ο Easiest method of handling communication between coprocesses is to disallow their separation. ο Methods : ν ν By disallowing the migration of processes that wait for one or more of their children to complete. By ensuring that when a parent process migrates,its children process will be migrated along with it.
  • 39. Cont… ο Disadvantage: ν It does not allow the use of parallelism within jobs.
  • 40. Cont… : Home node or Origin Sites Concept ο Used for communication between a process and its sub process when the two are running on different nodes. ο Allows the complete freedom of migrating a process or its sub process independently and executing them on different nodes of the system.
  • 41. Cont… ο Disadvantage: ν All communication between a parent process and its children processes take place via the home node. ο traffic and the communication cost increaseThe message considerably.
  • 42. Advantages of Process Migration ο Reducing average response time of processes ν To reduce the average response time of the processes, processes of a heavily loaded node are migrated to idle or underutilized nodes. ο Speeding up individual jobs ν ν ν A migration of job to different node is done and execute them concurrently. Migrate a job to a node having a faster CPU or to a node at which it has minimum turnaround time. More speed up more migration cost involved.
  • 43. Cont… ο Gaining higher throughput ν Process migration facility may also be used properly to mix I/O and CPU-bound processes on a global basis for increasing the throughput of the system. ο Utilizing resources effectively ν Depending upon the nature of a process, it can be migrated to suitable node to utilize the system resource in the most efficient manner.
  • 44. 59 Cont… ο Reducing network traffic ν Migrating a process closer to the resources it is using most heavily. ο Improving system reliability ν Migrate a copy of a critical process to some other node and to execute both the original and copied processes concurrently on different nodes. ο Improving system security ν A sensitive process may be migrated and run on a secure node.