SlideShare a Scribd company logo
1 of 13
TASK MIGRATION
Group Members
1 – Imran Khan BSIT-F14-LC-236
2 – Allah Rakha BSIT-F14-LC-241
3 -Sunny Arif BSIT-F14-LC-224
4 –Mirza Khurrum BSIT-F14-LC-249
Introduction
 process/task migration as the transfer of partially executed tasks to another node in
a distributed system.
 in other words, preemptive task transfer. Some references to task migration include
the transfer of processes before execution begins, but the most difficult issues are
those related to preemption.
Terminology:
 Task placement: non-preemptive transfer of process that has never run
 Task migration: preemptive transfer of process that has been executed
 Home node: site where the process originates
 Foreign process: process executing on a node other than its home node
 Freezing: when a process is migrated, its execution is interrupted (frozen) for the
time it takes to move the process to another site.
Introduction
Migration is useful for several reasons:
 load distribution, to equalize workload due to
1 transient periods of high load at some network nodes (transfer processes from
temporarily overloaded node to another node)
2 or in a system where process origination is always unbalanced (a few workstations
consistently generate many processes )
 to return a workstation to its owner. (migrate a foreign process back to its home
node when owner returns)
 to improve communication (processes that communicate frequently can be moved
to the same node; processes that access resources at a remote site may be moved to
that site)
Introduction
Two steps in task migration:
1 State transfer: collect all information crucial to process execution and transfer to
another machine
2 Unfreeze: after installing the process state at the new site, the process is put in the
Ready queue to be scheduled
Issues in Task Migration
State Transfer: Issues to consider here include
 Cost in processor time, network bandwidth, etc.:
When a process is moved to another node, it is frozen until the transfer is
complete. There is the cost of a complete context switch, plus transfer, plus
possible affect on other processes that might be affected. (Processes that
interact with the migrating process may timeout during the interval when it is
frozen, and thus could be aborted)
 Residual dependencies: These are resources that the original host node must
maintain on behalf of the migrated process. For example, a process may
transfer pages in virtual memory only as they are referenced; the original
host may have to forward messages directed to the process at its original
site.
Issues in Task Migration
Location Transparency:
 Users aren't required to know where a task is executed; there
should be no affect on the process. Process names, file names,
etc., must be independent of the host machine. A uniform name
space is important to allow the process to maintain access to
system resources, to continue to be able to communicate with
other processes, etc.
Issues in Task Migration
Structure of the Migration Mechanism:
 Singhal and Shivaratri emphasize the separation of policy from
mechanism. Policy decides when/where/why transfer to be
done (see discussion of policies earlier) while mechanism is the
act of collecting state, sending it elsewhere, etc. As always,
there are benefits to separating the two: for example, policies
can be changed without affecting mechanisms.
Issues in Task Migration
Performance:
This is the major drawback to any kind of
dynamic task migration facility.
Process Migration Mechanisms
Stallings identifies the following issues in designing a
process migration facility:
 Who initiates the migration?
 What part of the process is migrated?
 What happens to messages and signals?
Process Migration Mechanisms
Migration Initiation
 Migration can be initiated either by a module in
the operating system, or by the process itself.
 OS module is the most common when load sharing
is the primary objective of the migration
 If the goal is to move closer to resources or other
processes, then the migration could be initiated by
the process itself.
Process Migration Mechanisms
What is Migrated:
 The process control block (PCB) is required, but is relatively
easy to transfer from one machine to another (especially if
the machines are heterogeneous)
 Process address space is more difficult. The process will
have a number of virtual pages in memory, and the question
is whether to some or all, whether to precopy (move pages to
new host while execution continues on old host), etc
Process Migration Mechanisms
Some possibilities include:
 Immediately move all of them (eager transfer)
 Move all pages that are dirty, but transfer others
on demand only
 Move no pages at all until they are referenced
 Flush pages to disk, page back in when they are
