SlideShare a Scribd company logo
1 of 31
Omar Darwish
 Load balancing is the process of improving
the performance of a parallel and distributed
system through a redistribution of load
among the processors.
Who Initialized the load balancing algorithm ?
 Sender Initiated
◦ Initialized by the sender.
◦ Sender sends request messages till it finds a
receiver that can accept the load.
 Receiver Initiated
◦ Initiated by the receiver.
◦ Receiver sends request messages till it finds a
sender that can get the load.
 The performance of the processors is
determined at the beginning of execution.
 Master processor and slave processors.
 A task is always executed on the processor to
which it is assigned.
 Reduce the execution time, minimizing the
communication delays
 Round Robin Algorithm
◦ Processor choosing is performed in series and will
be back to the first processor if the last processor
has been reached.
 Randomized Algorithm
◦ Uses random numbers to choose slave processors
based on statistics .
 Central Manager Algorithm
◦ The central processor is able to gather all slave
processors load information
◦ The chosen slave processor is the processor having
the least load
 Threshold Algorithm
◦ The processes are assigned immediately upon
creation to hosts.
◦ Under loaded, medium and overloaded.
 Dynamic algorithms allocate processes
dynamically when one of the processors
becomes under loaded.
 Buffered in the queue
 Allocated dynamically upon requests from
remote hosts
 Central Queue
◦ Stores new activities and unfulfilled requests as a
cyclic FIFO queue on the main host.
 Local Queue
 A parameter defines the minimal number of
ready processes the load manager attempts
to provide on each processor
 Adaptability
◦ Static No, Dynamic Yes
 Predictability
◦ Static Yes, Dynamic No
 Waiting Time (Queuing time )
 Execution System
 Fitness Function
◦ The main objective of GA is to find a schedule with
optimal cost while load-balancing.
 Less execution time.
 Less communication cost.
 Higher processor utilization.
 Maximum system throughput
 Selection
 Processors permutation
 Crossover
 Exchange portions between strings.
 Mutation
 Change the genes in a chromosome
(Processors set)
 NP complete problem.
 Untractable with large N of tasks and P
number of processors.
Actual execution cost
If we consider communication time, the work
load L is
 Objective function
 Processor 1  3 tasks/slot
 Processor 2 6 tasks/slot
 GCD =3
 P1 P0 P1 P1 P0 P1 P1 P0 P1
O(n log log n/log n),
GCD in parallel
 Static Algorithms
 Round robin fashion
 Heterogeneous processors
 Weighting processors depends on capabilities
 Fibonacci gives the high capabilities
processors extra load.
 Rank processors depends on capabilities
 Give each processor weight depends on its
rank (linearly or Fibonacci)
 While (process<>0)
◦ Assign tasks for each processor depends on its
weight
 Linear approach
 Ex
◦ Ordering weights (1,2…,7)
◦ 7 processors
◦ The highest capability takes weight 7
◦ The lowest capability takes weight 1
◦ Processor 7 will get 7 process each slot time
◦ Processor 1will get 1 process each slot time
 Fibonacci approach
 Ex
◦ Ordering weights (1,1,2,3,5,8,13)
◦ 7 processors
◦ The highest capability takes weight 13
◦ The lowest capability takes weight 1
 Processor 7 will get 13 process each slot time
 Processor 1will get 1 process each slot time
Load
Balancer
Tasks
P1
P2
P3
Distributing Tasks
among different
processors
1 t 2 t 3 t 4 t 5 t 6 t 7 t
Round
1
1 t 2 t 3 t 4 t 5 t 6 t 7 t
Round
2
Until No more tasks
1 t 1 t 2 t 3 t 5 t 8 t 13 t
Round
1
1 t 1 t 2 t 3 t 5 t 8 t 13 t
Round
2
Until No more tasks
 M tasks
 K processors
 How to distribute tasks among the processors
 Less drops packets
 Less time
 Number of processors N 6,7,8,9,10
 Processors speed :
