run-readwrite-experiments 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/bin/bash
  2. # For each of a variety of network latencies and bandwidths, run three
  3. # experiments in parallel on different NUMA nodes
  4. # read, write, readwrite, or init
  5. mode=readwrite
  6. # You'll probably want to tune the FLORAM_NUMA_P[01] environment
  7. # variables to taste
  8. run1() {
  9. FLORAM_NUMA_P0="numactl -C 18-25 -m 1" \
  10. FLORAM_NUMA_P1="numactl -C 26-33 -m 1" \
  11. ./run-experiment $mode $1 128 3000 >> ${mode}_${2}_1.out
  12. }
  13. run2() {
  14. FLORAM_NUMA_P0="numactl -C 36-43 -m 2" \
  15. FLORAM_NUMA_P1="numactl -C 44-51 -m 2" \
  16. ./run-experiment $mode $1 128 3100 >> ${mode}_${2}_2.out
  17. }
  18. run3() {
  19. FLORAM_NUMA_P0="numactl -C 54-61 -m 3" \
  20. FLORAM_NUMA_P1="numactl -C 61-69 -m 3" \
  21. ./run-experiment $mode $1 128 3200 >> ${mode}_${2}_3.out
  22. }
  23. run() {
  24. ./set-networking $2 $3
  25. run1 $1 "${2}_${3}_128" &
  26. run2 $1 "${2}_${3}_128" &
  27. run3 $1 "${2}_${3}_128" &
  28. wait
  29. }
  30. run 20 10ms 100mbit
  31. run 20 50ms 100mbit
  32. run 20 70ms 100mbit
  33. run 20 30ms 10mbit
  34. run 20 30ms 30mbit
  35. run 20 30ms 50mbit
  36. run 20 30ms 70mbit
  37. run 20 30ms 90mbit
  38. run 20 30ms 110mbit
  39. run 16 30ms 100mbit
  40. run 18 30ms 100mbit
  41. run 20 30ms 100mbit
  42. run 22 30ms 100mbit
  43. run 24 30ms 100mbit
  44. run 26 30ms 100mbit