Skip to content

Run microbenchmarks

Harshit Garg edited this page Jan 10, 2022 · 3 revisions
  1. rent m5.metal node.
  2. connect using vs code terminal(the remote plugin makes everything a breeze).
# clone vhive repo. 
git clone https://github.com/ease-lab/vhive
# clone vswarm repo 
git clone https://github.com/ease-lab/vswarm
cd ~/vhive
./scripts/cloudlab/setup_node.sh stock-only
  1. open a new tmux terminal and run
sudo containerd
  1. in a new terminal, start the cluster
cd ~/vhive
./scripts/cluster/create_one_node_cluster.sh stock-only
  1. Generate experiment yamls
cd ~/vhive
git checkout ubench_yamls
cd examples/benchmarker
# create directory for output yamls
mkdir experiment_yamls
# this will generate yamls for the experiment for the microbenchmarks
go run ./benchmark.go ./knativeTypes.go ./experimentTypes.go -file ./experiment_configs/uBench/<experiment_config>
  1. export AWS keys
export AWS_SECRET_KEY="ubwdcusbdon"
export AWS_ACCESS_KEY="dcdscs"
export AWS_ELASTICACHE_URL="jn3297gu.cache.amazonaws.com:6379"
  1. measure latencies
cd ~/vhive
git checkout ubench_yamls
cd examples/benchmarker
./bench.sh experiment_yamls #no forward slash
  1. the latencies will be saved in lat.csv of the respective folder in experiment_yamls folder
Clone this wiki locally