SlideShare a Scribd company logo
1 of 21
PROCESSOR ALLOCATION 
B Y R I TU RANJAN SHR I VAS TWA 
Distributed 
Systems
WHAT YOU WILL LEARN? 
Why Distributed Systems need processor allocation 
How performance of Distributed Systems can be 
enhanced by using different Processor allocation 
strategies 
What are the issues that we face while designing a 
processor allocation strategy 
RITU RANJAN SHRIVASTWA
MOTIVATION 
• We are talking about distributed systems, hence multiple 
connected machines 
• A good algorithm is always appreciated 
• Speeds up Computation 
• Proper use of resources 
• Minimizing CPU Idle time 
• Concept of using idle workstations is a weak attempt at 
recapturing the wasted cycles 
• Using a single 1000-MIPS CPU may be much more expensive than 
100 10-MIPS CPU, then the Price/Performance ratio of the latter is 
much better. (It may also not be possible to build a much higher 
performance CPU) 
RITU RANJAN SHRIVASTWA 
Highest Performance 
system has: 
3,120,000 cores at 
2.2 GHz 
54,902.4 TFLOPS/s
ALLOCATION MODELS 
• Before talking about allocating processor, we make 
assumptions about the allocation models: 
• All machines are identical or at least code compatible 
• They differ at most by speed (MIPS or FLOPS) 
• Homogeneity (architecture) 
• The system is fully connected (doesn’t always mean a wire 
to each system; just that transport connections can be 
established) 
• New work is generated when a process decides to fork or 
otherwise create a sub-process 
RITU RANJAN SHRIVASTWA
PROCESSOR ALLOCATION STRATEGIES 
• NONMIGRATORY 
• A process when created is assigned a machine where it 
stays until it terminates. It doesn’t matter how overloaded 
the machine becomes or how many other machines are 
idle. 
• MIGRATORY 
• In contrast, a process can be moved even after execution 
hence allowing better load balancing. 
• Although these provide better load balancing, they have a 
major impact on system design 
RITU RANJAN SHRIVASTWA
AN EXAMPLE OF PROCESSOR ALLOCATION 
TO GIVE AN IDEA OF THE NEED 
RITU RANJAN SHRIVASTWA 
Mean 
Response Time 
Processor1 <- A 
Processor2 <- B 
=(10+8)/2 = 9 sec 
Processor1 <- B 
Processor2 <- A 
=(30+6)/2 = 18 sec 
Q. Which allocation is better?
AN EXAMPLE OF PROCESSOR ALLOCATION 
TO GIVE AN IDEA OF THE NEED 
RITU RANJAN SHRIVASTWA 
Mean 
Response Time 
Processor1 <- A 
Processor2 <- B 
=(10+8)/2 = 9 sec 
Processor1 <- B 
Processor2 <- A 
=(30+6)/2 = 18 sec 
Q. Which allocation is better?
ISSUES IN PROCESSOR ALLOCATION 
• Design Issues 
• Deterministic vs Heuristic Algorithms 
• Centralized vs Distributed Algorithms 
• Optimal vs Sub-optimal Algorithms 
• Local vs Global Algorithms 
• Sender-initiated vs Receiver-initiated Algorithms 
• Implementation Issues 
RITU RANJAN SHRIVASTWA
DETERMINISTIC VS HEURISTIC 
ALGORITHMS 
• Deterministic 
• All information regarding processes is known (for example: 
computing requirements, file requirements, communication 
requirements, etc.) 
• Total information is not always available but approximations 
can be done. For example: In Banking, Insurance, Airline 
Reservation, today’s work is just like yesterdays so nature of 
workload can at least be statistically characterized. 
• Heuristic 
• Workload is completely unpredictable 
• Requests for work may change dramatically from hour to 
hour or minute to minute 
RITU RANJAN SHRIVASTWA
CENTRALIZED VS DISTRIBUTED 
• Centralized 
• Collecting all the information at one place 
(machine/system) allows better decision to be made but is 
less robust and can put a heavy load on the central 
machine. 
• Distributed 
• Opposite to centralized (may also be termed as 
Decentralized). Here there is no central machine and 
algorithm is implemented on all the machines. 
RITU RANJAN SHRIVASTWA
OPTIMAL VS SUB-OPTIMAL 
• Depends upon the first two issues 
• Are we trying to find best solution or simply an 
acceptable one 
• Optimal Solutions can be found out in both 
centralize and distributed systems but finding 
optimal solution may be costly as they involve 
collecting more information and processing it more 
thoroughly. 
• In practice we use Heuristic, Distributed and Sub-optimal 
solutions 
RITU RANJAN SHRIVASTWA
LOCAL VS GLOBAL 
• Deciding whether to keep a new born or forked 
process in the same machine or transferring to other 
• Crude algorithms suggest to keep the newly born 
process to the same machine if the workload on 
that machine is below threshold value. But this 
technique may be far from optimal. 
• A better approach is to keep information of all the 
systems and decide upon which system to be 
allocated with the new process. This can provide a 
slight better result than the local technique but at a 
much higher cost. 
RITU RANJAN SHRIVASTWA
SENDER-INITIATED VS RECEIVER-INITIATED 
ALGORITHMS 
• This issue deals with location policy 
• Once transfer policy decides whether to keep a process or 
not, this comes into play 
Sender Initiated Receiver Initiated 
RITU RANJAN SHRIVASTWA
IMPLEMENTATION ISSUES 
• Calculating work load (not an easy task) 
• A way suggests to count the total no. of processes and use the number as 
the load – but on idle systems even there are various processes that keep 
on running in background so process count says nothing about current 
load) 
• A second way is to count just the running or ready processes 
• A more direct measure is to capture the busy time of the CPU that can be 
achieved by setting a timer to generate periodic interrupts that records the 
current CPU status. Con: Interrupts are switched off when kernel executes 
critical code. This may lead to faulty readings and will tend to 
underestimate the true CPU usage 
• Another implementation takes into consideration the Overhead of the 
algorithms (during transferring processes) but is not easy so most algorithms 
ignore it 
• Next we consider complexity of the algorithm as an issue. (The algorithm 
may produce better results but its running time degrades the outcome and 
which may not be better than existing algorithms). An example. 
RITU RANJAN SHRIVASTWA
PROCESSOR ALLOCATION 
ALGORITHMS 
• There are many algorithms like 
• A GRAPH-THEORETIC DETERMINISTIC ALGORITHM 
• A CENTRALIZED ALGORITHM 
• A HIERARCHICAL ALGORITHM 
• A SENDER-INITIATED DISTRIBUTED HEURISTIC ALGORITHM 
• A RECEIVER INITITATED DISTRIBUTED HEURISTIC ALGORITHM 
• A BIDDING ALGORITHM 
• In this part we will study only about 
• A GRAPH-THEORETIC DETERMINISTIC ALGORITHM 
RITU RANJAN SHRIVASTWA
A GRAPH-THEORETIC DETERMINISTIC 
ALGORITHM 
• Recall assumptions of Deterministic Algorithms 
• Here the communication requirements are known 
• There can be more processes than processors 
• In which case multiple processes are allocated to one 
processor 
• The system can be represented as a weighted graph 
• Each node is a process 
• Each arc (edge) represents the flow of messages between two 
processes 
• Lets take a scenario where there are 3 processors and 9 
processes 
RITU RANJAN SHRIVASTWA
A GRAPH-THEORETIC DETERMINISTIC 
ALGORITHM (CONTD.) 
• The weighted graph would look like 
RITU RANJAN SHRIVASTWA
A GRAPH-THEORETIC DETERMINISTIC 
ALGORITHM (CONTD.) 
• The problem is reduced to finding a way to partition 
(i.e., cut) the graph into k disjoint sub-graphs, 
subject to certain constraints (e.g., total CPU and 
memory req. below some limits for each sub-graph) 
• Arcs joining two sub-graphs will represent network traffic 
• Arcs joining two processes within a sub-graph can be 
ignored as it is intra-machine communication. 
• Goal is to find the partitioning that minimizes the 
network traffic while meeting all the constraints. 
RITU RANJAN SHRIVASTWA
A GRAPH-THEORETIC DETERMINISTIC 
ALGORITHM (CONTD.) 
CPU1 CPU 2 CPU3 
Partitioning the graph to allocate 9 processes to 3 processors 
Network traffic = ΣEn [sum of all network edges] 
= 30 
We can also partition the graph differently, as we will see in the next slide 
RITU RANJAN SHRIVASTWA
A GRAPH-THEORETIC DETERMINISTIC 
ALGORITHM (CONTD.) 
CPU1 CPU 2 CPU3 
Partitioning the graph to allocate 9 processes to 3 processors 
Network traffic = ΣEn [sum of all network edges] 
= 28 
Clearly we can see that a different approach reduces network traffic 
RITU RANJAN SHRIVASTWA
POST QUESTIONS OR COMMENTS BELOW 
RITU RANJAN SHRIVASTWA