referenced on the remote site
Process Migration Mechanisms
Messages and Signals:
 Any messages or signals intended for a frozen
process are stored at the host until the process
transfer is complete
 Other messages and signals must be routed from
the home site to the new host.

More Related Content

What's hot

Distributed shred memory architecture
Distributed shred memory architectureDistributed shred memory architecture
Distributed shred memory architectureMaulik Togadiya
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memoryAshish Kumar
 
Analysis of mutual exclusion algorithms with the significance and need of ele...
Analysis of mutual exclusion algorithms with the significance and need of ele...Analysis of mutual exclusion algorithms with the significance and need of ele...
Analysis of mutual exclusion algorithms with the significance and need of ele...Govt. P.G. College Dharamshala
 
Optimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed SystemsOptimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed Systemsmridul mishra
 
Distributed Shared Memory
Distributed Shared MemoryDistributed Shared Memory
Distributed Shared MemoryPrakhar Rastogi
 
Operating system support in distributed system
Operating system support in distributed systemOperating system support in distributed system
Operating system support in distributed systemishapadhy
 
Distributed Shared Memory Systems
Distributed Shared Memory SystemsDistributed Shared Memory Systems
Distributed Shared Memory SystemsArush Nagpal
 
Types of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed SystemTypes of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed SystemDHIVYADEVAKI
 
Physical and Logical Clocks
Physical and Logical ClocksPhysical and Logical Clocks
Physical and Logical ClocksDilum Bandara
 
Structure of shared memory space
Structure of shared memory spaceStructure of shared memory space
Structure of shared memory spaceCoder Tech
 
Agreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared MemoryAgreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared MemorySHIKHA GAUTAM
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed systemSunita Sahu
 
Communications is distributed systems
Communications is distributed systemsCommunications is distributed systems
Communications is distributed systemsSHATHAN
 

What's hot (20)

Lecture 3 threads
Lecture 3   threadsLecture 3   threads
Lecture 3 threads
 
Distributed shred memory architecture
Distributed shred memory architectureDistributed shred memory architecture
Distributed shred memory architecture
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
Message passing in Distributed Computing Systems
Message passing in Distributed Computing SystemsMessage passing in Distributed Computing Systems
Message passing in Distributed Computing Systems
 
CS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMSCS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMS
 
Analysis of mutual exclusion algorithms with the significance and need of ele...
Analysis of mutual exclusion algorithms with the significance and need of ele...Analysis of mutual exclusion algorithms with the significance and need of ele...
Analysis of mutual exclusion algorithms with the significance and need of ele...
 
Optimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed SystemsOptimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed Systems
 
Distributed Systems Naming
Distributed Systems NamingDistributed Systems Naming
Distributed Systems Naming
 
Distributed Shared Memory
Distributed Shared MemoryDistributed Shared Memory
Distributed Shared Memory
 
Operating system support in distributed system
Operating system support in distributed systemOperating system support in distributed system
Operating system support in distributed system
 
Distributed Shared Memory Systems
Distributed Shared Memory SystemsDistributed Shared Memory Systems
Distributed Shared Memory Systems
 
Types of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed SystemTypes of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed System
 
Physical and Logical Clocks
Physical and Logical ClocksPhysical and Logical Clocks
Physical and Logical Clocks
 
Structure of shared memory space
Structure of shared memory spaceStructure of shared memory space
Structure of shared memory space
 
Agreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared MemoryAgreement Protocols, distributed File Systems, Distributed Shared Memory
Agreement Protocols, distributed File Systems, Distributed Shared Memory
 
OS Migration
OS MigrationOS Migration
OS Migration
 
Distributed deadlock
Distributed deadlockDistributed deadlock
Distributed deadlock
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed system
 
Communications is distributed systems
Communications is distributed systemsCommunications is distributed systems
Communications is distributed systems
 
Distributed shared memory ch 5
Distributed shared memory ch 5Distributed shared memory ch 5
Distributed shared memory ch 5
 

