Skip to content

Commit

Permalink
Don't run benchmarks with --debug.
Browse files Browse the repository at this point in the history
Previously, --debug was being passed to the mount command.  As this
might impact performance, this change removes it.

We also add a new environment variable, S3_DEBUG, which can be used to
add this back again if needed (just set it to a non-empty value).

Signed-off-by: Andrew Peace <[email protected]>
  • Loading branch information
adpeace committed Nov 6, 2024
1 parent 664ddcd commit 71e3281
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion mountpoint-s3/scripts/fs_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ if [[ -n "${S3_ENDPOINT_URL}" ]]; then
optional_args+="--endpoint-url=${S3_ENDPOINT_URL}"
fi

if [[ -n "${S3_DEBUG}" ]]; then
optional_args+= " --debug"
fi

base_dir=$(dirname "$0")
project_dir="${base_dir}/../.."
cd ${project_dir}
Expand Down Expand Up @@ -151,7 +155,6 @@ run_benchmarks() {
set +e
cargo run --quiet --release -- \
${S3_BUCKET_NAME} ${mount_dir} \
--debug \
--allow-delete \
--log-directory=${log_dir} \
--prefix=${S3_BUCKET_TEST_PREFIX} \
Expand Down
5 changes: 4 additions & 1 deletion mountpoint-s3/scripts/fs_cache_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ if [[ -n "${S3_ENDPOINT_URL}" ]]; then
optional_args+="--endpoint-url=${S3_ENDPOINT_URL}"
fi

if [[ -n "${S3_DEBUG}" ]]; then
optional_args+= " --debug"
fi

base_dir=$(dirname "$0")
project_dir="${base_dir}/../.."
cd ${project_dir}
Expand Down Expand Up @@ -164,7 +168,6 @@ cache_benchmark () {
set +e
cargo run --quiet --release -- \
${S3_BUCKET_NAME} ${mount_dir} \
--debug \
--allow-delete \
--cache=${cache_dir} \
--log-directory=${log_dir} \
Expand Down
5 changes: 4 additions & 1 deletion mountpoint-s3/scripts/fs_latency_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ if [[ -n "${S3_ENDPOINT_URL}" ]]; then
optional_args+="--endpoint-url=${S3_ENDPOINT_URL}"
fi

if [[ -n "${S3_DEBUG}" ]]; then
optional_args+= " --debug"
fi

base_dir=$(dirname "$0")
project_dir="${base_dir}/../.."
cd ${project_dir}
Expand Down Expand Up @@ -136,7 +140,6 @@ for job_file in "${jobs_dir}"/*.fio; do

# mount file system
cargo run --release ${S3_BUCKET_NAME} ${mount_dir} \
--debug \
--allow-delete \
--log-directory=$log_dir \
--prefix=${S3_BUCKET_TEST_PREFIX} \
Expand Down

0 comments on commit 71e3281

Please sign in to comment.