Skip to content

Commit

Permalink
set 1 perf setup
Browse files Browse the repository at this point in the history
  • Loading branch information
utaal committed Aug 20, 2024
1 parent 41fcb7c commit 02c4478
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 2 deletions.
2 changes: 2 additions & 0 deletions milli/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ docker exec verus-sosp24-milli /bin/bash setup/install.sh
docker exec verus-sosp24-milli /bin/bash setup/verifiers.sh

docker exec verus-sosp24-milli /bin/bash experiments.sh

docker rm verus-sosp24-milli
5 changes: 5 additions & 0 deletions setup/perf-build-verus-in-container.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

cd verus/source

. ../bin/activate
vargo build --release
5 changes: 5 additions & 0 deletions setup/perf-build-verus.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

cd /mydata
git clone https://github.com/verus-lang/verus.git

docker run --platform=linux/amd64 --rm -it -v .:/root/eval -w /root/eval ghcr.io/utaal/ubuntu-essentials-rust-1.76.0 /bin/bash setup/perf-build-verus-in-container.sh
40 changes: 38 additions & 2 deletions site/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,51 @@ scp '<username>@<node>.cloudlab.us:/mydata/verus-sosp24-artifact/macro-stats/res
scp '<username>@<node>.cloudlab.us:/mydata/verus-sosp24-artifact/macro-stats/results/macro-table.pdf' .
```

#### 3. Run the millibenchmark verification statistics (Figures 6, 7).

The automation scripts to produce the statistics in Figure 6, 7 are in `milli`.
The scripts make no changes to the system outside of the repository, other than spawning
containers. `run.sh` will run all the necessary experiments.

```shell
cd /mydata/verus-sosp24-artifact/milli
bash run.sh
```

**TODO.** Result plots.

#### 3. Build a copy of Verus for the performance evaluation

**TODO.** git sha.

```shell
cd /mydata/verus-sosp24-artifact
bash setup/perf-build-verus.sh
```

#### 4. Run the page table benchmark

**TODO.**

#### 5. Run the mimalloc benchmark suite

Navigate to the directory **(TODO where?)**
**TODO.** git sha.

Setup by setting up

```shell
cd /mydata
git clone https://github.com/verus-lang/verified-memory-allocator.git
```

Start a Ubuntu 22.04 container with Rust using the pre-made image:

```shell
cd verified-memory-allocator
docker run --platform=linux/amd64 -it -v /mydata/verus-sosp24-artifact -v .:/root/verified-memory-allocator -w /root/verified-memory-allocator ghcr.io/utaal/ubuntu-essentials-rust-1.76.0 /bin/bash
```

Run:
In the container run:

```
./build-benchmarks-and-allocators.sh
Expand Down

0 comments on commit 02c4478

Please sign in to comment.