wspy – gnuplot and zip archive
Two improvements have been added to the wspy program:
- Added a -z option that creates a zip archive with data files related to the wspy run
- Added a script that calls gnuplot to plot CPU usage over time.
Below is a short listing showing contents of the zip archive as well as running of the gnuplot script.
mev@popayan:~/wspy-exp$ unzip -l c-ray Archive: c-ray.zip Length Date Time Name --------- ---------- ----- ---- 3417 2018-03-23 19:25 allcpu.csv 2399 2018-03-23 19:25 cpu-gnuplot.sh 3417 2018-03-23 19:25 cpu0.csv 3417 2018-03-23 19:25 cpu1.csv 3417 2018-03-23 19:25 cpu2.csv 3417 2018-03-23 19:25 cpu3.csv 3417 2018-03-23 19:25 cpu4.csv 3417 2018-03-23 19:25 cpu5.csv 3417 2018-03-23 19:25 cpu6.csv 3417 2018-03-23 19:25 cpu7.csv 25725 2018-03-23 19:25 processtree.txt --------- ------- 58877 11 files mev@popayan:~/wspy-exp$ unzip c-ray.zip Archive: c-ray.zip inflating: allcpu.csv inflating: cpu-gnuplot.sh inflating: cpu0.csv inflating: cpu1.csv inflating: cpu2.csv inflating: cpu3.csv inflating: cpu4.csv inflating: cpu5.csv inflating: cpu6.csv inflating: cpu7.csv inflating: processtree.txt mev@popayan:~/wspy-exp$ ./cpu-gnuplot.sh mev@popayan:~/wspy-exp$ ls allcpu.csv cpu1.csv cpu3.csv cpu5.csv cpu7.csv c-ray.zip allcpu.png cpu1.png cpu3.png cpu5.png cpu7.png processtree.txt cpu0.csv cpu2.csv cpu4.csv cpu6.csv cpu-gnuplot.sh cpu0.png cpu2.png cpu4.png cpu6.png cpulist.png
One CSV file is created for each CPU showing the /proc/stat line each second. A text file is created for the process tree as well.
Below are some examples of the PNG files showing the plots for this benchmark.
Comments
wspy – gnuplot and zip archive — No Comments
HTML tags allowed in your comment: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>