◦ High speeds (N/2) =0.10 * i  i is the processor #
◦ Low speeds (N/2) =0.03 * i  i is the processor #
 For example processor with id 6 can process
6.0*0.10*number of tasks in the Queue
 Processor with id 2 can process 2.0*0.3*number of tasks in
the Queue .
 Memory
For High speed computers 20 * i locations
For low speed computers 320*i locations
 1000 tasks
 Arrival packets =20, 33,….
0
10
20
30
40
50
60
70
80
90
0 2 4 6 8 10 12
Dropped
# of processors
Dropped Packets
Linear
Fibonachi
0
10
20
30
40
50
60
0 2 4 6 8 10 12
Time
# of processors
Execution Time
Linear Time
Febonachi time
 Fibonacci distribution guarantee the more
utilization of higher capabilities processors
and less load on the less capabilities
processors.
 The presentation explore:
◦ Static vs. Dynamic load balancing technique.
◦ The formulization of task scheduling problem.
 Sharma, Sandeep, Sarabjit Singh, and Meenakshi Sharma. "Performance analysis of
load balancing algorithms." World Academy of Science, Engineering and
Technology 38 (2008): 269-272.
 Rajguru, Abhijit A., and S. S. Apte. "A Comparative Performance Analysis of Load
Balancing Algorithms in Distributed System using Qualitative
Parameters." International Journal of Recent Technology and Engineering 1.3
(2012).
 Shah, Purnima, and S. M. Shah. "Load Balancing in Distributed System Using
Genetic Algorithm}." Special issues on IP Multimedia Communications}: 139-142.
 Attiya, Gamal, and Yskandar Hamam. "Task allocation for minimizing programs
completion time in multicomputer systems." Computational Science and Its
Applications–ICCSA 2004. Springer Berlin Heidelberg, 2004. 97-106.
 Chor, Benny, and Oded Goldreich. "An improved parallel algorithm for integer
GCD." Algorithmica 5.1-4 (1990): 1-10.
 http://kb.linuxvirtualserver.org/wiki/Weighted_Round-Robin_Scheduling
Questions ?

More Related Content

Similar to LoadBalancing .pptx

Continental division of load and balanced ant
Continental division of load and balanced antContinental division of load and balanced ant
Continental division of load and balanced antIJCI JOURNAL
 
multiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptmultiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptnaghamallella
 
Genetic Algorithm for Process Scheduling
Genetic Algorithm for Process SchedulingGenetic Algorithm for Process Scheduling
Genetic Algorithm for Process SchedulingLogin Technoligies
 
Processor allocation in Distributed Systems
Processor allocation in Distributed SystemsProcessor allocation in Distributed Systems
Processor allocation in Distributed SystemsRitu Ranjan Shrivastwa
 
Pipelining of Processors
Pipelining of ProcessorsPipelining of Processors
Pipelining of ProcessorsGaditek
 
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
 
Netflix Keystone Pipeline at Samza Meetup 10-13-2015
Netflix Keystone Pipeline at Samza Meetup 10-13-2015Netflix Keystone Pipeline at Samza Meetup 10-13-2015
Netflix Keystone Pipeline at Samza Meetup 10-13-2015Monal Daxini
 
Fast switching of threads between cores - Advanced Operating Systems
Fast switching of threads between cores - Advanced Operating SystemsFast switching of threads between cores - Advanced Operating Systems
Fast switching of threads between cores - Advanced Operating SystemsRuhaim Izmeth
 
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
 
Maximum pressure policies in stochastic processing networks
Maximum pressure policies in stochastic processing networksMaximum pressure policies in stochastic processing networks
Maximum pressure policies in stochastic processing networksHector Perez
 
Velocity 2018 preetha appan final
Velocity 2018   preetha appan finalVelocity 2018   preetha appan final
Velocity 2018 preetha appan finalpreethaappan
 
High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...
High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...
High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...EUDAT
 

Similar to LoadBalancing .pptx (20)

04 performance
04 performance04 performance
04 performance
 
Continental division of load and balanced ant
Continental division of load and balanced antContinental division of load and balanced ant
Continental division of load and balanced ant
 
