Changeset 7c4416a
- Timestamp:
- Jul 5, 2023, 2:50:52 PM (17 months ago)
- Branches:
- master
- Children:
- a9e10e2
- Parents:
- 9235192c (diff), f6afd84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/colby_parsons_MMAth/benchmarks/actors/run
r9235192c r7c4416a 105 105 # static config 106 106 n_static_sends='100000000' 107 n_static_sends_slow='10000000' 107 108 108 109 # dynamic config 109 110 n_dynamic_sends='20000000' 111 n_dynamic_sends_slow='2000000' 110 112 111 113 numtimes=5 … … 115 117 # bench_cores='48' 116 118 117 # toggle specific experiment configs119 # toggle missed gulp tracking config (overrides specified config) 118 120 missed_gulps=${true} 121 # missed_gulps=${false} 122 123 # toggle mem collection config (overrides specified config) 124 # outputs mem instead of time 125 mem=${true} 126 mem=${false} 119 127 120 128 # toggle benchmarks … … 122 130 matrix=${true} 123 131 repeat=${true} 124 balance=${false} 125 static=${false} 126 dynamic=${false} 127 128 # names=('CFA-LV' 'CFA-NS' 'CFA-R') 132 balance=${true} 133 static=${true} 134 dynamic=${true} 135 # executor=${false} 136 # matrix=${false} 137 # repeat=${false} 138 # balance=${false} 139 # static=${false} 140 # dynamic=${false} 141 142 # names=('Longest-Victim' 'No-Stealing' 'Random') 129 143 # var_flags=('-D__STEAL=1 -DSEARCH=1' '' '-D__STEAL=1 -DRAND=1') 130 144 131 # names=('CFA -NS')132 # var_flags=('' )133 134 names=('CFA')135 var_flags=('-D__STEAL=1 -DSEARCH=1')145 # names=('CFA' 'CFA-EMPTY') 146 # var_flags=('' '-DEMPTY') 147 148 # names=('CFA') 149 # var_flags=('-D__STEAL=1 -DSEARCH=1') 136 150 137 151 # names=('CFA' 'CFA-STAT') … … 140 154 # names=() 141 155 # var_flags=() 156 157 names=('CFA') 158 var_flags=('') 142 159 143 160 runCAF=${true} … … 145 162 runPROTO=${true} 146 163 runAKKA=${true} 147 #runCAF=${false}148 #runUCPP=${false}149 #runPROTO=${false}150 #runAKKA=${false}164 runCAF=${false} 165 runUCPP=${false} 166 runPROTO=${false} 167 runAKKA=${false} 151 168 152 169 if [ ${missed_gulps} -eq ${true} ] ; then … … 159 176 runPROTO=${false} 160 177 runAKKA=${false} 178 executor=${true} 179 matrix=${true} 180 repeat=${true} 181 fi 182 183 if [ ${mem} -eq ${true} ] ; then 184 bench_cores='48' 185 column_headers="proc\tmem (kB)" 186 names=('CFA') 187 var_flags=('-D__STEAL=1 -DSEARCH=1') 188 runCAF=${true} 189 runUCPP=${true} 190 runPROTO=${true} 191 runAKKA=${true} 192 executor=${true} 193 matrix=${false} 194 repeat=${false} 195 balance=${false} 196 static=${false} 197 dynamic=${false} 161 198 fi 162 199 … … 179 216 print_header() { 180 217 echo ${1}':' 181 echo -e "proc\ttime (s)" 218 if [ ${mem} -eq ${false} ] ; then 219 echo -e $column_headers 220 fi 182 221 } 183 222 … … 190 229 affinity ${1} 191 230 preprint="${1}\t" 192 repeat_command taskset -c ${taskset} ./a.${hostname} ${pre_args} ${1} ${post_args} 231 if [ ${mem} -eq ${true} ] ; then 232 repeat_command /usr/bin/time -f "%M" taskset -c ${taskset} ./a.${hostname} ${pre_args} ${1} ${post_args} > /dev/null 233 else 234 repeat_command taskset -c ${taskset} ./a.${hostname} ${pre_args} ${1} ${post_args} 235 fi 193 236 } 194 237 … … 249 292 # /usr/bin/time -f "%Uu %Ss %Er %Mkb" 250 293 if [ ${executor} -eq ${true} ] ; then 251 echo "executor" 294 if [ ${mem} -eq ${false} ] ; then 295 echo "executor" 296 else 297 echo "mem" 298 fi 252 299 pre_args="40000 100 ${nRounds}" 253 300 post_args="${batch}" … … 280 327 set_akka_parallelism ${p} 281 328 affinity ${p} 282 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//" 329 if [ ${mem} -eq ${true} ] ; then 330 t=1 331 while [ ${t} -le ${numtimes} ] ; do 332 /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 "\." 333 t=`expr ${t} + 1` 334 done 335 else 336 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//" 337 fi 338 283 339 sbt clean > /dev/null 284 340 done … … 441 497 g++ ${prefixCAF} CAFSendStatic.cpp ${suffixCAF} -o a.${hostname} > /dev/null 2>&1 442 498 sed -i "s/max-threads = .*/max-threads = 1/g" caf-application.conf # set CAF parallelism 443 repeat_command taskset -c ${startcore} ./a.${hostname} 'd'499 repeat_command taskset -c ${startcore} ./a.${hostname} ${n_static_sends_slow} 444 500 rm a.${hostname} 445 501 cd - > /dev/null … … 487 543 g++ ${prefixCAF} CAFSendDynamic.cpp ${suffixCAF} -o a.${hostname} > /dev/null 2>&1 488 544 sed -i "s/max-threads = .*/max-threads = 1/g" caf-application.conf # set CAF parallelism 489 repeat_command taskset -c ${startcore} ./a.${hostname} 'd'545 repeat_command taskset -c ${startcore} ./a.${hostname} ${n_dynamic_sends_slow} 490 546 rm a.${hostname} 491 547 cd - > /dev/null … … 496 552 echo 'Akka:' 497 553 set_akka_parallelism 1 498 taskset -c ${startcore} sbt ${sbtflags} "run d${numtimes}" 2>&1 | grep -v "SLF4J:" | grep -v "Slf4jLogger started" | sed -e "s/\x1b\[0J//"554 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//" 499 555 cd - > /dev/null 500 556 fi # done AKKA … … 511 567 echo 'ProtoActor:' 512 568 go build -o a.${hostname} > /dev/null 2>&1 513 repeat_command taskset -c ${startcore} ./a.${hostname} 'd'569 repeat_command taskset -c ${startcore} ./a.${hostname} ${n_dynamic_sends_slow} 514 570 rm a.${hostname} 515 571 cd - > /dev/null … … 524 580 for i in ${!names[@]}; do 525 581 echo ${names[$i]}':' 526 echo -e "proc\ttime (s)"582 echo -e $column_headers 527 583 ${cfa} ${cfa_flags} ${var_flags[$i]} balance.cfa -o a.${hostname} > /dev/null 2>&1 528 584 for p in ${bench_cores} ; do … … 537 593 for i in ${!names[@]}; do 538 594 echo ${names[$i]}':' 539 echo -e "proc\ttime (s)"595 echo -e $column_headers 540 596 ${cfa} ${cfa_flags} ${var_flags[$i]} -DMULTI balance.cfa -o a.${hostname} > /dev/null 2>&1 541 597 for p in ${bench_cores} ; do
Note: See TracChangeset
for help on using the changeset viewer.