Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102954944
summarize-cdf-absolute
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 25, 19:55
Size
1 KB
Mime Type
text/x-shellscript
Expires
Thu, Feb 27, 19:55 (2 d)
Engine
blob
Format
Raw Data
Handle
24406296
Attached To
R3704 elastic-yarn
summarize-cdf-absolute
View Options
#!/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
Log In to Comment