More Related Content

What's hot

Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed SystemSunita Sahu
 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system modelHarshad Umredkar
 
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
 
Processor Allocation (Distributed computing)
Processor Allocation (Distributed computing)Processor Allocation (Distributed computing)
Processor Allocation (Distributed computing)Sri Prasanna
 
Load balancing in Distributed Systems
Load balancing in Distributed SystemsLoad balancing in Distributed Systems
Load balancing in Distributed SystemsRicha Singh
 
Structure of shared memory space
Structure of shared memory spaceStructure of shared memory space
Structure of shared memory spaceCoder Tech
 
file sharing semantics by Umar Danjuma Maiwada
file sharing semantics by Umar Danjuma Maiwada file sharing semantics by Umar Danjuma Maiwada
file sharing semantics by Umar Danjuma Maiwada umardanjumamaiwada
 
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 SystemsDr Sandeep Kumar Poonia
 
File replication
File replicationFile replication
File replicationKlawal13
 
Unit 1 architecture of distributed systems
Unit 1 architecture of distributed systemsUnit 1 architecture of distributed systems
Unit 1 architecture of distributed systemskaran2190
 
Dichotomy of parallel computing platforms
Dichotomy of parallel computing platformsDichotomy of parallel computing platforms
Dichotomy of parallel computing platformsSyed Zaid Irshad
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memoryAshish Kumar
 