Similar to Task migration in os

Cs 704 d aos-resource&processmanagement
Cs 704 d aos-resource&processmanagementCs 704 d aos-resource&processmanagement
Cs 704 d aos-resource&processmanagementDebasis Das
 
Intro Basic of OS .ppt
Intro Basic of OS .pptIntro Basic of OS .ppt
Intro Basic of OS .pptVarsha506533
 
Final jaypaper linux
Final jaypaper linuxFinal jaypaper linux
Final jaypaper linuxjaya380
 
Distributed Operating Systems
Distributed Operating SystemsDistributed Operating Systems
Distributed Operating SystemsUmmiya Mohammedi
 
Unit 2 part 2(Process)
Unit 2 part 2(Process)Unit 2 part 2(Process)
Unit 2 part 2(Process)WajeehaBaig
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentationchnrketan
 
Parallel Processing (Part 2)
Parallel Processing (Part 2)Parallel Processing (Part 2)
Parallel Processing (Part 2)Ajeng Savitri
 
Linux process management
Linux process managementLinux process management
Linux process managementRaghu nath
 
EMBEDDED OS
EMBEDDED OSEMBEDDED OS
EMBEDDED OSAJAL A J
 
FME World Tour 2015 - FME & Data Migration Simon McCabe
FME World Tour 2015 -  FME & Data Migration Simon McCabeFME World Tour 2015 -  FME & Data Migration Simon McCabe
FME World Tour 2015 - FME & Data Migration Simon McCabeIMGS
 
Basic features of distributed system
Basic features of distributed systemBasic features of distributed system
Basic features of distributed systemsatish raj
 

Similar to Task migration in os (20)

Cs 704 d aos-resource&processmanagement
Cs 704 d aos-resource&processmanagementCs 704 d aos-resource&processmanagement
Cs 704 d aos-resource&processmanagement
 
Intro Basic of OS .ppt
Intro Basic of OS .pptIntro Basic of OS .ppt
Intro Basic of OS .ppt
 
Final jaypaper linux
Final jaypaper linuxFinal jaypaper linux
Final jaypaper linux
 
Live migration
Live migrationLive migration
Live migration
 
Distributed Operating Systems
Distributed Operating SystemsDistributed Operating Systems
Distributed Operating Systems
 
Os
OsOs
Os
 
Processing management
Processing managementProcessing management
Processing management
 
Chapter 3 chapter reading task
Chapter 3 chapter reading taskChapter 3 chapter reading task
Chapter 3 chapter reading task
 
Ch3 processes
Ch3   processesCh3   processes
Ch3 processes
 
Unit 2 part 2(Process)
Unit 2 part 2(Process)Unit 2 part 2(Process)
Unit 2 part 2(Process)
 
Process migration and load balancing
Process migration and load balancingProcess migration and load balancing
Process migration and load balancing
 
Chapter 3-Processes.ppt
Chapter 3-Processes.pptChapter 3-Processes.ppt
Chapter 3-Processes.ppt
 
Os
OsOs
Os
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentation
 
Parallel Processing (Part 2)
Parallel Processing (Part 2)Parallel Processing (Part 2)
Parallel Processing (Part 2)
 
Process Management
Process ManagementProcess Management
Process Management
 
Linux process management
Linux process managementLinux process management
Linux process management
 
EMBEDDED OS
EMBEDDED OSEMBEDDED OS
EMBEDDED OS
 
FME World Tour 2015 - FME & Data Migration Simon McCabe
FME World Tour 2015 -  FME & Data Migration Simon McCabeFME World Tour 2015 -  FME & Data Migration Simon McCabe
FME World Tour 2015 - FME & Data Migration Simon McCabe
 
Basic features of distributed system
Basic features of distributed systemBasic features of distributed system
Basic features of distributed system
 

Recently uploaded

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 

Recently uploaded (20)

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 