Os2
Os2Os2
Os2
 
ERTS UNIT 5.pptx
ERTS UNIT 5.pptxERTS UNIT 5.pptx
ERTS UNIT 5.pptx
 
multiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptmultiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.ppt
 
Genetic Algorithm for Process Scheduling
Genetic Algorithm for Process SchedulingGenetic Algorithm for Process Scheduling
Genetic Algorithm for Process Scheduling
 
Processor allocation in Distributed Systems
Processor allocation in Distributed SystemsProcessor allocation in Distributed Systems
Processor allocation in Distributed Systems
 
Pipelining of Processors
Pipelining of ProcessorsPipelining of Processors
Pipelining of Processors
 
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
 
Netflix Keystone Pipeline at Samza Meetup 10-13-2015
Netflix Keystone Pipeline at Samza Meetup 10-13-2015Netflix Keystone Pipeline at Samza Meetup 10-13-2015
Netflix Keystone Pipeline at Samza Meetup 10-13-2015
 
1844 1849
1844 18491844 1849
1844 1849
 
1844 1849
1844 18491844 1849
1844 1849
 
Fast switching of threads between cores - Advanced Operating Systems
Fast switching of threads between cores - Advanced Operating SystemsFast switching of threads between cores - Advanced Operating Systems
Fast switching of threads between cores - Advanced Operating Systems
 
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
 
Real Time System
Real Time SystemReal Time System
Real Time System
 
Maximum pressure policies in stochastic processing networks
Maximum pressure policies in stochastic processing networksMaximum pressure policies in stochastic processing networks
Maximum pressure policies in stochastic processing networks
 
Velocity 2018 preetha appan final
Velocity 2018   preetha appan finalVelocity 2018   preetha appan final
Velocity 2018 preetha appan final
 
High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...
High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...
High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...
 
cpu scheduling in os
cpu scheduling in oscpu scheduling in os
cpu scheduling in os
 

Recently uploaded

REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationNeilDeclaro1
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 

Recently uploaded (20)

REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 