What's hot (20)

Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system model
 
Distributed shared memory ch 5
Distributed shared memory ch 5Distributed shared memory ch 5
Distributed shared memory ch 5
 
Resource management
Resource managementResource management
Resource management
 
CS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMSCS6601 DISTRIBUTED SYSTEMS
CS6601 DISTRIBUTED SYSTEMS
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 
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
 
Processor Allocation (Distributed computing)
Processor Allocation (Distributed computing)Processor Allocation (Distributed computing)
Processor Allocation (Distributed computing)
 
Load balancing in Distributed Systems
Load balancing in Distributed SystemsLoad balancing in Distributed Systems
Load balancing in Distributed Systems
 
Structure of shared memory space
Structure of shared memory spaceStructure of shared memory space
Structure of shared memory space
 
file sharing semantics by Umar Danjuma Maiwada
file sharing semantics by Umar Danjuma Maiwada file sharing semantics by Umar Danjuma Maiwada
file sharing semantics by Umar Danjuma Maiwada
 
Distributed Mutual exclusion algorithms
Distributed Mutual exclusion algorithmsDistributed Mutual exclusion algorithms
Distributed Mutual exclusion algorithms
 
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
 
6.Distributed Operating Systems
6.Distributed Operating Systems6.Distributed Operating Systems
6.Distributed Operating Systems
 
File replication
File replicationFile replication
File replication
 
Stream oriented communication
Stream oriented communicationStream oriented communication
Stream oriented communication
 
Unit 1 architecture of distributed systems
Unit 1 architecture of distributed systemsUnit 1 architecture of distributed systems
Unit 1 architecture of distributed systems
 
Dichotomy of parallel computing platforms
Dichotomy of parallel computing platformsDichotomy of parallel computing platforms
Dichotomy of parallel computing platforms
 
Naming in Distributed System
Naming in Distributed SystemNaming in Distributed System
Naming in Distributed System
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 

Similar to Processor allocation in Distributed Systems

Round Robin Algorithm.pptx
Round Robin Algorithm.pptxRound Robin Algorithm.pptx
Round Robin Algorithm.pptxSanad Bhowmik
 
Distributed System Management
Distributed System ManagementDistributed System Management
Distributed System ManagementIbrahim Amer
 
FAULT TOLERANCE OF RESOURCES IN COMPUTATIONAL GRIDS
FAULT TOLERANCE OF RESOURCES IN COMPUTATIONAL GRIDSFAULT TOLERANCE OF RESOURCES IN COMPUTATIONAL GRIDS
FAULT TOLERANCE OF RESOURCES IN COMPUTATIONAL GRIDSMaurvi04
 
