123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- #!/bin/bash
- if [[ $BASH_SOURCE = */* ]]; then
- cd -- "${BASH_SOURCE%/*}/" || exit
- fi
- if [ "$NUMA_P0" != "" ]; then
- export ORAM_NUMA_C="$NUMA_P0"
- fi
- if [ "$NUMA_P1" != "" ]; then
- export ORAM_NUMA_D="$NUMA_P1"
- fi
- if [ "$NUMA_P2" != "" ]; then
- export ORAM_NUMA_E="$NUMA_P2"
- fi
- if [ "$1" == "" ]; then
- whichexps="test"
- else
- whichexps="$1"
- fi
- if [ "$whichexps" == "single" -o "$2" == "" ]; then
-
-
-
-
- numops=128
- else
- numops="$2"
- fi
- run() {
- now=`date`
- echo "$now: Running $1 $2 $3 $4 ..."
- logfile="read_${2}_${3}_${4}.out${LOGSUFFIX}"
- ./set-networking $2 $3
- echo "Network setup: $2 $3" >> $logfile
- ./run-experiment $1 $4 >> $logfile
- }
- parse() {
- cat $* | docker exec -w /root/oram/docker -i oram_C ./parse_logs
- }
- if [ "$whichexps" == "test" ]; then
- echo "Running test experiment..."
- run 16 1us 100gbit 2
- parse read_1us_100gbit_2.out${LOGSUFFIX}
- exit
- fi
- if [ "$whichexps" == "single" ]; then
- echo "Running single experiment..."
- shift
- run $*
- exit
- fi
- now=`date`
- echo "$now: Starting experiments"
- if [ "$whichexps" == "small" -o "$whichexps" == "all" ]; then
- echo "Running small experiments..."
-
- run 16 30ms 100mbit ${numops}
- run 18 30ms 100mbit ${numops}
- run 20 30ms 100mbit ${numops}
- run 22 30ms 100mbit ${numops}
- run 24 30ms 100mbit ${numops}
- run 26 30ms 100mbit ${numops}
-
-
-
-
-
- run 16 1us 100gbit ${numops}
- run 18 1us 100gbit ${numops}
- run 20 1us 100gbit ${numops}
- run 22 1us 100gbit ${numops}
- run 24 1us 100gbit ${numops}
- run 26 1us 100gbit ${numops}
- fi
- if [ "$whichexps" == "large" -o "$whichexps" == "all" ]; then
- echo "Running large experiments..."
-
- run 28 30ms 100mbit ${numops}
- run 30 30ms 100mbit ${numops}
- run 32 30ms 100mbit ${numops}
-
- run 28 1us 100gbit ${numops}
- run 30 1us 100gbit ${numops}
- run 32 1us 100gbit ${numops}
- fi
- now=`date`
- echo "$now: Experiments complete"
- if [ "$LOGSUFFIX" == "" ]; then
- parse *_${numops}.out > oram_${numops}.dat
- echo
- echo "# Figure 9(a)"
- egrep 'CircuitORAMOnln read .* 30ms 100mbit .* s$' oram_${numops}.dat | sort -k3 -n
- echo
- egrep 'CircuitORAMTotl read .* 30ms 100mbit .* s$' oram_${numops}.dat | sort -k3 -n
- echo
- echo "# Figure 9(b)"
- egrep 'CircuitORAMOnln read .* 1us 100gbit .* s$' oram_${numops}.dat | sort -k3 -n
- echo
- egrep 'CircuitORAMTotl read .* 1us 100gbit .* s$' oram_${numops}.dat | sort -k3 -n
- echo
- echo "# Figure 9(c)"
- egrep 'CircuitORAMOnln read .* 1us 100gbit .* KiB$' oram_${numops}.dat | sort -k3 -n
- echo
- egrep 'CircuitORAMTotl read .* 1us 100gbit .* KiB$' oram_${numops}.dat | sort -k3 -n
- fi
|