diff --git a/README.md b/README.md index 661bfc8f..ff32013f 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Additionally, the repository of AlloyStack is integrated with GitHub Actions. Th ## Evaluation ### Cold start latency -The cold start of AlloyStack can be categorized into two scenarios: enabling and disabling on-demand loading. The approximate cold start latency is measured using the execution time of `hello_world` and `load_all`, respectively. The following script can be used to automate the testing process. +The cold start of AlloyStack can be categorized into two scenarios: enabling and disabling on-demand loading. The approximate cold start latency is measured using the execution time of `hello_world` and `load_all`, respectively. You have to set the `SUDO_PASSWD` environment variable before running this test using the command `export SUDO_PASSWD=`, since some parts of the test require it. The following script can be used to automate the testing process. ```bash AlloyStack$ just cold_start_latency diff --git a/justfile b/justfile index 4d624397..c1af6a44 100644 --- a/justfile +++ b/justfile @@ -143,11 +143,18 @@ init: rustup override set 'nightly-2023-12-01' rustup target add x86_64-unknown-linux-musl [ -f fs_images/fatfs.img ] || unzip fs_images/fatfs.zip -d fs_images + [ -d image_content ] || mkdir image_content asvisor: cargo build {{ release_flag }} cold_start_latency: asvisor all_libos + #!/bin/bash + if [ -z "$SUDO_PASSWD" ]; then + echo "Error: SUDO_PASSWD environment variable is not set" + echo "Please set it with: export SUDO_PASSWD=" && exit 1 + fi + just rust_func hello_world just rust_func load_all @-./scripts/del_tap.sh 2>/dev/null @@ -197,7 +204,7 @@ py_end_to_end_latency: asvisor all_libos all_py_wasm -sudo mount fs_images/fatfs.img image_content 2>/dev/null sudo -E ./scripts/gen_data.py 1 '1 * 1024 * 1024' 1 '1 * 1024 * 1024' - sleep 3 + sleep 5 @echo 'Python word count cost: ' target/{{profile}}/asvisor --files isol_config/wasmtime_cpython_wordcount_c1.json --metrics total-dur 2>&1 | grep 'total_dur'