Let’s Fix Logging Once and for All
Let’s Fix Logging Once and for AllLet’s Fix Logging Once and for All
Let’s Fix Logging Once and for AllScyllaDB
 
Operating system 30 preemptive scheduling
Operating system 30 preemptive schedulingOperating system 30 preemptive scheduling
Operating system 30 preemptive schedulingVaibhav Khanna
 
참여기관_발표자료-국민대학교 201301 정기회의
참여기관_발표자료-국민대학교 201301 정기회의참여기관_발표자료-국민대학교 201301 정기회의
참여기관_발표자료-국민대학교 201301 정기회의DzH QWuynh
 
Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.Shreya Kumar
 
An Introduction to TensorFlow architecture
An Introduction to TensorFlow architectureAn Introduction to TensorFlow architecture
An Introduction to TensorFlow architectureMani Goswami
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.pptansariparveen06
 
Enabling presto to handle massive scale at lightning speed
Enabling presto to handle massive scale at lightning speedEnabling presto to handle massive scale at lightning speed
Enabling presto to handle massive scale at lightning speedShubham Tagra
 
40414094210-phpapp01 (1).pdf
40414094210-phpapp01 (1).pdf40414094210-phpapp01 (1).pdf
40414094210-phpapp01 (1).pdfRebaMaheen
 
Load Balancing In Distributed Computing
Load Balancing In Distributed ComputingLoad Balancing In Distributed Computing
Load Balancing In Distributed ComputingRicha Singh
 
Multi-Threading.pptx
Multi-Threading.pptxMulti-Threading.pptx
Multi-Threading.pptxCHANDRUG31
 
Netflix SRE perf meetup_slides
Netflix SRE perf meetup_slidesNetflix SRE perf meetup_slides
Netflix SRE perf meetup_slidesEd Hunter
 

Similar to Processor allocation in Distributed Systems (20)

Real time operating systems
Real time operating systemsReal time operating systems
Real time operating systems
 
Round Robin Algorithm.pptx
Round Robin Algorithm.pptxRound Robin Algorithm.pptx
Round Robin Algorithm.pptx
 
Distributed System Management
Distributed System ManagementDistributed System Management
Distributed System Management
 
FAULT TOLERANCE OF RESOURCES IN COMPUTATIONAL GRIDS
FAULT TOLERANCE OF RESOURCES IN COMPUTATIONAL GRIDSFAULT TOLERANCE OF RESOURCES IN COMPUTATIONAL GRIDS
FAULT TOLERANCE OF RESOURCES IN COMPUTATIONAL GRIDS
 
Let’s Fix Logging Once and for All
Let’s Fix Logging Once and for AllLet’s Fix Logging Once and for All
Let’s Fix Logging Once and for All
 
Operating system 30 preemptive scheduling
Operating system 30 preemptive schedulingOperating system 30 preemptive scheduling
Operating system 30 preemptive scheduling
 
참여기관_발표자료-국민대학교 201301 정기회의
참여기관_발표자료-국민대학교 201301 정기회의참여기관_발표자료-국민대학교 201301 정기회의
참여기관_발표자료-국민대학교 201301 정기회의
 
Section05 scheduling
Section05 schedulingSection05 scheduling
Section05 scheduling
 
CPU Scheduling Part-III.pdf
CPU Scheduling Part-III.pdfCPU Scheduling Part-III.pdf
CPU Scheduling Part-III.pdf
 
Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.
 
An Introduction to TensorFlow architecture
An Introduction to TensorFlow architectureAn Introduction to TensorFlow architecture
An Introduction to TensorFlow architecture
 
Chap2 slides
Chap2 slidesChap2 slides
Chap2 slides
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.ppt
 
pscheduling.ppt
pscheduling.pptpscheduling.ppt
pscheduling.ppt
 
Enabling presto to handle massive scale at lightning speed
Enabling presto to handle massive scale at lightning speedEnabling presto to handle massive scale at lightning speed
Enabling presto to handle massive scale at lightning speed
 
40414094210-phpapp01 (1).pdf
40414094210-phpapp01 (1).pdf40414094210-phpapp01 (1).pdf
40414094210-phpapp01 (1).pdf
 
Load Balancing In Distributed Computing
Load Balancing In Distributed ComputingLoad Balancing In Distributed Computing
Load Balancing In Distributed Computing
 
