Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120667162
calc-detailed-decision-list
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
Sun, Jul 6, 03:33
Size
1 KB
Mime Type
text/x-shellscript
Expires
Tue, Jul 8, 03:33 (2 d)
Engine
blob
Format
Raw Data
Handle
27212067
Attached To
R3704 elastic-yarn
calc-detailed-decision-list
View Options
#!/bin/bash
if [ $# -ne 1 ]
then
echo "give dir"
exit
fi
cd $1
DIR=$1
for SIM in "greedy-none" "regular-none" "informed-hAgg" "informed-hInd" "informed-head" "informed-crt" "informed-fut" "informed-rnd"
#for SIM in "informed-fut"
do
FIRST_FILE=`ls | grep $SIM | grep simulation | head -n 1`
for app in `cat $FIRST_FILE | grep assignContainer | grep -o 'application_[0-9]*_[0-9]*' | uniq | sort | uniq`
do
NR_TASKS=`grep "$app.*FLORIN assignContainer" $FIRST_FILE | wc -l`
NR_TASKS=$(($NR_TASKS-1)) #subtract the AM
ASKED=`grep -m 2 "$app.*FLORIN assignContainer" $FIRST_FILE | tail -n 1 | sed 's/FLORIN/ FLORIN/g' | awk '{print $17}'`
RT=`grep $app $FIRST_FILE | grep SUCC | grep -o 'runTime=[0-9.]*' | grep -o '[0-9.]*'`
APP_TRIP_NAME=`echo $app | tr "_" " " | awk '{print $3}'`
DETAILED_LIST=`grep assignContainer $FIRST_FILE | grep $app | sed 's/FLORIN/ FLORIN/g' | awk '/normally\./ {printf "%3s ",".";} /informed\./ {printf "%3d ",$13*100/$17} /greedily\./ {printf "%3d ",$13*100/$17}'`
echo "$SIM#$APP_TRIP_NAME#$NR_TASKS#$ASKED#$RT#$DETAILED_LIST" | awk -F# '{printf "%15s %5s %4s %4s %10s %s\n",$1,$2,$3,$4,$5,$6}'
done
done
Event Timeline
Log In to Comment