From 92001467960b904d7289a0bdcddf1477ca974863 Mon Sep 17 00:00:00 2001 From: Yi Sun Date: Tue, 11 Feb 2025 14:50:19 -0500 Subject: [PATCH 1/2] fix: read max cells per chip in segment correctly --- bin/host/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/host/src/main.rs b/bin/host/src/main.rs index 9f77b37a0..d43e31967 100644 --- a/bin/host/src/main.rs +++ b/bin/host/src/main.rs @@ -68,6 +68,10 @@ struct HostArgs { #[clap(flatten)] benchmark: BenchmarkCli, + + /// Max cells per chip in segment for continuations + #[arg(short, long, alias = "max_cells_per_chip_in_segment")] + pub max_cells_per_chip_in_segment: Option, } const OPENVM_CLIENT_ETH_ELF: &[u8] = include_bytes!("../elf/openvm-client-eth"); @@ -181,7 +185,7 @@ async fn main() -> eyre::Result<()> { let app_log_blowup = args.benchmark.app_log_blowup.unwrap_or(DEFAULT_APP_LOG_BLOWUP); let max_segment_length = args.benchmark.max_segment_length.unwrap_or((1 << 23) - 100); let max_cells_per_chip_in_segment = - args.benchmark.max_cells_per_chip_in_segment.unwrap_or(((1 << 23) - 100) * 120); + args.max_cells_per_chip_in_segment.unwrap_or(((1 << 23) - 100) * 120); let vm_config = reth_vm_config(app_log_blowup, max_segment_length, max_cells_per_chip_in_segment); From 1c6421030e585bc1c25c3b4792a0d071620bfb27 Mon Sep 17 00:00:00 2001 From: Yi Sun Date: Tue, 11 Feb 2025 15:43:16 -0500 Subject: [PATCH 2/2] chore: set jemalloc default --- .github/workflows/reth-benchmark.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reth-benchmark.yml b/.github/workflows/reth-benchmark.yml index 20b849bb4..a92d0ecd9 100644 --- a/.github/workflows/reth-benchmark.yml +++ b/.github/workflows/reth-benchmark.yml @@ -262,7 +262,7 @@ jobs: - name: Set build args id: set-build-args run: | - FEATURES="bench-metrics,nightly-features,${{ inputs.memory_allocator || github.event.inputs.memory_allocator }}" + FEATURES="bench-metrics,nightly-features,${{ inputs.memory_allocator || github.event.inputs.memory_allocator || 'jemalloc' }}" if [[ "${{ inputs.profiling || github.event.inputs.profiling }}" == "guest" ]]; then OPTIONAL_ARGS="${OPTIONAL_ARGS} --profiling" FEATURES="${FEATURES},profiling"