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