LoadBalancing .pptx

  • 2.  Load balancing is the process of improving the performance of a parallel and distributed system through a redistribution of load among the processors.
  • 3. Who Initialized the load balancing algorithm ?  Sender Initiated ◦ Initialized by the sender. ◦ Sender sends request messages till it finds a receiver that can accept the load.  Receiver Initiated ◦ Initiated by the receiver. ◦ Receiver sends request messages till it finds a sender that can get the load.
  • 4.  The performance of the processors is determined at the beginning of execution.  Master processor and slave processors.  A task is always executed on the processor to which it is assigned.  Reduce the execution time, minimizing the communication delays
  • 5.  Round Robin Algorithm ◦ Processor choosing is performed in series and will be back to the first processor if the last processor has been reached.  Randomized Algorithm ◦ Uses random numbers to choose slave processors based on statistics .
  • 6.  Central Manager Algorithm ◦ The central processor is able to gather all slave processors load information ◦ The chosen slave processor is the processor having the least load  Threshold Algorithm ◦ The processes are assigned immediately upon creation to hosts. ◦ Under loaded, medium and overloaded.
  • 7.  Dynamic algorithms allocate processes dynamically when one of the processors becomes under loaded.  Buffered in the queue  Allocated dynamically upon requests from remote hosts
  • 8.  Central Queue ◦ Stores new activities and unfulfilled requests as a cyclic FIFO queue on the main host.  Local Queue  A parameter defines the minimal number of ready processes the load manager attempts to provide on each processor
  • 9.  Adaptability ◦ Static No, Dynamic Yes  Predictability ◦ Static Yes, Dynamic No  Waiting Time (Queuing time )  Execution System
  • 10.  Fitness Function ◦ The main objective of GA is to find a schedule with optimal cost while load-balancing.  Less execution time.  Less communication cost.  Higher processor utilization.  Maximum system throughput
  • 11.  Selection  Processors permutation  Crossover  Exchange portions between strings.  Mutation  Change the genes in a chromosome (Processors set)
  • 12.  NP complete problem.  Untractable with large N of tasks and P number of processors.
  • 13. Actual execution cost If we consider communication time, the work load L is
  • 15.
  • 16.  Processor 1  3 tasks/slot  Processor 2 6 tasks/slot  GCD =3  P1 P0 P1 P1 P0 P1 P1 P0 P1 O(n log log n/log n), GCD in parallel
  • 17.  Static Algorithms  Round robin fashion  Heterogeneous processors  Weighting processors depends on capabilities  Fibonacci gives the high capabilities processors extra load.
  • 18.  Rank processors depends on capabilities  Give each processor weight depends on its rank (linearly or Fibonacci)  While (process<>0) ◦ Assign tasks for each processor depends on its weight
  • 19.  Linear approach  Ex ◦ Ordering weights (1,2…,7) ◦ 7 processors ◦ The highest capability takes weight 7 ◦ The lowest capability takes weight 1 ◦ Processor 7 will get 7 process each slot time ◦ Processor 1will get 1 process each slot time
  • 20.  Fibonacci approach  Ex ◦ Ordering weights (1,1,2,3,5,8,13) ◦ 7 processors ◦ The highest capability takes weight 13 ◦ The lowest capability takes weight 1  Processor 7 will get 13 process each slot time  Processor 1will get 1 process each slot time
  • 22. 1 t 2 t 3 t 4 t 5 t 6 t 7 t Round 1 1 t 2 t 3 t 4 t 5 t 6 t 7 t Round 2 Until No more tasks
  • 23. 1 t 1 t 2 t 3 t 5 t 8 t 13 t Round 1 1 t 1 t 2 t 3 t 5 t 8 t 13 t Round 2 Until No more tasks
  • 24.  M tasks  K processors  How to distribute tasks among the processors  Less drops packets  Less time
  • 25.  Number of processors N 6,7,8,9,10  Processors speed : ◦ High speeds (N/2) =0.10 * i  i is the processor # ◦ Low speeds (N/2) =0.03 * i  i is the processor #  For example processor with id 6 can process 6.0*0.10*number of tasks in the Queue  Processor with id 2 can process 2.0*0.3*number of tasks in the Queue .  Memory For High speed computers 20 * i locations For low speed computers 320*i locations  1000 tasks  Arrival packets =20, 33,….
  • 26. 0 10 20 30 40 50 60 70 80 90 0 2 4 6 8 10 12 Dropped # of processors Dropped Packets Linear Fibonachi
  • 27. 0 10 20 30 40 50 60 0 2 4 6 8 10 12 Time # of processors Execution Time Linear Time Febonachi time
  • 28.  Fibonacci distribution guarantee the more utilization of higher capabilities processors and less load on the less capabilities processors.
  • 29.  The presentation explore: ◦ Static vs. Dynamic load balancing technique. ◦ The formulization of task scheduling problem.
  • 30.  Sharma, Sandeep, Sarabjit Singh, and Meenakshi Sharma. "Performance analysis of load balancing algorithms." World Academy of Science, Engineering and Technology 38 (2008): 269-272.  Rajguru, Abhijit A., and S. S. Apte. "A Comparative Performance Analysis of Load Balancing Algorithms in Distributed System using Qualitative Parameters." International Journal of Recent Technology and Engineering 1.3 (2012).  Shah, Purnima, and S. M. Shah. "Load Balancing in Distributed System Using Genetic Algorithm}." Special issues on IP Multimedia Communications}: 139-142.  Attiya, Gamal, and Yskandar Hamam. "Task allocation for minimizing programs completion time in multicomputer systems." Computational Science and Its Applications–ICCSA 2004. Springer Berlin Heidelberg, 2004. 97-106.  Chor, Benny, and Oded Goldreich. "An improved parallel algorithm for integer GCD." Algorithmica 5.1-4 (1990): 1-10.  http://kb.linuxvirtualserver.org/wiki/Weighted_Round-Robin_Scheduling