Ignore:
Timestamp:
Aug 31, 2023, 11:31:15 PM (3 years ago)
Author:
JiadaL <j82liang@…>
Branches:
master, stuck-waitfor-destruct
Children:
950c58e
Parents:
92355883 (diff), 686912c (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.
Message:

Resolve conflict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/colby_parsons_MMAth/benchmarks/actors/run

    r92355883 r2a301ff  
    8585}
    8686
     87#used for output formatting
     88column_headers="proc\ttime (s)"
     89
    8790# executor config
    8891batch='100'
     
    102105# static config
    103106n_static_sends='100000000'
     107n_static_sends_slow='10000000'
    104108
    105109# dynamic config
    106110n_dynamic_sends='20000000'
     111n_dynamic_sends_slow='2000000'
    107112
    108113numtimes=5
    109114
    110115# bench_cores='1 2 4 8 16 24 32'
    111 # bench_cores='1 2 4 8 16 24 32 48'
    112 bench_cores='48'
     116bench_cores='1 2 4 8 16 24 32 48'
     117# bench_cores='48'
     118
     119# toggle missed gulp tracking config (overrides specified config)
     120missed_gulps=${true}
     121# missed_gulps=${false}
     122
     123# toggle mem collection config (overrides specified config)
     124# outputs mem instead of time
     125mem=${true}
     126mem=${false}
    113127
    114128# toggle benchmarks
    115 executor=${false}
    116 matrix=${false}
    117 repeat=${false}
    118 balance=${false}
     129executor=${true}
     130matrix=${true}
     131repeat=${true}
     132balance=${true}
    119133static=${true}
    120134dynamic=${true}
    121 
    122 # names=('CFA-LV' 'CFA-NS' 'CFA-R')
     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')
    123143# var_flags=('-D__STEAL=1 -DSEARCH=1' '' '-D__STEAL=1 -DRAND=1')
    124144
    125 # names=('CFA-NS')
    126 # var_flags=('')
    127 
    128 names=('CFA')
    129 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')
    130150
    131151# names=('CFA' 'CFA-STAT')
     
    134154# names=()
    135155# var_flags=()
     156
     157names=('CFA')
     158var_flags=('')
    136159
    137160runCAF=${true}
     
    139162runPROTO=${true}
    140163runAKKA=${true}
    141 # runCAF=${false}
    142 # runUCPP=${false}
    143 # runPROTO=${false}
    144 # runAKKA=${false}
     164runCAF=${false}
     165runUCPP=${false}
     166runPROTO=${false}
     167runAKKA=${false}
     168
     169if [ ${missed_gulps} -eq ${true} ] ; then
     170    bench_cores='2 4 8 16 24 32 48'
     171    column_headers="proc\tmissed\ttime (s)"
     172    names=('CFA')
     173    var_flags=('-D__STEAL=1 -DSEARCH=1 -DACTOR_STATS_QUEUE_MISSED')
     174    runCAF=${false}
     175    runUCPP=${false}
     176    runPROTO=${false}
     177    runAKKA=${false}
     178    executor=${true}
     179    matrix=${true}
     180    repeat=${true}
     181fi
     182
     183if [ ${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}
     198fi
    145199
    146200cfa=~/cfa-cc/driver/cfa
     
    162216print_header() {
    163217    echo ${1}':'
    164     echo -e "proc\ttime (s)"
     218    if [ ${mem} -eq ${false} ] ; then
     219        echo -e $column_headers
     220    fi
    165221}
    166222
     
    173229    affinity ${1}
    174230    preprint="${1}\t"
    175     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
    176236}
    177237
     
    196256
    197257for i in ${!names[@]}; do
    198         echo -n ${names[$i]}" "
     258    echo -n ${names[$i]}" "
    199259done
    200260if [ ${runCAF} -eq ${true} ] ; then
     
    232292# /usr/bin/time -f "%Uu %Ss %Er %Mkb"
    233293if [ ${executor} -eq ${true} ] ; then
    234     echo "executor"
     294    if [ ${mem} -eq ${false} ] ; then
     295        echo "executor"
     296    else
     297        echo "mem"
     298    fi
    235299    pre_args="40000 100 ${nRounds}"
    236300    post_args="${batch}"
     
    263327            set_akka_parallelism ${p}
    264328            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//"
     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           
    266339            sbt clean > /dev/null
    267340        done
     
    424497        g++ ${prefixCAF} CAFSendStatic.cpp ${suffixCAF} -o a.${hostname} > /dev/null 2>&1
    425498        sed -i "s/max-threads = .*/max-threads = 1/g" caf-application.conf # set CAF parallelism
    426         repeat_command taskset -c ${startcore} ./a.${hostname} 'd'
     499        repeat_command taskset -c ${startcore} ./a.${hostname} ${n_static_sends_slow}
    427500        rm a.${hostname}
    428501        cd - > /dev/null
     
    470543        g++ ${prefixCAF} CAFSendDynamic.cpp ${suffixCAF} -o a.${hostname} > /dev/null 2>&1
    471544        sed -i "s/max-threads = .*/max-threads = 1/g" caf-application.conf # set CAF parallelism
    472         repeat_command taskset -c ${startcore} ./a.${hostname} 'd'
     545        repeat_command taskset -c ${startcore} ./a.${hostname} ${n_dynamic_sends_slow}
    473546        rm a.${hostname}
    474547        cd - > /dev/null
     
    479552        echo 'Akka:'
    480553        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//"
     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//"
    482555        cd - > /dev/null
    483556    fi # done AKKA
     
    494567        echo 'ProtoActor:'
    495568        go build -o a.${hostname} > /dev/null 2>&1
    496         repeat_command taskset -c ${startcore} ./a.${hostname} 'd'
     569        repeat_command taskset -c ${startcore} ./a.${hostname} ${n_dynamic_sends_slow}
    497570        rm a.${hostname}
    498571        cd - > /dev/null
     
    507580    for i in ${!names[@]}; do
    508581        echo ${names[$i]}':'
    509         echo -e "proc\ttime (s)"
     582        echo -e $column_headers
    510583        ${cfa} ${cfa_flags} ${var_flags[$i]} balance.cfa -o a.${hostname} > /dev/null 2>&1
    511584        for p in ${bench_cores} ; do
     
    520593    for i in ${!names[@]}; do
    521594        echo ${names[$i]}':'
    522         echo -e "proc\ttime (s)"
     595        echo -e $column_headers
    523596        ${cfa} ${cfa_flags} ${var_flags[$i]} -DMULTI balance.cfa -o a.${hostname} > /dev/null 2>&1
    524597        for p in ${bench_cores} ; do
Note: See TracChangeset for help on using the changeset viewer.