Page MenuHomec4science

summarize-cdf-absolute
No OneTemporary

File Metadata

Created
Tue, Feb 25, 19:55

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_2=$(($LINE_NR/2))
LINE_NR_4=$(($LINE_NR/4))
LINE_NR_15=`echo $LINE_NR 1.333 | 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}'`
P2=`sed "${LINE_NR_4}q;d" 1-regular-avg.jrt.cdf | awk '{print $1}'`
P3=`sed "${LINE_NR_2}q;d" 1-regular-avg.jrt.cdf | awk '{print $1}'`
P4=`sed "${LINE_NR_15}q;d" 1-regular-avg.jrt.cdf | awk '{print $1}'`
P5=`sed "${LINE_NR}q;d" 1-regular-avg.jrt.cdf | awk '{print $1}'`
echo "SIMTYPE $P1 $P2 $P3 $P4 $P5"
echo "rr"
#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'`
do
echo $typesim `egrep "^$P1|^$P2|^$P3|^$P4|^$P5" -H *$typesim*avg.jrt.cdf | awk '{print $2 }'| tr "\n" " " `
done
done | column -t | sed 's/rr/------------------------------------------------------------/g'

Event Timeline