Multi-Threading.pptx
Multi-Threading.pptxMulti-Threading.pptx
Multi-Threading.pptx
 
Netflix SRE perf meetup_slides
Netflix SRE perf meetup_slidesNetflix SRE perf meetup_slides
Netflix SRE perf meetup_slides
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 

Recently uploaded

Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 

Recently uploaded (20)

Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 

Processor allocation in Distributed Systems

  • 1. PROCESSOR ALLOCATION B Y R I TU RANJAN SHR I VAS TWA Distributed Systems
  • 2. WHAT YOU WILL LEARN? Why Distributed Systems need processor allocation How performance of Distributed Systems can be enhanced by using different Processor allocation strategies What are the issues that we face while designing a processor allocation strategy RITU RANJAN SHRIVASTWA
  • 3. MOTIVATION • We are talking about distributed systems, hence multiple connected machines • A good algorithm is always appreciated • Speeds up Computation • Proper use of resources • Minimizing CPU Idle time • Concept of using idle workstations is a weak attempt at recapturing the wasted cycles • Using a single 1000-MIPS CPU may be much more expensive than 100 10-MIPS CPU, then the Price/Performance ratio of the latter is much better. (It may also not be possible to build a much higher performance CPU) RITU RANJAN SHRIVASTWA Highest Performance system has: 3,120,000 cores at 2.2 GHz 54,902.4 TFLOPS/s
  • 4. ALLOCATION MODELS • Before talking about allocating processor, we make assumptions about the allocation models: • All machines are identical or at least code compatible • They differ at most by speed (MIPS or FLOPS) • Homogeneity (architecture) • The system is fully connected (doesn’t always mean a wire to each system; just that transport connections can be established) • New work is generated when a process decides to fork or otherwise create a sub-process RITU RANJAN SHRIVASTWA
  • 5. PROCESSOR ALLOCATION STRATEGIES • NONMIGRATORY • A process when created is assigned a machine where it stays until it terminates. It doesn’t matter how overloaded the machine becomes or how many other machines are idle. • MIGRATORY • In contrast, a process can be moved even after execution hence allowing better load balancing. • Although these provide better load balancing, they have a major impact on system design RITU RANJAN SHRIVASTWA
  • 6. AN EXAMPLE OF PROCESSOR ALLOCATION TO GIVE AN IDEA OF THE NEED RITU RANJAN SHRIVASTWA Mean Response Time Processor1 <- A Processor2 <- B =(10+8)/2 = 9 sec Processor1 <- B Processor2 <- A =(30+6)/2 = 18 sec Q. Which allocation is better?
  • 7. AN EXAMPLE OF PROCESSOR ALLOCATION TO GIVE AN IDEA OF THE NEED RITU RANJAN SHRIVASTWA Mean Response Time Processor1 <- A Processor2 <- B =(10+8)/2 = 9 sec Processor1 <- B Processor2 <- A =(30+6)/2 = 18 sec Q. Which allocation is better?
  • 8. ISSUES IN PROCESSOR ALLOCATION • Design Issues • Deterministic vs Heuristic Algorithms • Centralized vs Distributed Algorithms • Optimal vs Sub-optimal Algorithms • Local vs Global Algorithms • Sender-initiated vs Receiver-initiated Algorithms • Implementation Issues RITU RANJAN SHRIVASTWA
  • 9. DETERMINISTIC VS HEURISTIC ALGORITHMS • Deterministic • All information regarding processes is known (for example: computing requirements, file requirements, communication requirements, etc.) • Total information is not always available but approximations can be done. For example: In Banking, Insurance, Airline Reservation, today’s work is just like yesterdays so nature of workload can at least be statistically characterized. • Heuristic • Workload is completely unpredictable • Requests for work may change dramatically from hour to hour or minute to minute RITU RANJAN SHRIVASTWA
  • 10. CENTRALIZED VS DISTRIBUTED • Centralized • Collecting all the information at one place (machine/system) allows better decision to be made but is less robust and can put a heavy load on the central machine. • Distributed • Opposite to centralized (may also be termed as Decentralized). Here there is no central machine and algorithm is implemented on all the machines. RITU RANJAN SHRIVASTWA
  • 11. OPTIMAL VS SUB-OPTIMAL • Depends upon the first two issues • Are we trying to find best solution or simply an acceptable one • Optimal Solutions can be found out in both centralize and distributed systems but finding optimal solution may be costly as they involve collecting more information and processing it more thoroughly. • In practice we use Heuristic, Distributed and Sub-optimal solutions RITU RANJAN SHRIVASTWA
  • 12. LOCAL VS GLOBAL • Deciding whether to keep a new born or forked process in the same machine or transferring to other • Crude algorithms suggest to keep the newly born process to the same machine if the workload on that machine is below threshold value. But this technique may be far from optimal. • A better approach is to keep information of all the systems and decide upon which system to be allocated with the new process. This can provide a slight better result than the local technique but at a much higher cost. RITU RANJAN SHRIVASTWA
  • 13. SENDER-INITIATED VS RECEIVER-INITIATED ALGORITHMS • This issue deals with location policy • Once transfer policy decides whether to keep a process or not, this comes into play Sender Initiated Receiver Initiated RITU RANJAN SHRIVASTWA
  • 14. IMPLEMENTATION ISSUES • Calculating work load (not an easy task) • A way suggests to count the total no. of processes and use the number as the load – but on idle systems even there are various processes that keep on running in background so process count says nothing about current load) • A second way is to count just the running or ready processes • A more direct measure is to capture the busy time of the CPU that can be achieved by setting a timer to generate periodic interrupts that records the current CPU status. Con: Interrupts are switched off when kernel executes critical code. This may lead to faulty readings and will tend to underestimate the true CPU usage • Another implementation takes into consideration the Overhead of the algorithms (during transferring processes) but is not easy so most algorithms ignore it • Next we consider complexity of the algorithm as an issue. (The algorithm may produce better results but its running time degrades the outcome and which may not be better than existing algorithms). An example. RITU RANJAN SHRIVASTWA
  • 15. PROCESSOR ALLOCATION ALGORITHMS • There are many algorithms like • A GRAPH-THEORETIC DETERMINISTIC ALGORITHM • A CENTRALIZED ALGORITHM • A HIERARCHICAL ALGORITHM • A SENDER-INITIATED DISTRIBUTED HEURISTIC ALGORITHM • A RECEIVER INITITATED DISTRIBUTED HEURISTIC ALGORITHM • A BIDDING ALGORITHM • In this part we will study only about • A GRAPH-THEORETIC DETERMINISTIC ALGORITHM RITU RANJAN SHRIVASTWA
  • 16. A GRAPH-THEORETIC DETERMINISTIC ALGORITHM • Recall assumptions of Deterministic Algorithms • Here the communication requirements are known • There can be more processes than processors • In which case multiple processes are allocated to one processor • The system can be represented as a weighted graph • Each node is a process • Each arc (edge) represents the flow of messages between two processes • Lets take a scenario where there are 3 processors and 9 processes RITU RANJAN SHRIVASTWA
  • 17. A GRAPH-THEORETIC DETERMINISTIC ALGORITHM (CONTD.) • The weighted graph would look like RITU RANJAN SHRIVASTWA
  • 18. A GRAPH-THEORETIC DETERMINISTIC ALGORITHM (CONTD.) • The problem is reduced to finding a way to partition (i.e., cut) the graph into k disjoint sub-graphs, subject to certain constraints (e.g., total CPU and memory req. below some limits for each sub-graph) • Arcs joining two sub-graphs will represent network traffic • Arcs joining two processes within a sub-graph can be ignored as it is intra-machine communication. • Goal is to find the partitioning that minimizes the network traffic while meeting all the constraints. RITU RANJAN SHRIVASTWA
  • 19. A GRAPH-THEORETIC DETERMINISTIC ALGORITHM (CONTD.) CPU1 CPU 2 CPU3 Partitioning the graph to allocate 9 processes to 3 processors Network traffic = ΣEn [sum of all network edges] = 30 We can also partition the graph differently, as we will see in the next slide RITU RANJAN SHRIVASTWA
  • 20. A GRAPH-THEORETIC DETERMINISTIC ALGORITHM (CONTD.) CPU1 CPU 2 CPU3 Partitioning the graph to allocate 9 processes to 3 processors Network traffic = ΣEn [sum of all network edges] = 28 Clearly we can see that a different approach reduces network traffic RITU RANJAN SHRIVASTWA
  • 21. POST QUESTIONS OR COMMENTS BELOW RITU RANJAN SHRIVASTWA