Page MenuHomec4science

summarize-cdf-absolute
No OneTemporary

File Metadata

Created
Tue, Feb 25, 03:15

summarize-cdf-absolute

#!/bin/bash
if [ $# -ne 1 ]
then
echo "Give param dir name"
exit
fi
cd $1
ls | grep 'TRACE.*trace$' | grep -v generator
for bla in 1
do
LINE_NR=`wc -l *avg.jrt | head -n 1 | awk '{print $1}'`
LINE_NR_50=$(($LINE_NR/2))
LINE_NR_25=$(($LINE_NR/4))
LINE_NR_75=`echo $LINE_NR 1.333 | awk '{printf "%d\n",$1/$2}'`
LINE_NR_90=`echo $LINE_NR 1.111 | awk '{printf "%d\n",$1/$2}'`
#assuming all simtypes have the same nr of jobs anyway
P1=`sed "1q;d" 1-regular-avg.jrt.cdf | awk '{print $1}'`
P25=`sed "${LINE_NR_25}q;d" 1-regular-avg.jrt.cdf | awk '{print $1}'`
P50=`sed "${LINE_NR_50}q;d" 1-regular-avg.jrt.cdf | awk '{print $1}'`
P75=`sed "${LINE_NR_75}q;d" 1-regular-avg.jrt.cdf | awk '{print $1}'`
P90=`sed "${LINE_NR_90}q;d" 1-regular-avg.jrt.cdf | awk '{print $1}'`
P100=`sed "${LINE_NR}q;d" 1-regular-avg.jrt.cdf | awk '{print $1}'`
echo "SIMTYPE $P1 $P25 $P50 $P75 $P90 $P100"
echo "bb"
#for typesim in regular reserved greedy informed-hAgg informed-hInd informed-head informed-crt informed-fut informed-rnd
#for typesim in `ls | grep simulation | sed 's/-simulation.log//g' | sed 's/^[0-9-]*//g' | sort | uniq | tr "\n" " " | sed 's/-none//g' | sed 's/\(.*\)\(regular\)\(.*\)/\2\3\1/g'`
for typesim in `ls *-avg.jrt.cdf | sed 's/-avg.jrt.cdf//g' | sed 's/^[0-9-]*//g' | sort | uniq | tr "\n" " " | sed 's/-none//g' | sed 's/\(.*\)\(regular\)\(.*\)/\2\3\1/g'`
do
echo $typesim `egrep "^$P1|^$P25|^$P50|^$P75|^$P90|^$P100" -H *$typesim*avg.jrt.cdf | awk '{print $2 }'| tr "\n" " " `
done
done | column -t | sed 's/bb/------------------------------------------------------------/g'

Event Timeline