120 likes | 265 Views
The P erformance of t he Chandy -Mishra Snapshot algorithm. Jing Mao Instructor: Mikhail Nesterenko. Outline. Introduction Experimental Setup Code Implementation Results Analysis Conclusion Future Work References. Introduction. Chandy Mishra:
E N D
The Performance of the Chandy-Mishra Snapshot algorithm Jing Mao Instructor: Mikhail Nesterenko
Outline Introduction Experimental Setup Code Implementation Results Analysis Conclusion Future Work References
Introduction • Chandy Mishra: • Any random process can take snapshot at random time • Snapshot consists of state information about the system and message queue
Introduction • Measuring Performance of the snapshot Algorithms • Time complexity is measured by the number of messages in the longest chain of causally dependent events • Message complexity - number of messages it takes the algorithm to carry out specified task
Experimental Setup Snapshot algorithms run on top of a basic algorithm. In this implementation Basic algorithm used is random flooding. Data points are inserted to count total number of messages forwarded and total Time taken. Number of processes: (5, 10,15,20, 25, 30,35)
Code implementation The chandy-mishra snapshot algorithm is directly embedded in the class “SimulationEngine” Randomly pick a process to call snapshot function Two variables: time_complexity, message_complexity are used to track the total time and message complexity
Conclusion As the number of processes grows, both the completion time and the number of messages increase Time complexity is much larger than messages complexity, the difference becomes more apparently with the increase of the number of the processes
Future Work Algorithm implementations needs to be tested on large real distributed systems. Try different basic algorithms to verify the performance of chandy-mishra snapshot algorithm
Reference • LAMPORT,L. Time, clocks, and the ordering of events in a distributed system. Commun. ACM 21, 7 (July 1978), 558-565. • CHANDY, K, LAMPORT, L. Distributed Snapshots: Determining Global States of Distributed Systems. ACM Transactions on Computer Systems, vol 3, no 1, Feb85. • Babaoglu, O, Marzullo , K, Consistent Global States of Distributed Systems: Fundamental Concepts and Mechanisms, Distributed Systems, Sape J. Mullender, Addison-Wesley, 1993.