A Seminar Report On: Computer Engineering Department Academic Year: 2015-2016
A Seminar Report On: Computer Engineering Department Academic Year: 2015-2016
DHANKAWADI PUNE-43.
A
Seminar Report
On
Compiler Scheduling and Collaborative processing
Of Mobile agents for minimizing overheads
SUBMITTED BY
Kanchan A. Shirbhate
3361
TE III
GUIDED BY
Prof. Hemlata Channe
Page 1
CERTIFICAE
________
Head of Department
Prof.Giresh Potddar
Date:-
P:F-SMR-UG/08/R0
Page 2
Abstract
Distributed OS are the systems where we are running our task on multiple machines in
the network . To gain better performance in executing the processes in distributed
enviournments, we allow execution enviournments to move processes from processor to
processor dynamically at any point in the life of the procees. Mobile agent systems need explicit
involvement of the programmer to designate migration and computation schedule of the agent.
Two approaches are proposed and evaluated i.e ,the static and dynamic scheduling algorithms.
The first algorithm works totally offline.After converting the program control flow graph(CFG)
to program dependency graph(PDG), the schedule is worked out. Out the other hand, inorder to
dynamically schedule the agent when it reaches predicate (control flow) nodes, our dynamic
scheduling algorithm generates the motion schedule incrementally. To get good improvement
over unoptimized agent code both in terms of data tranfer size and number of agent migrations.
Keywords : Process scheduling, Overheads Minimizaton, Performance,Improvement
P:F-SMR-UG/08/R0
Page 3
Contents
1. Introduction...5
1.1Objective6
1.2 . Literature Review.6
1.3 Motivating Example6
1.4 Classification..7
1.5 Research issues in Mobile agents .8
2. Survey of Mathematical Model..9
3. Proposed Mathematical Model.10
4. Design and Analysis of the System
4.1 Program Dependency Graph13
4.2 Static Scheduling Algorithm14
4.3 Dynamic Scheduling Algorithm...16
5. Implementation..17
6. Applications19
7. Conclusion ....20
8. References..20
P:F-SMR-UG/08/R0
Page 4
1.Introduction
[2]The idea of using mobile code for distributed computing evolved recently. Then
Mobile Agent paradigm facilitates the movement of code and the state of execution from one
machine to another during the course of evaluation.[2]
1.1 Objective
[1]The optimization problem to schedule the motion of agents in a distributed
environment for data- intensive applications. Our objective is to minimize the overall overhead
due to the data distribution through program analysis.
1.4 Classification:
P:F-SMR-UG/08/R0
Page 5
Where,
Mobile agent = data+code+program state.
The optimized output is generated with the help of the Classic Topology ordering
P:F-SMR-UG/08/R0
Page 6
algorithm
which generates when picking nodes from the working set W.Also additional edges can
Be put into the PDG to enforce objective related constraints.
P:F-SMR-UG/08/R0
Page 7
Domain
Range
Bijective mapping
iface=interface
port=port number port I+
load={cpu_queue_length, cpu_utilization, memory_utilization}
Y - Output Set
F-Functions-{fdispatch,fbalance,fencrypt,fsched,fdatastore,fdatarestore}
fdispatch: I1 O1
I1:{pid | pid I+}
O1:{priority_queue }
fbalance: I2 O2
I2:{priority_queue}
O2:{pid client}
P:F-SMR-UG/08/R0
Page 8
DD-Deterministic data
DD={source of load, agent node to which the process is to be migrated}
NDD- Non-deterministic data.
NDD-{load on each node}
P:F-SMR-UG/08/R0
Page 9
Page 10
2.DynamicScheduling MNM
It shows the PDG of the motivating example. All tables are put as variables here. Each
rectangular box represents a node and the variables inside the box are referenced in the node.
The solid lines represent the dependencies.
P:F-SMR-UG/08/R0
Page 11
Implementation:
Master PC:
1)migrate process from master machine to slave.
2)Balance thread on slave machine.
3)keep record of slave machines.
4)encrypt program file for migration security.
Slave Machine:
1)accept request from master.
2)decrypt the program file sent by master for compilation.
2)execute the process send by master.
3)request master if overhead increase on it to migrate to another machine.
6. References
[1]Xiaotong Zhuang and Santosh Pande Compiler Scheduling of Mobile Agents for Minimizing
Overheads,Proceedings of the 23rd International Conference on Distributed Computing
Systems (ICDCS03)1063-6927/03 $17.00 2003 IEEE.
[2]Yingyue Xu and Hairong Qi Mobile Agent Migration Models and Algorithms for
CollaborativeProcessing,Wireless Communications and Neywrking Conference,2006,WCNC
2006.IEEE(Vloume:4).
P:F-SMR-UG/08/R0
Page 12