Skip to content

Commit

Permalink
Check in updates for AWS evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
sgdxbc committed Oct 13, 2023
1 parent 6cc413d commit 809e026
Show file tree
Hide file tree
Showing 12 changed files with 4,127 additions and 75 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ Create AWS cluster

```
dev:~$ cd neobft-artifact
dev:~/neobft-artifact$ terraform -chdir=scripts/aws apply
dev:~/neobft-artifact$ terraform -chdir=scripts/neo-aws apply
```

Enter "yes" when prompted.

Initialize the cluster

```
dev:~/neobft-artifact$ cargo -q run -p neo-aws -- hmac
dev:~/neobft-artifact$ cargo -q run -p neo-aws
```

Reload servers and run control script
Expand All @@ -180,17 +180,15 @@ Reload servers and run control script
dev:~/neobft-artifact$ cargo -q run -p reload --features aws
Finished release [optimized] target(s) in 0.07s
* server started on ip-x-x-x-x.ap-east-1.compute.amazonaws.com
dev:~/neobft-artifact$ cargo -q run -p control --features aws -- aws-hmac
dev:~/neobft-artifact$ cargo -q run -p control --features aws -- aws
```

The results will be saved to `saved-aws-hmac.csv`.

Repeat the process with `hmac` replaced with `fpga`.
The results will be saved to `saved-aws.csv`.

After running, destroy AWS cluster

```
dev:~/neobft-artifact$ terraform -chdir=scripts/aws destroy
dev:~/neobft-artifact$ terraform -chdir=scripts/neo-aws destroy
```

Enter "yes" when prompted.
Expand Down
14 changes: 14 additions & 0 deletions notebooks/figues.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,20 @@
"g.set(xscale='log')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"data = saved_data\n",
"g = sns.relplot(\n",
" data=data[data['number of faulty'] > 1].groupby(['protocol', 'number of faulty']).sum(), \n",
" kind=\"line\",\n",
" x=\"number of faulty\", y=\"throughput\", hue=\"protocol\",\n",
" height=2.56, aspect=2.)"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
4 changes: 3 additions & 1 deletion prepare.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Update the following files based on the physical/dev ports that servers/FPGA con
The development environment should install Rust toolchain that targets server machines.
It should also install Terraform and AWS CLI.

In order to plot, development environment should install `seaborn` pypi package and Jupyter notebook environment.

> Note: It is assumed that there is access to the Intel P4 Studio SDE version 9.7.0 and the ICA tools helper scripts.
The P4 Studio SDE is placed in switch's home directory, i.e., `$HOME/bf-sde-9.7.0`, and also the tools at `$HOME/tools`.
Expand All @@ -29,7 +31,7 @@ FPGA shell version shall be `xilinx_u50_gen3x16_xdma_201920_3`.

## Configure AWS account

Make sure vCore limit is over 600 in the evaluating region.
Make sure vCore limit is not less than 600 in the evaluating region.

Create a key pair called "Ephemeral" in the evaluating region.

Expand Down
Loading

0 comments on commit 809e026

Please sign in to comment.