Changeset 7c4416a for doc/theses


Ignore:
Timestamp:
Jul 5, 2023, 2:50:52 PM (15 months ago)
Author:
caparsons <caparson@…>
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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

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

    r9235192c r7c4416a  
    105105# static config
    106106n_static_sends='100000000'
     107n_static_sends_slow='10000000'
    107108
    108109# dynamic config
    109110n_dynamic_sends='20000000'
     111n_dynamic_sends_slow='2000000'
    110112
    111113numtimes=5
     
    115117# bench_cores='48'
    116118
    117 # toggle specific experiment configs
     119# toggle missed gulp tracking config (overrides specified config)
    118120missed_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}
    119127
    120128# toggle benchmarks
     
    122130matrix=${true}
    123131repeat=${true}
    124 balance=${false}
    125 static=${false}
    126 dynamic=${false}
    127 
    128 # names=('CFA-LV' 'CFA-NS' 'CFA-R')
     132balance=${true}
     133static=${true}
     134dynamic=${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')
    129143# var_flags=('-D__STEAL=1 -DSEARCH=1' '' '-D__STEAL=1 -DRAND=1')
    130144
    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')
    136150
    137151# names=('CFA' 'CFA-STAT')
     
    140154# names=()
    141155# var_flags=()
     156
     157names=('CFA')
     158var_flags=('')
    142159
    143160runCAF=${true}
     
    145162runPROTO=${true}
    146163runAKKA=${true}
    147 # runCAF=${false}
    148 # runUCPP=${false}
    149 # runPROTO=${false}
    150 # runAKKA=${false}
     164runCAF=${false}
     165runUCPP=${false}
     166runPROTO=${false}
     167runAKKA=${false}
    151168
    152169if [ ${missed_gulps} -eq ${true} ] ; then
     
    159176    runPROTO=${false}
    160177    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}
    161198fi
    162199
     
    179216print_header() {
    180217    echo ${1}':'
    181     echo -e "proc\ttime (s)"
     218    if [ ${mem} -eq ${false} ] ; then
     219        echo -e $column_headers
     220    fi
    182221}
    183222
     
    190229    affinity ${1}
    191230    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
    193236}
    194237
     
    249292# /usr/bin/time -f "%Uu %Ss %Er %Mkb"
    250293if [ ${executor} -eq ${true} ] ; then
    251     echo "executor"
     294    if [ ${mem} -eq ${false} ] ; then
     295        echo "executor"
     296    else
     297        echo "mem"
     298    fi
    252299    pre_args="40000 100 ${nRounds}"
    253300    post_args="${batch}"
     
    280327            set_akka_parallelism ${p}
    281328            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           
    283339            sbt clean > /dev/null
    284340        done
     
    441497        g++ ${prefixCAF} CAFSendStatic.cpp ${suffixCAF} -o a.${hostname} > /dev/null 2>&1
    442498        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}
    444500        rm a.${hostname}
    445501        cd - > /dev/null
     
    487543        g++ ${prefixCAF} CAFSendDynamic.cpp ${suffixCAF} -o a.${hostname} > /dev/null 2>&1
    488544        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}
    490546        rm a.${hostname}
    491547        cd - > /dev/null
     
    496552        echo 'Akka:'
    497553        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//"
    499555        cd - > /dev/null
    500556    fi # done AKKA
     
    511567        echo 'ProtoActor:'
    512568        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}
    514570        rm a.${hostname}
    515571        cd - > /dev/null
     
    524580    for i in ${!names[@]}; do
    525581        echo ${names[$i]}':'
    526         echo -e "proc\ttime (s)"
     582        echo -e $column_headers
    527583        ${cfa} ${cfa_flags} ${var_flags[$i]} balance.cfa -o a.${hostname} > /dev/null 2>&1
    528584        for p in ${bench_cores} ; do
     
    537593    for i in ${!names[@]}; do
    538594        echo ${names[$i]}':'
    539         echo -e "proc\ttime (s)"
     595        echo -e $column_headers
    540596        ${cfa} ${cfa_flags} ${var_flags[$i]} -DMULTI balance.cfa -o a.${hostname} > /dev/null 2>&1
    541597        for p in ${bench_cores} ; do
Note: See TracChangeset for help on using the changeset viewer.