Professional Documents
Culture Documents
DCS Paper Jha 2 Col
DCS Paper Jha 2 Col
Dr. Debasish Ghose, Department of Aerospace Engineering, Indian Institute of Science, Bangalore-560 02, INDIA
Email: dghose@aero.iisc.ernet.in
the maximum distance between any two nodes Method_3: Arrival rate dependent load balancing
( )
is lg N links. Hypercubes provide a good
strategy where load is transferred to connected nodes to
balance their queue length disparity in proportion
basis for scalable systems, since their n
complexity grows logarithmically with the to λi / λi .
number of nodes. We have considered i =1
Hypercube in 3-dimension (containing 8
nodes). 7. DISCUSSION OF RESULTS
5. SYSTEM’S ALGORITHM a) Simulation in a Completely Connected Network
We run the simulation without load balancing with the
The algorithm for the simulation can be summarized in parameters of Table-1 and Table-2 and then again we
the following steps written in near C-language pseudo repeat the same simulation with load balancing.
code. At each node the following algorithm is performed:
The results using method-1are tabulated below.
// Initializations
Processor_Status = Idle ; Queue_Length = Empty ; S Input No Load Resp Wait Percen
Whether_Next_Job_Ready = No N Data de Bal onse Time tage
o. Table ance Time Busy
do Time
{ 1 1 1 I 1.41 0.40 42.87
If (Whether_Next_Job_Ready == No) 2 1 1 A 1.48 0.44 48.12
{ Creat_Next_Job() ;
3 1 2 I 3.52 2.21 64.01
Whether_Next_Job_Ready = Yes ;}
4 1 2 A 2.33 1.05 58.02
If(Whether_Arrival_Of_Next_Next_Job_Matures
== Yes) 5 1 3 I 3.54 1.40 42.21
{Add_To_Queue() ; 6 1 3 A 2.90 0.78 41.30
Whether_Next_Job_Ready = No} 7 1 Sys I 2.72 1.37
If( Processor_Status == Idle ) tem
{ 8 1 Sys A 2.01 0.68
If (Queue_Length == Empty) Do nothing tem
Else 9 2 1 I Keeps Keeps 100
Select_From_Queue_For_Processing() Increa Increa
} sing sing
Else 1 2 1 A 5.57 2.99 80
{ 0
If(Whether_Servicing_Time_Mature == Yes) Where I and A stands for inactive and active.
{
If(Queue_Length == Empty) The rows1, 2 (which is nothing but the serial
Processor_Status = Idle number written in the left most column) show the results
Else of Method-1 using input data from Table-1 at Node-1,
Select_From_Queue_For_Processing() where the average response (wait) time without load
} balancing stabilizes to about 1.41 (0.40) and with load
} balancing it stabilizes to about 1.48 (0.44) which is
If (Scheduling_Period_Mature == Yes ) slightly more than the values obtained without load
BalanceQueue () ; balancing. Similarly the rows 3, 4 show at Node-2, where
} while (Whether_Simulation_Period_Matures ==No ); the average response (wait) time without load balancing
stabilizes to about 3.52 (2.21) and with load balancing it
6. LOAD BALANCING ALGORITHMS stabilizes at the smaller value of about 2.33 (1.05); and
the rows 5, 6 show at Node-3, where the average
Load balancing algorithms have several variants. The response (wait) time without load balancing stabilizes to
simplest variant sends jobs from sites with two or more about 3.54 (1.40) and with load balancing it stabilizes at
jobs to the site with no job, i.e., idle sites. Another the smaller value of about 2.90 (0.78). Finally the rows 7,
variant sends jobs to sites with less than a fixed number 8 show the average system response (wait) time without
of jobs. Yet another variant removes jobs from sites only load balancing stabilizes to about 2.72 (1.37) and with
if the number of jobs exceeds some threshold number. To load balancing it stabilizes at about 2.01 (0.68).
balance the load, first of all we calculate the average load At individual nodes the performance may
of the connected nodes then try to balance the load in one improve or degrade in terms of response time, wait time,
of the following three ways: and percentage busy time. It depends on whether jobs are
transferred from or to the node. For example, at Node-1 [4] P.E.Krueger, Distributed Scheduling for a Changing
the performance degrades because jobs are transferred to Environment, PhD thesis, University of Winconsin –
the Node-1 from Node-2 and 3. For the same reason Madison, 1988.
performance in Nodes-2 and 3 improves. However, the
overall performance of the DCS improves when load [5] P.E.Krueger, and R.A. Finkel, An Adaptive Load
balancing is done. It is worth mentioning that the load Balancing Algorithm for a Multicomputer, Technical
balancing only improves the response (wait) time of the Report 539, University of Winconsin – Madison, Apr
user at the expense of others (conservation law). 1984.
The rows 9, 10 show the result of Method-1
using input data from Table-2 at unstable Node-1, where [6] Y.A. Wang, and R.J.T. Morris, Load Sharing in
the average response (wait) time never stabilizes and Distributed Systems, IEEE Transactions on Computers,
increases without bound but due to load balancing it C-34(3), pp. 204, Mar 1985.
stabilizes to about 5.57 (2.99) which is a significant
improvement. It should also be noted that the average [7] L.M. Ni, C.W. Xu, and T.B. Gendreau, “A
percentage busy time of a processor at Node-1 remains at Distributed Drafting Algorithm for Load Balancing “,
100% (always busy), but due to load balancing its IEEE Transaction on Software Engineering, SE-11 (10),
average percentage busy time decreases. pp. 1153, Oct 1995.
If one compares the system responses and wait
times of various methods then we find that Method-2 and [8] D. Ghose, and V. Mani “Distributed Computation
3 are better than Method-1. This is quite expected with Communication Delays: Asymptotic Performance
because in Method-1 only the queue length is taken into Analysis”, J. of Parallel and Distributed Computing, Vol.
account irrespective of service duration of the jobs in the 23, pp. 293, 1994
queue or the rate of arrival of local jobs. One can also
seen that methods-2 and 3 give almost identical results. [9] V. Bharadwaj, D. Ghose, and V. Mani, “Optimal
Sequencing and Arrangement in Distributed Single-Level
b) Simulation in a Hypercube Network Networks with Communication Delays”, IEEE Trans.
We run the simulation without load balancing Parallel and Distributed Systems, Vol.-5, pp. 968, 1994
with the parameters of Table-3 and Table-4 and then
again we repeat the same simulation with load balancing. [10] V. Mani, and D. Ghose, “Distributed Computation
The data (but not included here due to lack of space) in Linear Networks: Closed-Form Solution”, IEEE
shows that the average system response and wait time Trans. Aerospace and Electronic Systems, Vol. 30, pp.
improves due to load balancing. 471, 1994
9. REFERENCES