github.com/DARA-Project/GoDist-Scheduler@v0.0.0-20201030134746-668de4acea0d/overlord/bench_slow_sched_scale.sh (about) 1 #!/bin/bash 2 3 ITERATION_LIST=( "1" "5" "10" "25" "50" "100" ) 4 #ITERATION_LIST=( "1" ) 5 MEM_FILE=../macro-benchmarks/scalability/SlowSched/memory.csv 6 EVENT_FILE=../macro-benchmarks/scalability/SlowSched/events.csv 7 8 echo "Memory\n" > $MEM_FILE 9 echo "Events,Sched_Events\n" > $EVENT_FILE 10 for iteration in "${ITERATION_LIST[@]}" 11 do 12 export ITERATIONS=$iteration 13 go run overlord.go -mode=bench -optFile=configs/sharedIntegerChannelIterative.json 14 mv ../examples/sharedIntegerChannelIterative/stats.csv ../macro-benchmarks/scalability/SlowSched/stats-$ITERATIONS.csv 15 cp ../examples/sharedIntegerChannelIterative/Schedule.json ../macro-benchmarks/scalability/SlowSched/Schedule-$ITERATIONS.json 16 stat --printf="%s" ../examples/sharedIntegerChannelIterative/Schedule.json >> $MEM_FILE 17 echo "\n" >> $MEM_FILE 18 dgo run ../tools/schedule_info.go ../examples/sharedIntegerChannelIterative/Schedule.json scale >> $EVENT_FILE 19 done