Commit d154a0ea authored by Venkat Chakravarthy's avatar Venkat Chakravarthy

Update and Cleanup of the log analyzer script for the supafly application.

README also provided.
parent 80fd027f
README File for using the scripts to analyze the logs of the supafly
Author : Venkat Chakravarthy <>
Date : October 09, 2006
1) The checked out directory contains the log files generated by profiling the
supafly application on Emulab, Planetlab and Pelab. These are in the
respective "logs_<name_of_lab>" subdirectories.
2) There is also a sample set of logs in the "logs_sample" subdirectory.
3) The main PERL script is the "" file.
4) There is also a shell script file called "" that contains Gnuplot
commands to plot the graphs. This shell script gets called by the above
PERL script. The shell script was written to automate the process of
generating the graphs.
1) The checked in version of the script will run fine and generate the graphs
for the logs_emulab, logs_pelab and the logs_sample log files.
NOTE: To run it on the logs_planetlab a slight modification has to be done!
This is explained in Step 3.
The following example shows how to run the script on the Emulab logs.
USAGE : ./ <middleman> <sender> <receiver> <<fillme>lab>
% ./ logs_emulab/middleman.log logs_emulab/sender.log
logs_emulab/receiver.log emulab
2) You must provide all the four command line arguments. Running the script
will create a generated/<<fillme>lab> subdirectory and place all the
generated data(.dat) and graph(.eps) files there. The following files will
be generated for the above emulab example.
a) emulab.dat - This is the data file fed to Gnuplot. It contains two
columns, "middleman timestamps in diffs" and
"(receiverTS - senderTS)"
b) emulab_stat_file - This contains statistical information like the max,
min, mean, variance and standard deviation of three
datasets: the perceived duration at the middleman
the timestamps recorded at the middleman
the (rcvTS-sndTS) computed at sender and receiver
c) emulab_lag.eps - The plot of the "(rcvTS-sndTS)" on the Y-axis against
the "timestamp diffs recorded at the middleman" on the
X-axis. All values are in seconds.
d) There are some other generated temporary files as well. Ignore those.
3) To run the script for the checked in Planetlab logs, modify the
"" script at the section marked "NOTE" in the source code.
Instructions on commenting and uncommenting are provided in the source code
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
## GNUPlot commands
gnuplot << EOF
set title ''
set terminal postscript eps 20
set output "dur_vs_fin.eps"
set output "$1.eps"
set xlabel 'Finish Time (seconds)' font "Times,20"
set ylabel 'Duration (microseconds)' font "Times,20"
set xlabel 'Timestamps as diffs (seconds)' font "Times,20"
set ylabel 'Duration (seconds)' font "Times,20"
#set format x " %g"
#set grid xtics ytics
......@@ -14,7 +17,14 @@ set ylabel 'Duration (microseconds)' font "Times,20"
set size 1.5,1.0
set key top right
set xrange [0:]
set yrange [0:]
#set xrange [$2:$3]
#set yrange [$4:$5]
#set xrange [0:]
#set yrange [0:]
set xrange [0:30]
set yrange [0:1.2]
plot 'values.txt' title "Cumulative Lag" with lines
plot "$1.dat" title "$1 Lag" with linespoints pt 3
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment