Skip to content

Commit

Permalink
Use default thread config for benchmark (#504)
Browse files Browse the repository at this point in the history
Signed-off-by: Monthon Klongklaew <[email protected]>
  • Loading branch information
monthonk authored Sep 6, 2023
1 parent 534c3ed commit b632bbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions mountpoint-s3/scripts/fs_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ cd ${project_dir}
results_dir=results
runtime_seconds=30
startdelay_seconds=30
max_threads=4
iteration=10

rm -rf ${results_dir}
Expand Down Expand Up @@ -81,8 +80,7 @@ read_bechmark () {
# mount file system
cargo run --release ${S3_BUCKET_NAME} ${mount_dir} \
--allow-delete \
--prefix=${S3_BUCKET_TEST_PREFIX} \
--max-threads=${max_threads}
--prefix=${S3_BUCKET_TEST_PREFIX}
mount_status=$?
if [ $mount_status -ne 0 ]; then
echo "Failed to mount file system"
Expand Down Expand Up @@ -115,8 +113,7 @@ write_benchmark () {
mount_dir=$(mktemp -d /tmp/fio-XXXXXXXXXXXX)
cargo run --release ${S3_BUCKET_NAME} ${mount_dir} \
--allow-delete \
--prefix=${S3_BUCKET_TEST_PREFIX} \
--max-threads=${max_threads}
--prefix=${S3_BUCKET_TEST_PREFIX}
mount_status=$?
if [ $mount_status -ne 0 ]; then
echo "Failed to mount file system"
Expand Down
7 changes: 2 additions & 5 deletions mountpoint-s3/scripts/fs_latency_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ project_dir="${base_dir}/../.."
cd ${project_dir}

results_dir=results
max_threads=4

rm -rf ${results_dir}
mkdir -p ${results_dir}
Expand All @@ -50,8 +49,7 @@ do
# mount file system
cargo run --release ${S3_BUCKET_NAME} ${mount_dir} \
--allow-delete \
--prefix=${S3_BUCKET_TEST_PREFIX} \
--max-threads=${max_threads}
--prefix=${S3_BUCKET_TEST_PREFIX}
mount_status=$?
if [ $mount_status -ne 0 ]; then
echo "Failed to mount file system"
Expand Down Expand Up @@ -112,8 +110,7 @@ for job_file in "${jobs_dir}"/*.fio; do
# mount file system
cargo run --release ${S3_BUCKET_NAME} ${mount_dir} \
--allow-delete \
--prefix=${S3_BUCKET_TEST_PREFIX} \
--max-threads=${max_threads}
--prefix=${S3_BUCKET_TEST_PREFIX}
mount_status=$?
if [ $mount_status -ne 0 ]; then
echo "Failed to mount file system"
Expand Down

0 comments on commit b632bbe

Please sign in to comment.