Task migration in os

  • 1. TASK MIGRATION Group Members 1 – Imran Khan BSIT-F14-LC-236 2 – Allah Rakha BSIT-F14-LC-241 3 -Sunny Arif BSIT-F14-LC-224 4 –Mirza Khurrum BSIT-F14-LC-249
  • 2. Introduction  process/task migration as the transfer of partially executed tasks to another node in a distributed system.  in other words, preemptive task transfer. Some references to task migration include the transfer of processes before execution begins, but the most difficult issues are those related to preemption. Terminology:  Task placement: non-preemptive transfer of process that has never run  Task migration: preemptive transfer of process that has been executed  Home node: site where the process originates  Foreign process: process executing on a node other than its home node  Freezing: when a process is migrated, its execution is interrupted (frozen) for the time it takes to move the process to another site.
  • 3. Introduction Migration is useful for several reasons:  load distribution, to equalize workload due to 1 transient periods of high load at some network nodes (transfer processes from temporarily overloaded node to another node) 2 or in a system where process origination is always unbalanced (a few workstations consistently generate many processes )  to return a workstation to its owner. (migrate a foreign process back to its home node when owner returns)  to improve communication (processes that communicate frequently can be moved to the same node; processes that access resources at a remote site may be moved to that site)
  • 4. Introduction Two steps in task migration: 1 State transfer: collect all information crucial to process execution and transfer to another machine 2 Unfreeze: after installing the process state at the new site, the process is put in the Ready queue to be scheduled
  • 5. Issues in Task Migration State Transfer: Issues to consider here include  Cost in processor time, network bandwidth, etc.: When a process is moved to another node, it is frozen until the transfer is complete. There is the cost of a complete context switch, plus transfer, plus possible affect on other processes that might be affected. (Processes that interact with the migrating process may timeout during the interval when it is frozen, and thus could be aborted)  Residual dependencies: These are resources that the original host node must maintain on behalf of the migrated process. For example, a process may transfer pages in virtual memory only as they are referenced; the original host may have to forward messages directed to the process at its original site.
  • 6. Issues in Task Migration Location Transparency:  Users aren't required to know where a task is executed; there should be no affect on the process. Process names, file names, etc., must be independent of the host machine. A uniform name space is important to allow the process to maintain access to system resources, to continue to be able to communicate with other processes, etc.
  • 7. Issues in Task Migration Structure of the Migration Mechanism:  Singhal and Shivaratri emphasize the separation of policy from mechanism. Policy decides when/where/why transfer to be done (see discussion of policies earlier) while mechanism is the act of collecting state, sending it elsewhere, etc. As always, there are benefits to separating the two: for example, policies can be changed without affecting mechanisms.
  • 8. Issues in Task Migration Performance: This is the major drawback to any kind of dynamic task migration facility.
  • 9. Process Migration Mechanisms Stallings identifies the following issues in designing a process migration facility:  Who initiates the migration?  What part of the process is migrated?  What happens to messages and signals?
  • 10. Process Migration Mechanisms Migration Initiation  Migration can be initiated either by a module in the operating system, or by the process itself.  OS module is the most common when load sharing is the primary objective of the migration  If the goal is to move closer to resources or other processes, then the migration could be initiated by the process itself.
  • 11. Process Migration Mechanisms What is Migrated:  The process control block (PCB) is required, but is relatively easy to transfer from one machine to another (especially if the machines are heterogeneous)  Process address space is more difficult. The process will have a number of virtual pages in memory, and the question is whether to some or all, whether to precopy (move pages to new host while execution continues on old host), etc
  • 12. Process Migration Mechanisms Some possibilities include:  Immediately move all of them (eager transfer)  Move all pages that are dirty, but transfer others on demand only  Move no pages at all until they are referenced  Flush pages to disk, page back in when they are referenced on the remote site
  • 13. Process Migration Mechanisms Messages and Signals:  Any messages or signals intended for a frozen process are stored at the host until the process transfer is complete  Other messages and signals must be routed from the home site to the new host.