Changeset f6afd84
- Timestamp:
- Jul 5, 2023, 2:45:16 PM (17 months ago)
- Branches:
- master
- Children:
- 7c4416a
- Parents:
- 7ce70e2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/colby_parsons_MMAth/benchmarks/actors/run
r7ce70e2 rf6afd84 85 85 } 86 86 87 column_headers="proc\ttime (s)" 88 87 89 # executor config 88 90 batch='100' … … 102 104 # static config 103 105 n_static_sends='100000000' 106 n_static_sends_slow='10000000' 104 107 105 108 # dynamic config 106 109 n_dynamic_sends='20000000' 110 n_dynamic_sends_slow='2000000' 107 111 108 112 numtimes=5 109 113 110 # bench_cores='1 2 4 8 16 24 32' 111 # bench_cores='1 2 4 8 16 24 32 48' 112 bench_cores='48' 114 # bench_cores='4 8' 115 bench_cores='1 2 4 8 16 24 32 48' 116 # bench_cores='48' 117 118 # toggle mem collection instead of time (executor only) 119 # mem=${true} 120 mem=${false} 113 121 114 122 # toggle benchmarks 115 executor=${ false}116 matrix=${ false}117 repeat=${ false}118 balance=${ false}123 executor=${true} 124 matrix=${true} 125 repeat=${true} 126 balance=${true} 119 127 static=${true} 120 128 dynamic=${true} 121 122 # names=('CFA-LV' 'CFA-NS' 'CFA-R') 129 # executor=${false} 130 # matrix=${false} 131 # repeat=${false} 132 # balance=${false} 133 # static=${false} 134 # dynamic=${false} 135 136 # names=('Longest-Victim' 'No-Stealing' 'Random') 123 137 # var_flags=('-D__STEAL=1 -DSEARCH=1' '' '-D__STEAL=1 -DRAND=1') 124 138 125 # names=('CFA -NS')126 # var_flags=('' )127 128 names=('CFA')129 var_flags=('-D__STEAL=1 -DSEARCH=1')139 # names=('CFA' 'CFA-EMPTY') 140 # var_flags=('' '-DEMPTY') 141 142 # names=('CFA') 143 # var_flags=('-D__STEAL=1 -DSEARCH=1') 130 144 131 145 # names=('CFA' 'CFA-STAT') … … 134 148 # names=() 135 149 # var_flags=() 150 151 names=('CFA') 152 var_flags=('') 136 153 137 154 runCAF=${true} … … 139 156 runPROTO=${true} 140 157 runAKKA=${true} 141 # runCAF=${false} 142 # runUCPP=${false} 143 # runPROTO=${false} 144 # runAKKA=${false} 158 runCAF=${false} 159 runUCPP=${false} 160 runPROTO=${false} 161 runAKKA=${false} 162 163 if [ ${missed_gulps} -eq ${true} ] ; then 164 bench_cores='2 4 8 16 24 32 48' 165 column_headers="proc\tmissed\ttime (s)" 166 names=('CFA') 167 var_flags=('-D__STEAL=1 -DSEARCH=1 -DACTOR_STATS_QUEUE_MISSED') 168 runCAF=${false} 169 runUCPP=${false} 170 runPROTO=${false} 171 runAKKA=${false} 172 fi 145 173 146 174 cfa=~/cfa-cc/driver/cfa … … 162 190 print_header() { 163 191 echo ${1}':' 164 echo -e "proc\ttime (s)" 192 if [ ${mem} -eq ${false} ] ; then 193 echo -e $column_headers 194 fi 165 195 } 166 196 … … 173 203 affinity ${1} 174 204 preprint="${1}\t" 175 repeat_command taskset -c ${taskset} ./a.${hostname} ${pre_args} ${1} ${post_args} 205 if [ ${mem} -eq ${true} ] ; then 206 repeat_command /usr/bin/time -f "%M" taskset -c ${taskset} ./a.${hostname} ${pre_args} ${1} ${post_args} > /dev/null 207 else 208 repeat_command taskset -c ${taskset} ./a.${hostname} ${pre_args} ${1} ${post_args} 209 fi 176 210 } 177 211 … … 232 266 # /usr/bin/time -f "%Uu %Ss %Er %Mkb" 233 267 if [ ${executor} -eq ${true} ] ; then 234 echo "executor" 268 if [ ${mem} -eq ${false} ] ; then 269 echo "executor" 270 else 271 echo "mem" 272 fi 235 273 pre_args="40000 100 ${nRounds}" 236 274 post_args="${batch}" … … 263 301 set_akka_parallelism ${p} 264 302 affinity ${p} 265 taskset -c ${taskset} sbt ${sbtflags} "run ${pre_args} ${p} ${post_args} ${numtimes}" 2>&1 | grep -v "SLF4J:" | grep -v "Slf4jLogger started" | sed -e "s/\x1b\[0J//" 303 if [ ${mem} -eq ${true} ] ; then 304 t=1 305 while [ ${t} -le ${numtimes} ] ; do 306 /usr/bin/time -f "%M" taskset -c ${taskset} sbt ${sbtflags} "run ${pre_args} ${p} ${post_args} 1" 2>&1 | grep -v "SLF4J:" | grep -v "Slf4jLogger started" | sed -e "s/\x1b\[0J//" | grep -v "\." 307 t=`expr ${t} + 1` 308 done 309 else 310 taskset -c ${taskset} sbt ${sbtflags} "run ${pre_args} ${p} ${post_args} ${numtimes}" 2>&1 | grep -v "SLF4J:" | grep -v "Slf4jLogger started" | sed -e "s/\x1b\[0J//" 311 fi 312 266 313 sbt clean > /dev/null 267 314 done … … 424 471 g++ ${prefixCAF} CAFSendStatic.cpp ${suffixCAF} -o a.${hostname} > /dev/null 2>&1 425 472 sed -i "s/max-threads = .*/max-threads = 1/g" caf-application.conf # set CAF parallelism 426 repeat_command taskset -c ${startcore} ./a.${hostname} 'd'473 repeat_command taskset -c ${startcore} ./a.${hostname} ${n_static_sends_slow} 427 474 rm a.${hostname} 428 475 cd - > /dev/null … … 470 517 g++ ${prefixCAF} CAFSendDynamic.cpp ${suffixCAF} -o a.${hostname} > /dev/null 2>&1 471 518 sed -i "s/max-threads = .*/max-threads = 1/g" caf-application.conf # set CAF parallelism 472 repeat_command taskset -c ${startcore} ./a.${hostname} 'd'519 repeat_command taskset -c ${startcore} ./a.${hostname} ${n_dynamic_sends_slow} 473 520 rm a.${hostname} 474 521 cd - > /dev/null … … 479 526 echo 'Akka:' 480 527 set_akka_parallelism 1 481 taskset -c ${startcore} sbt ${sbtflags} "run d${numtimes}" 2>&1 | grep -v "SLF4J:" | grep -v "Slf4jLogger started" | sed -e "s/\x1b\[0J//"528 taskset -c ${startcore} sbt ${sbtflags} "run ${n_dynamic_sends_slow} ${numtimes}" 2>&1 | grep -v "SLF4J:" | grep -v "Slf4jLogger started" | sed -e "s/\x1b\[0J//" 482 529 cd - > /dev/null 483 530 fi # done AKKA … … 494 541 echo 'ProtoActor:' 495 542 go build -o a.${hostname} > /dev/null 2>&1 496 repeat_command taskset -c ${startcore} ./a.${hostname} 'd'543 repeat_command taskset -c ${startcore} ./a.${hostname} ${n_dynamic_sends_slow} 497 544 rm a.${hostname} 498 545 cd - > /dev/null … … 507 554 for i in ${!names[@]}; do 508 555 echo ${names[$i]}':' 509 echo -e "proc\ttime (s)"556 echo -e $column_headers 510 557 ${cfa} ${cfa_flags} ${var_flags[$i]} balance.cfa -o a.${hostname} > /dev/null 2>&1 511 558 for p in ${bench_cores} ; do … … 520 567 for i in ${!names[@]}; do 521 568 echo ${names[$i]}':' 522 echo -e "proc\ttime (s)"569 echo -e $column_headers 523 570 ${cfa} ${cfa_flags} ${var_flags[$i]} -DMULTI balance.cfa -o a.${hostname} > /dev/null 2>&1 524 571 for p in ${bench_cores} ; do
Note: See TracChangeset
for help on using the changeset viewer.