1 / 41

Getting optimal load distribution using transport-problem-based algorithm

Getting optimal load distribution using transport-problem-based algorithm. Y.V. Ladyzhensky , V.A. Kourktchi Donetsk National Technical University, TODC, LLC. Dynamic Load Balancing. Given: The set V P of P processors each process l i subproblems

jayden
Download Presentation

Getting optimal load distribution using transport-problem-based algorithm

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Getting optimal load distribution using transport-problem-based algorithm Y.V. Ladyzhensky, V.A. Kourktchi Donetsk National Technical University, TODC, LLC

  2. Dynamic Load Balancing Given: • The set VP of P processors each process li subproblems • The processor graph GP(VP,EP) with edge (i, j)EP if data can be transferred from a processor i to a processor j • The problem graph GN(VN,EN):VN is the set of subproblems; EN is the set of edges. An edge (i, j)EN if the subproblem j needs information or events from the subproblem i.

  3. Dynamic Load Balancing Find new allocation of subproblems to the processors: • The maximum load li should be minimal • The number of migrated subproblems should be minimal

  4. Distributed Logic Simulation Properties: • Since the computing network is used the problem graph is full • Since the network communications are slow criteria of data migration is crucial.

  5. Transport-Problem-Based Algorithm Stages: • Find all shortest paths in the processors graph using Floyd algorithm • Find processors with surplus load • Find processors with lack of load • Form input data for the method of potential • Solve the transportation problem • Move the subproblems using gained migration schedule

  6. Transport-Problem-Based Algorithm Stages: • Find all shortest paths in the processors graph using Floyd algorithm • Find processors with surplus load • Find processors with lack of load • Form input data for the method of potential • Solve the transportation problem • Move the subproblems using gained migration schedule

  7. ¬ D,W Floyd(G(C, E )) N Transport-Problem-Based Algorithm Results of Floyd algorithm: • Matrix D represents the lengths of ways • Matrix W information about ways

  8. Transport-Problem-Based Algorithm Stages: • Find all shortest paths in the processors graph using Floyd algorithm • Find processors with surplus load • Find processors with lack of load • Form input data for the method of potential • Solve the transportation problem • Move the subproblems using gained migration schedule

  9. ¬ - ³ 1 O {C ||C | l } i i avg é ù P 1 å = l C ê ú avg i P ê ú = i 1 Transport-Problem-Based Algorithm The set Ocontains processors with surplus load

  10. Transport-Problem-Based Algorithm Stages: • Find all shortest paths in the processors graph using Floyd algorithm • Find processors with surplus load • Find processors with lack of load • Form input data for the method of potential • Solve the transportation problem • Move the subproblems using gained migration schedule

  11. ¬ < } I {C ||C | l i i avg é ù P 1 å = l C ê ú avg i P ê ú = i 1 Transport-Problem-Based Algorithm The set Icontains processors with lack of load

  12. Transport-Problem-Based Algorithm Stages: • Find all shortest paths in the processors graph using Floyd algorithm • Find processors with surplus load • Find processors with lack of load • Form input data for the method of potential • Solve the transportation problem • Move the subproblems using gained migration schedule

  13. O1 = Ci1 O2 = Ci2 Om=Cim I1=Cj1 I2=Cj2 Ik=Cjk Transport-Problem-Based Algorithm Di1j1 Di1j2 Di1jk Di2j1 Di2j2 Di2jk Dimj1 Dimj2 Dimjk

  14. Transport-Problem-Based Algorithm Stages: • Find all shortest paths in the processors graph using Floyd algorithm • Find processors with surplus load • Find processors with lack of load • Form input data for the method of potential • Solve the transportation problem • Move the subproblems using gained migration schedule

  15. Transport-Problem-Based Algorithm • Potentials method results example • Move 5 subproblems from processor 3 to processor1 • Way length is 2 which means 1 transit processor will be used

  16. Transport-Problem-Based Algorithm Stages: • Find all shortest paths in the processors graph using Floyd algorithm • Find processors with surplus load • Find processors with lack of load • Form input data for the method of potential • Solve the transportation problem • Move the subproblems using gained migration schedule

  17. Î foreach k O Î foreach m I c:=vs repeat D ¬ D [c,W[c,m]] [c,W[c,m]] +TS[k,m] ¬ c W[c,m]; until c=m; endfor endfor Transport-Problem-Based Algorithm

  18. Transport-Problem-Based Algorithm • Use matrix W to restore paths between each pair of processors belonging to the sets O and I • The result of transportation problem is added to each edge on the path fromOi toIj

  19. Advantages • Potential methods guarantees the minimum level of migration.

  20. Disadvantage • For some input data the misbalance can be significant after balancing.

  21. Disadvantage • Example: 381 subproblems,20 processors

  22. é ù P 1 å = l C ê ú avg i P ê ú = i 1 ê ú P 1 å = l C ê ú avg i P ë û = i 1 Getting optimal balance • Use algorithm considering average load as • Reuse algorithm considering average load as

  23. Before balancing 362 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 After balancing 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 1 After secondary balancing 20 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 Optimal solution 20 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 Getting optimal balance • Example

  24. Getting optimal balance • The possibility to get optimal balance for any input data has been proved.

  25. Algorithms Testing (misbalance) 10000 subproblems, 20 processors

  26. Algorithms Testing (migration level) 10000 subproblems, 20 processors

  27. Algorithms Testing (migration level) 10000 subproblems, 20 processors

  28. Conclusion • Algorithm that guarantee optimal subproblem distribution from the misbalance point of view is developed. • Migration level non significantly increases in comparison with original Transport-problem based algorithm and still 20% lower than Hu-Blake method.

  29. Future research • Improve the transport-problem-based algorithm by taking in account communications between subproblems • Lower migration to minimum level.

  30. Transport-Problem-Based Algorithm Work example: • Input data: 6 vertices process graph 180 subproblems • Subproblems allocation 10, 40, 55, 20, 20, 35 • Average load is 30 subproblems

  31. Transport-Problem-Based Algorithm Work example: • Result of Floyd algorithm

  32. Transport-Problem-Based Algorithm Work example: • Surplus load: • processor 2 – 10 surplus subproblems • processor 3 – 25 surplus subproblems • Processor 6 – 5 surplus subproblems

  33. Transport-Problem-Based Algorithm Work example: • Surplus load: • processor 1 – 20 deficit subproblems • processor 4 – 10 deficit subproblems • Processor 5 – 10 deficit subproblems

  34. Transport-Problem-Based Algorithm Work example: • Input data for method of potentials

  35. 10 0 1 1 2 - + 10 10 5 1 2 1 1 + - 5 1 1 2 3 1 0 0 Transport-Problem-Based Algorithm Work example: • Initial solution (using the north-west corner method) • Calculate potentials • Find cycle

  36. Transport-Problem-Based Algorithm Work example: • New solution • This solution is optimal

  37. Transport-Problem-Based Algorithm Work example: • Move 10 subproblems from processor 2 to processor 1 • Move 5 subproblems from processor 3 to processor 1 • Move 10 subproblems from processor 3 to processor 4 • Move 10 subproblems from processor 3 to processor 5 • Move 5 subproblems from processor 6 to processor 1

  38. Transport-Problem-Based Algorithm Work example: • The processors 3 and 1 are not connected • Move 5 subproblems from processor 3 to processor 2 • Then move 5 subproblems from processor 2 to processor 1

  39. Transport-Problem-Based Algorithm Work example: • Migration schedule • Move 10+10+10+5+ +5+5 subproblems

  40. Transport-Problem-Based Algorithm Work example: • Result: new load allocation • Allocation is optimal • 45 subproblems moved

More Related