From 3bec2a94fa85553c3c12a05193711201303e8b4c Mon Sep 17 00:00:00 2001 From: Yichi Chen Date: Sat, 5 Jul 2025 20:15:43 +0800 Subject: [PATCH 1/3] fix: missing the image_content directory --- justfile | 1 + 1 file changed, 1 insertion(+) diff --git a/justfile b/justfile index 4d624397..4e2dff4b 100644 --- a/justfile +++ b/justfile @@ -143,6 +143,7 @@ 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 }} From c7e55a097bb3299b608f5315ba4b77fd1f74cbbc Mon Sep 17 00:00:00 2001 From: Yichi Chen Date: Sat, 5 Jul 2025 20:22:53 +0800 Subject: [PATCH 2/3] feat: add SUDO_PASSWD environment check on cold_start_latency --- README.md | 2 +- justfile | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 4e2dff4b..466274c0 100644 --- a/justfile +++ b/justfile @@ -149,6 +149,12 @@ 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 From 0e32fc471faf0330714bc052e14f8b685d1c5284 Mon Sep 17 00:00:00 2001 From: Yichi Chen Date: Sat, 5 Jul 2025 21:02:02 +0800 Subject: [PATCH 3/3] fix: increase interval time for slower machines --- justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/justfile b/justfile index 466274c0..c1af6a44 100644 --- a/justfile +++ b/justfile @@ -204,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'