Changeset f6afd84 for doc/theses


Ignore:
Timestamp:
Jul 5, 2023, 2:45:16 PM (12 months ago)
Author:
caparson <caparson@…>
Branches:
master
Children:
7c4416a
Parents:
7ce70e2
Message:

merging together benchmark run files

File:
1 edited

Legend:

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

    r7ce70e2 rf6afd84  
    8585}
    8686
     87column_headers="proc\ttime (s)"
     88
    8789# executor config
    8890batch='100'
     
    102104# static config
    103105n_static_sends='100000000'
     106n_static_sends_slow='10000000'
    104107
    105108# dynamic config
    106109n_dynamic_sends='20000000'
     110n_dynamic_sends_slow='2000000'
    107111
    108112numtimes=5
    109113
    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'
     115bench_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}
     120mem=${false}
    113121
    114122# toggle benchmarks
    115 executor=${false}
    116 matrix=${false}
    117 repeat=${false}
    118 balance=${false}
     123executor=${true}
     124matrix=${true}
     125repeat=${true}
     126balance=${true}
    119127static=${true}
    120128dynamic=${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')
    123137# var_flags=('-D__STEAL=1 -DSEARCH=1' '' '-D__STEAL=1 -DRAND=1')
    124138
    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')
    130144
    131145# names=('CFA' 'CFA-STAT')
     
    134148# names=()
    135149# var_flags=()
     150
     151names=('CFA')
     152var_flags=('')
    136153
    137154runCAF=${true}
     
    139156runPROTO=${true}
    140157runAKKA=${true}
    141 # runCAF=${false}
    142 # runUCPP=${false}
    143 # runPROTO=${false}
    144 # runAKKA=${false}
     158runCAF=${false}
     159runUCPP=${false}
     160runPROTO=${false}
     161runAKKA=${false}
     162
     163if [ ${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}
     172fi
    145173
    146174cfa=~/cfa-cc/driver/cfa
     
    162190print_header() {
    163191    echo ${1}':'
    164     echo -e "proc\ttime (s)"
     192    if [ ${mem} -eq ${false} ] ; then
     193        echo -e $column_headers
     194    fi
    165195}
    166196
     
    173203    affinity ${1}
    174204    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
    176210}
    177211
     
    232266# /usr/bin/time -f "%Uu %Ss %Er %Mkb"
    233267if [ ${executor} -eq ${true} ] ; then
    234     echo "executor"
     268    if [ ${mem} -eq ${false} ] ; then
     269        echo "executor"
     270    else
     271        echo "mem"
     272    fi
    235273    pre_args="40000 100 ${nRounds}"
    236274    post_args="${batch}"
     
    263301            set_akka_parallelism ${p}
    264302            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           
    266313            sbt clean > /dev/null
    267314        done
     
    424471        g++ ${prefixCAF} CAFSendStatic.cpp ${suffixCAF} -o a.${hostname} > /dev/null 2>&1
    425472        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}
    427474        rm a.${hostname}
    428475        cd - > /dev/null
     
    470517        g++ ${prefixCAF} CAFSendDynamic.cpp ${suffixCAF} -o a.${hostname} > /dev/null 2>&1
    471518        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}
    473520        rm a.${hostname}
    474521        cd - > /dev/null
     
    479526        echo 'Akka:'
    480527        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//"
    482529        cd - > /dev/null
    483530    fi # done AKKA
     
    494541        echo 'ProtoActor:'
    495542        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}
    497544        rm a.${hostname}
    498545        cd - > /dev/null
     
    507554    for i in ${!names[@]}; do
    508555        echo ${names[$i]}':'
    509         echo -e "proc\ttime (s)"
     556        echo -e $column_headers
    510557        ${cfa} ${cfa_flags} ${var_flags[$i]} balance.cfa -o a.${hostname} > /dev/null 2>&1
    511558        for p in ${bench_cores} ; do
     
    520567    for i in ${!names[@]}; do
    521568        echo ${names[$i]}':'
    522         echo -e "proc\ttime (s)"
     569        echo -e $column_headers
    523570        ${cfa} ${cfa_flags} ${var_flags[$i]} -DMULTI balance.cfa -o a.${hostname} > /dev/null 2>&1
    524571        for p in ${bench_cores} ; do
Note: See TracChangeset for help on using the changeset viewer.