repro-fig9-livenet 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #!/bin/bash
  2. # Reproduce the live network experiments for Figure 9 of the paper.
  3. # We need these environment variables set:
  4. # PRAC_SSH_P0_USERHOST: the user@host to ssh to for P0
  5. # PRAC_SSH_P0_SSHOPTS: any options to ssh you need to ssh to P0
  6. # PRAC_SSH_P0_IP: the IP address P0 can listen for connections on
  7. # PRAC_SSH_P0_DIR: the directory relative to the homedir where the prac
  8. # repo is checked out and built
  9. # PRAC_SSH_P1_USERHOST: the user@host to ssh to for P1
  10. # PRAC_SSH_P1_SSHOPTS: any options to ssh you need to ssh to P1
  11. # PRAC_SSH_P1_IP: the IP address P1 can listen for connections on
  12. # PRAC_SSH_P1_DIR: the directory relative to the homedir where the prac
  13. # repo is checked out and built
  14. # PRAC_SSH_P2_USERHOST: the user@host to ssh to for P2
  15. # PRAC_SSH_P2_SSHOPTS: any options to ssh you need to ssh to P2
  16. # PRAC_SSH_P2_IP: the IP address P2 can listen for connections on
  17. # PRAC_SSH_P2_DIR: the directory relative to the homedir where the prac
  18. # repo is checked out and built
  19. # Optional: PRAC_NUMA_P{0,1,2}
  20. # Add additional env vars
  21. export PRAC_USE_SSH=1
  22. export PRAC_PARSE_HOST=1
  23. # cd into the directory containing this script (from the bash faq 028)
  24. if [[ $BASH_SOURCE = */* ]]; then
  25. cd -- "${BASH_SOURCE%/*}/" || exit
  26. fi
  27. # The number of iterations to do
  28. if [ "$1" = "" ]; then
  29. niters=3
  30. else
  31. niters="$1"
  32. fi
  33. # Run the PRAC experiments
  34. ./repro fig9 $niters || exit 1
  35. # Set up the ORAM environment variables based on the PRAC ones
  36. export ORAM_SSH_C_USERHOST="$PRAC_SSH_P0_USERHOST"
  37. export ORAM_SSH_C_SSHOPTS="$PRAC_SSH_P0_SSHOPTS"
  38. export ORAM_SSH_C_IP="$PRAC_SSH_P0_IP"
  39. export ORAM_SSH_C_DIR="$PRAC_SSH_P0_DIR"/repro/comps/circuit-oram
  40. export ORAM_NUMA_C="$PRAC_NUMA_P0"
  41. export ORAM_SSH_D_USERHOST="$PRAC_SSH_P1_USERHOST"
  42. export ORAM_SSH_D_SSHOPTS="$PRAC_SSH_P1_SSHOPTS"
  43. export ORAM_SSH_D_IP="$PRAC_SSH_P1_IP"
  44. export ORAM_SSH_D_DIR="$PRAC_SSH_P1_DIR"/repro/comps/circuit-oram
  45. export ORAM_NUMA_D="$PRAC_NUMA_P1"
  46. export ORAM_SSH_E_USERHOST="$PRAC_SSH_P2_USERHOST"
  47. export ORAM_SSH_E_SSHOPTS="$PRAC_SSH_P2_SSHOPTS"
  48. export ORAM_SSH_E_IP="$PRAC_SSH_P2_IP"
  49. export ORAM_SSH_E_DIR="$PRAC_SSH_P2_DIR"/repro/comps/circuit-oram
  50. export ORAM_NUMA_E="$PRAC_NUMA_P2"
  51. export ORAM_USE_SSH=1
  52. export ORAM_PARSE_HOST=1
  53. ( cd comps/circuit-oram/prac && \
  54. ./generate_raw_data_reads_ssh.sh $niters ) || exit 1
  55. # Set up the Ramen environment variables based on the PRAC ones
  56. export RAMEN_SSH_P0_USERHOST="$PRAC_SSH_P0_USERHOST"
  57. export RAMEN_SSH_P0_SSHOPTS="$PRAC_SSH_P0_SSHOPTS"
  58. export RAMEN_SSH_P0_IP="$PRAC_SSH_P0_IP"
  59. export RAMEN_SSH_P0_DIR="$PRAC_SSH_P0_DIR"/repro/comps/ramen
  60. export RAMEN_NUMA_P0="$PRAC_NUMA_P0"
  61. export RAMEN_SSH_P1_USERHOST="$PRAC_SSH_P1_USERHOST"
  62. export RAMEN_SSH_P1_SSHOPTS="$PRAC_SSH_P1_SSHOPTS"
  63. export RAMEN_SSH_P1_IP="$PRAC_SSH_P1_IP"
  64. export RAMEN_SSH_P1_DIR="$PRAC_SSH_P1_DIR"/repro/comps/ramen
  65. export RAMEN_NUMA_P1="$PRAC_NUMA_P1"
  66. export RAMEN_SSH_P2_USERHOST="$PRAC_SSH_P2_USERHOST"
  67. export RAMEN_SSH_P2_SSHOPTS="$PRAC_SSH_P2_SSHOPTS"
  68. export RAMEN_SSH_P2_IP="$PRAC_SSH_P2_IP"
  69. export RAMEN_SSH_P2_DIR="$PRAC_SSH_P2_DIR"/repro/comps/ramen
  70. export RAMEN_NUMA_P2="$PRAC_NUMA_P2"
  71. export RAMEN_USE_SSH=1
  72. export RAMEN_PARSE_HOST=1
  73. ( cd comps/ramen/repro && \
  74. ./generate_raw_data_reads_ssh.sh $niters ) || exit 1