Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions s3-file-connector/scripts/fs_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,19 @@ jobs_dir=s3-file-connector/scripts/fio
target_gbps=100
thread_count=4

pwd
rm -rf ${results_dir}
mkdir -p ${results_dir}

for job_file in "${jobs_dir}"/*.fio; do
mount_dir=$(mktemp -d /tmp/fio-XXXXXXXXXXXX)
job_name=$(basename "${job_file}")
job_name="${job_name%.*}"

echo "Running ${job_name}"

# mount file system
pwd
cargo run --release ${S3_BUCKET_NAME} ${mount_dir} \
--foreground \
--prefix=${S3_BUCKET_TEST_PREFIX} \
--throughput-target-gbps=${target_gbps} \
--thread-count=${thread_count} > bench.out 2>&1 &
Expand All @@ -51,7 +52,7 @@ for job_file in "${jobs_dir}"/*.fio; do
timeout_seconds=30
# wait for file system to be ready
while true; do
mount_rec=`findmnt -rncv -S fuse_sync -T ${mount_dir} -o SOURCE,TARGET`
mount_rec=`findmnt -rncv -S s3-file-connector -T ${mount_dir} -o SOURCE,TARGET`
# file system is ready when the mount record exists
if [ -n "${mount_rec}" ]; then
break
Expand Down