ids scaling data, graph gen scripts and results

parent 25fa9832
Epoch time of transition : 1439173014 : CPU Usage 0.24 80 %
./drawCpuGraph.sh 2015-08-10 1439173014
#!/usr/bin/gnuplot
cpu0_user="`echo $cpu0_user_src_filename`"
cpu1_user="`echo $cpu1_user_src_filename`"
cpu2_user="`echo $cpu2_user_src_filename`"
cpu3_user="`echo $cpu3_user_src_filename`"
cpu0_sys="`echo $cpu0_sys_src_filename`"
cpu1_sys="`echo $cpu1_sys_src_filename`"
cpu2_sys="`echo $cpu2_sys_src_filename`"
cpu3_sys="`echo $cpu3_sys_src_filename`"
start_timestamp="`echo $start_timestamp`"
transition_timestamp="`echo $transition_timestamp`"
set terminal pdfcairo enhanced font "Times-Roman,20" size 12,12
set output "cpuusage.pdf"
set timefmt '%s'
set datafile separator ","
set title "Event Series Graph"
set grid
set multiplot layout 2,2 columnsfirst
set style arrow 1 lt 4 lw 2
set style func linespoints
set style line 1 lt 2 lc rgb "black" lw 3
set style line 2 lt 2 lc rgb "blue" lw 3
set style line 3 lt 2 lc rgb "yellow" lw 2
set style line 4 lt 2 lc rgb "orange" lw 2
set key autotitle column
set key on left
#event arrows
y=65
d=10 #displacement
x=transition_timestamp-start_timestamp
set arrow from x,0 to x,y as 1
set label 1 "Event 1" at x-d,y font "Times-Roman,20"
ysize = 0.5
xsize = 1
set ylabel "Percentage"
set xlabel "Time (s)"
set title "(a) cpu 0"
plot cpu0_user using ($1-start_timestamp):2 title 'user' with lines ls 1, \
cpu0_sys using ($1-start_timestamp):2 title 'sys' with lines ls 2
set title "(c) cpu 2"
plot cpu2_user using ($1-start_timestamp):2 title 'user' with lines ls 1, \
cpu2_sys using ($1-start_timestamp):2 title 'sys' with lines ls 2
set title "(b) cpu 1"
plot cpu1_user using ($1-start_timestamp):2 title 'user' with lines ls 1, \
cpu1_sys using ($1-start_timestamp):2 title 'sys' with lines ls 2
set title "(d) cpu 3"
plot cpu3_user using ($1-start_timestamp):2 title 'user' with lines ls 1, \
cpu3_sys using ($1-start_timestamp):2 title 'sys' with lines ls 2
unset multiplot
#!/bin/bash -x
date_input=$1
transition_timestamp=$2
#spraveen/cpu-0/cpu-user-2015-08-10
cpu0_user_src_filename="spraveen/cpu-0/cpu-user-${date_input}"
cpu1_user_src_filename="spraveen/cpu-1/cpu-user-${date_input}"
cpu2_user_src_filename="spraveen/cpu-2/cpu-user-${date_input}"
cpu3_user_src_filename="spraveen/cpu-3/cpu-user-${date_input}"
cpu0_sys_src_filename="spraveen/cpu-0/cpu-system-${date_input}"
cpu1_sys_src_filename="spraveen/cpu-1/cpu-system-${date_input}"
cpu2_sys_src_filename="spraveen/cpu-2/cpu-system-${date_input}"
cpu3_sys_src_filename="spraveen/cpu-3/cpu-system-${date_input}"
start_timestamp=`head -1 $cpu0_user_src_filename | cut -d',' -f1`
export start_timestamp
export transition_timestamp
export cpu0_user_src_filename
export cpu1_user_src_filename
export cpu2_user_src_filename
export cpu3_user_src_filename
export cpu0_sys_src_filename
export cpu1_sys_src_filename
export cpu2_sys_src_filename
export cpu3_sys_src_filename
./cpu_gnu_graph.scr
epoch,value
1439172218.117,nan
1439172228.115,99.914876
1439172238.115,98.999428
1439172248.115,99.800636
1439172258.115,99.899895
1439172268.115,99.199319
1439172278.115,99.800059
1439172288.115,99.900898
1439172298.115,99.899647
1439172308.115,99.700161
1439172318.115,99.899343
1439172328.115,90.800580
1439172338.115,99.900797
1439172348.115,99.999595
1439172358.115,99.999665
1439172368.115,99.999192
1439172378.115,100.000314
1439172388.115,100.000191
1439172398.115,99.999294
1439172408.115,99.900226
1439172418.115,100.000570
1439172428.115,100.000148
1439172438.115,99.999947
1439172448.115,100.000649
1439172458.115,99.999890
1439172468.115,99.999508
1439172478.115,99.899901
1439172488.115,99.999422
1439172498.115,100.000694
1439172508.115,99.999304
1439172518.115,99.999752
1439172528.115,100.001151
1439172538.115,99.999288
1439172548.115,100.000982
1439172558.115,100.000399
1439172568.115,99.998275
1439172578.115,100.000828
1439172588.115,99.900008
1439172598.115,99.999241
1439172608.115,84.400814
1439172618.115,100.000436
1439172628.115,99.999485
1439172638.115,99.999775
1439172648.115,99.899973
1439172658.115,99.499406
1439172668.115,99.800845
1439172678.115,100.000779
1439172688.115,99.998331
1439172698.115,100.001180
1439172708.115,99.999344
1439172718.115,95.701019
1439172728.115,67.899905
1439172738.115,68.200013
1439172748.115,67.800025
1439172758.115,67.600164
1439172768.115,68.000000
1439172778.115,67.999866
1439172788.115,68.000000
1439172798.115,92.199865
1439172808.115,99.999456
1439172818.115,99.300346
1439172828.115,99.999108
1439172838.115,100.000614
1439172848.115,99.899263
1439172858.115,100.001125
1439172868.115,99.998900
1439172878.115,100.001262
1439172888.115,99.899243
1439172898.115,100.000728
1439172908.115,100.000139
1439172918.115,100.000226
1439172928.115,72.299572
1439172938.115,67.999853
1439172948.115,67.700324
1439172958.115,68.099852
1439172968.115,67.700183
1439172978.115,68.100087
1439172988.115,67.699725
1439172998.115,68.000012
1439173008.115,67.700122
1439173018.115,71.999375
1439173028.115,7.900073
1439173038.115,0.000000
1439173048.115,0.000000
1439173058.115,0.000000
1439173068.115,0.000000
1439173078.115,0.000000
1439173088.115,0.000000
1439173098.115,0.000000
1439173108.115,0.000000
1439173118.115,0.000000
1439173128.115,0.000000
1439173138.115,0.000000
1439173148.115,4.100028
1439173158.115,52.799584
1439173168.115,61.800418
1439173178.115,66.199926
1439173188.115,65.900050
1439173198.115,65.799918
1439173208.115,73.598407
1439173218.115,14.900245
1439173228.115,0.000000
1439173238.115,0.000000
1439173248.115,0.000000
1439173258.115,0.000000
1439173268.115,0.000000
1439173278.115,0.000000
1439173288.115,0.000000
1439173298.115,0.000000
1439173308.115,0.000000
1439173318.115,0.000000
1439173328.115,0.000000
1439173338.115,0.000000
1439173348.115,61.899771
1439173358.115,65.099965
1439173368.115,66.699987
1439173378.115,66.599932
1439173388.115,68.000051
1439173398.115,66.700325
1439173408.115,67.599686
1439173418.115,67.700283
1439173428.115,89.199946
1439173438.115,94.799911
epoch,value
1439172218.117,nan
1439172228.115,0.000000
1439172238.115,0.000000
1439172248.115,0.000000
1439172258.115,0.000000
1439172268.115,0.000000
1439172278.115,0.000000
1439172288.115,0.000000
1439172298.115,0.000000
1439172308.115,0.000000
1439172318.115,0.000000
1439172328.115,0.000000
1439172338.115,0.000000
1439172348.115,0.000000
1439172358.115,0.000000
1439172368.115,0.000000
1439172378.115,0.000000
1439172388.115,0.000000
1439172398.115,0.000000
1439172408.115,0.000000
1439172418.115,0.000000
1439172428.115,0.000000
1439172438.115,0.000000
1439172448.115,0.000000
1439172458.115,0.000000
1439172468.115,0.000000
1439172478.115,0.000000
1439172488.115,0.000000
1439172498.115,0.000000
1439172508.115,0.000000
1439172518.115,0.000000
1439172528.115,0.000000
1439172538.115,0.000000
1439172548.115,0.000000
1439172558.115,0.000000
1439172568.115,0.000000
1439172578.115,0.000000
1439172588.115,0.000000
1439172598.115,0.000000
1439172608.115,0.000000
1439172618.115,0.000000
1439172628.115,0.000000
1439172638.115,0.000000
1439172648.115,0.000000
1439172658.115,0.000000
1439172668.115,0.000000
1439172678.115,0.000000
1439172688.115,0.000000
1439172698.115,0.000000
1439172708.115,0.000000
1439172718.115,0.000000
1439172728.115,0.000000
1439172738.115,0.000000
1439172748.115,0.000000
1439172758.115,0.000000
1439172768.115,0.000000
1439172778.115,0.000000
1439172788.115,0.000000
1439172798.115,0.000000
1439172808.115,0.000000
1439172818.115,0.000000
1439172828.115,0.000000
1439172838.115,0.000000
1439172848.115,0.000000
1439172858.115,0.000000
1439172868.115,0.000000
1439172878.115,0.000000
1439172888.115,0.000000
1439172898.115,0.000000
1439172908.115,0.000000
1439172918.115,0.000000
1439172928.115,0.000000
1439172938.115,0.000000
1439172948.115,0.000000
1439172958.115,0.000000
1439172968.115,0.000000
1439172978.115,0.000000
1439172988.115,0.000000
1439172998.115,0.000000
1439173008.115,0.000000
1439173018.115,0.000000
1439173028.115,0.000000
1439173038.115,0.000000
1439173048.115,0.000000
1439173058.115,0.000000
1439173068.115,0.000000
1439173078.115,0.000000
1439173088.115,0.000000
1439173098.115,0.000000
1439173108.115,0.000000
1439173118.115,0.000000
1439173128.115,0.000000
1439173138.115,0.000000
1439173148.115,0.000000
1439173158.115,0.000000
1439173168.115,0.000000
1439173178.115,0.000000
1439173188.115,0.000000
1439173198.115,0.000000
1439173208.115,0.000000
1439173218.115,0.000000
1439173228.115,0.000000
1439173238.115,0.000000
1439173248.115,0.000000
1439173258.115,0.000000
1439173268.115,0.000000
1439173278.115,0.000000
1439173288.115,0.000000
1439173298.115,0.000000
1439173308.115,0.000000
1439173318.115,0.000000
1439173328.115,0.000000
1439173338.115,0.000000
1439173348.115,0.000000
1439173358.115,0.000000
1439173368.115,0.000000
1439173378.115,0.000000
1439173388.115,0.000000
1439173398.115,0.000000
1439173408.115,0.000000
1439173418.115,0.000000
1439173428.115,0.000000
1439173438.115,0.000000
epoch,value
1439172218.116,nan
1439172228.115,0.000000
1439172238.115,0.000000
1439172248.115,0.000000
1439172258.115,0.000000
1439172268.115,0.000000
1439172278.115,0.000000
1439172288.115,0.000000
1439172298.115,0.000000
1439172308.115,0.000000
1439172318.115,0.000000
1439172328.115,0.000000
1439172338.115,0.000000
1439172348.115,0.000000
1439172358.115,0.000000
1439172368.115,0.000000
1439172378.115,0.000000
1439172388.115,0.000000
1439172398.115,0.000000
1439172408.115,0.000000
1439172418.115,0.000000
1439172428.115,0.000000
1439172438.115,0.000000
1439172448.115,0.000000
1439172458.115,0.000000
1439172468.115,0.000000
1439172478.115,0.000000
1439172488.115,0.000000
1439172498.115,0.000000
1439172508.115,0.000000
1439172518.115,0.000000
1439172528.115,0.000000
1439172538.115,0.000000
1439172548.115,0.000000
1439172558.115,0.000000
1439172568.115,0.000000
1439172578.115,0.000000
1439172588.115,0.000000
1439172598.115,0.000000
1439172608.115,0.000000
1439172618.115,0.000000
1439172628.115,0.000000
1439172638.115,0.000000
1439172648.115,0.000000
1439172658.115,0.000000
1439172668.115,0.000000
1439172678.115,0.000000
1439172688.115,0.000000
1439172698.115,0.000000
1439172708.115,0.000000
1439172718.115,0.000000
1439172728.115,0.000000
1439172738.115,0.000000
1439172748.115,0.000000
1439172758.115,0.000000
1439172768.115,0.000000
1439172778.115,0.000000
1439172788.115,0.000000
1439172798.115,0.000000
1439172808.115,0.000000
1439172818.115,0.000000
1439172828.115,0.000000
1439172838.115,0.000000
1439172848.115,0.000000
1439172858.115,0.000000
1439172868.115,0.000000
1439172878.115,0.000000
1439172888.115,0.000000
1439172898.115,0.000000
1439172908.115,0.000000
1439172918.115,0.000000
1439172928.115,0.000000
1439172938.115,0.000000
1439172948.115,0.000000
1439172958.115,0.000000
1439172968.115,0.000000
1439172978.115,0.000000
1439172988.115,0.000000
1439172998.115,0.000000
1439173008.115,0.000000
1439173018.115,0.000000
1439173028.115,0.100001
1439173038.115,0.000000
1439173048.115,0.000000
1439173058.115,0.000000
1439173068.115,0.000000
1439173078.115,0.000000
1439173088.115,0.000000
1439173098.115,0.000000
1439173108.115,0.000000
1439173118.115,0.000000
1439173128.115,0.000000
1439173138.115,0.000000
1439173148.115,0.000000
1439173158.115,0.000000
1439173168.115,0.000000
1439173178.115,0.000000
1439173188.115,0.000000
1439173198.115,0.000000
1439173208.115,0.000000
1439173218.115,0.000000
1439173228.115,0.000000
1439173238.115,0.000000
1439173248.115,0.000000
1439173258.115,0.000000
1439173268.115,0.000000
1439173278.115,0.000000
1439173288.115,0.000000
1439173298.115,0.000000
1439173308.115,0.000000
1439173318.115,0.000000
1439173328.115,0.000000
1439173338.115,0.000000
1439173348.115,0.000000
1439173358.115,0.000000
1439173368.115,0.000000
1439173378.115,0.000000
1439173388.115,0.000000
1439173398.115,0.000000
1439173408.115,0.000000
1439173418.115,0.000000
1439173428.115,0.000000
1439173438.115,0.000000
epoch,value
1439172218.117,nan
1439172228.115,0.000000
1439172238.115,0.000000
1439172248.115,0.000000
1439172258.115,0.000000
1439172268.115,0.000000
1439172278.115,0.000000
1439172288.115,0.000000
1439172298.115,0.100000
1439172308.115,0.000000
1439172318.115,0.000000
1439172328.115,0.000000
1439172338.115,0.000000
1439172348.115,0.000000
1439172358.115,0.000000
1439172368.115,0.000000
1439172378.115,0.000000
1439172388.115,0.000000
1439172398.115,0.000000
1439172408.115,0.000000
1439172418.115,0.000000
1439172428.115,0.000000
1439172438.115,0.000000
1439172448.115,0.000000
1439172458.115,0.000000
1439172468.115,0.000000
1439172478.115,0.000000
1439172488.115,0.000000
1439172498.115,0.000000
1439172508.115,0.000000
1439172518.115,0.000000
1439172528.115,0.000000
1439172538.115,0.000000
1439172548.115,0.000000
1439172558.115,0.000000
1439172568.115,0.000000
1439172578.115,0.000000
1439172588.115,0.000000
1439172598.115,0.000000
1439172608.115,0.000000
1439172618.115,0.000000
1439172628.115,0.000000
1439172638.115,0.000000
1439172648.115,0.000000
1439172658.115,0.000000
1439172668.115,0.000000
1439172678.115,0.000000
1439172688.115,0.000000
1439172698.115,0.000000
1439172708.115,0.000000
1439172718.115,0.000000
1439172728.115,0.000000
1439172738.115,0.000000
1439172748.115,0.000000
1439172758.115,0.000000
1439172768.115,0.000000
1439172778.115,0.000000
1439172788.115,0.000000
1439172798.115,0.000000
1439172808.115,0.000000
1439172818.115,0.000000
1439172828.115,0.000000
1439172838.115,0.000000
1439172848.115,0.000000
1439172858.115,0.000000
1439172868.115,0.000000
1439172878.115,0.000000
1439172888.115,0.000000
1439172898.115,0.000000
1439172908.115,0.000000
1439172918.115,0.000000
1439172928.115,0.000000
1439172938.115,0.000000
1439172948.115,0.000000
1439172958.115,0.000000
1439172968.115,0.000000
1439172978.115,0.000000
1439172988.115,0.000000
1439172998.115,0.000000
1439173008.115,0.000000
1439173018.115,0.000000
1439173028.115,0.000000
1439173038.115,0.000000
1439173048.115,0.000000
1439173058.115,0.000000
1439173068.115,0.000000
1439173078.115,0.000000
1439173088.115,0.000000
1439173098.115,0.000000
1439173108.115,0.000000
1439173118.115,0.000000
1439173128.115,0.000000
1439173138.115,0.000000
1439173148.115,0.000000
1439173158.115,0.000000
1439173168.115,0.000000
1439173178.115,0.000000
1439173188.115,0.000000
1439173198.115,0.000000
1439173208.115,0.000000
1439173218.115,0.000000
1439173228.115,0.000000
1439173238.115,0.000000
1439173248.115,0.000000
1439173258.115,0.000000
1439173268.115,0.000000
1439173278.115,0.000000
1439173288.115,0.000000
1439173298.115,0.000000
1439173308.115,0.000000
1439173318.115,0.000000
1439173328.115,0.000000
1439173338.115,0.000000
1439173348.115,0.000000
1439173358.115,0.000000
1439173368.115,0.000000
1439173378.115,0.000000
1439173388.115,0.000000
1439173398.115,0.000000
1439173408.115,0.000000
1439173418.115,0.000000
1439173428.115,0.000000
1439173438.115,0.000000
epoch,value
1439172218.117,nan
1439172228.115,0.000000
1439172238.115,0.000000
1439172248.115,0.000000
1439172258.115,0.000000
1439172268.115,0.000000
1439172278.115,0.000000
1439172288.115,0.000000
1439172298.115,0.000000
1439172308.115,0.000000
1439172318.115,0.000000
1439172328.115,0.000000
1439172338.115,0.000000
1439172348.115,0.000000
1439172358.115,0.000000
1439172368.115,0.000000
1439172378.115,0.000000
1439172388.115,0.000000
1439172398.115,0.000000
1439172408.115,0.000000
1439172418.115,0.000000
1439172428.115,0.000000
1439172438.115,0.000000
1439172448.115,0.000000
1439172458.115,0.000000
1439172468.115,0.000000
1439172478.115,0.000000
1439172488.115,0.000000
1439172498.115,0.000000
1439172508.115,0.000000
1439172518.115,0.000000
1439172528.115,0.000000
1439172538.115,0.000000
1439172548.115,0.000000
1439172558.115,0.000000
1439172568.115,0.000000
1439172578.115,0.000000
1439172588.115,0.000000
1439172598.115,0.000000
1439172608.115,0.000000
1439172618.115,0.000000
1439172628.115,0.000000
1439172638.115,0.000000
1439172648.115,0.000000
1439172658.115,0.000000
1439172668.115,0.000000
1439172678.115,0.000000
1439172688.115,0.000000
1439172698.115,0.000000
1439172708.115,0.000000
1439172718.115,0.000000
1439172728.115,0.000000
1439172738.115,0.000000
1439172748.115,0.000000
1439172758.115,0.000000
1439172768.115,0.000000
1439172778.115,0.000000
1439172788.115,0.000000
1439172798.115,0.000000
1439172808.115,0.000000
1439172818.115,0.000000
1439172828.115,0.000000
1439172838.115,0.000000
1439172848.115,0.000000
1439172858.115,0.000000
1439172868.115,0.000000
1439172878.115,0.000000
1439172888.115,0.000000
1439172898.115,0.000000
1439172908.115,0.000000
1439172918.115,0.000000
1439172928.115,0.000000
1439172938.115,0.000000
1439172948.115,0.000000
1439172958.115,0.000000
1439172968.115,0.000000
1439172978.115,0.000000
1439172988.115,0.000000
1439172998.115,0.000000
1439173008.115,0.000000
1439173018.115,0.000000
1439173028.115,0.000000
1439173038.115,0.000000
1439173048.115,0.000000
1439173058.115,0.000000
1439173068.115,0.000000
1439173078.115,0.000000
1439173088.115,0.000000
1439173098.115,0.000000
1439173108.115,0.000000
1439173118.115,0.000000
1439173128.115,0.000000
1439173138.115,0.000000
1439173148.115,0.000000
1439173158.115,0.000000
1439173168.115,0.000000
1439173178.115,0.000000
1439173188.115,0.000000
1439173198.115,0.000000
1439173208.115,0.000000
1439173218.115,0.000000
1439173228.115,0.000000
1439173238.115,0.000000
1439173248.115,0.000000
1439173258.115,0.000000
1439173268.115,0.000000
1439173278.115,0.000000
1439173288.115,0.000000
1439173298.115,0.000000
1439173308.115,0.000000
1439173318.115,0.000000
1439173328.115,0.000000
1439173338.115,0.000000
1439173348.115,0.000000
1439173358.115,0.000000
1439173368.115,0.000000
1439173378.115,0.000000
1439173388.115,0.000000
1439173398.115,0.000000
1439173408.115,0.000000
1439173418.115,0.000000
1439173428.115,0.000000
1439173438.115,0.000000