From 11d0652f0c525ae601db90f9ae608b7d2588b2bb Mon Sep 17 00:00:00 2001 From: malucius-rh Date: Tue, 4 Aug 2026 12:44:42 -0400 Subject: [PATCH 1/5] Fix mismatch in page_size naming Case statement uses "pagesize" instead of "page_size" so neither version works. Put the underscore in the case statement --- iozone/iozone_run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iozone/iozone_run.sh b/iozone/iozone_run.sh index 95fa9ee..9c859d7 100755 --- a/iozone/iozone_run.sh +++ b/iozone/iozone_run.sh @@ -1667,8 +1667,8 @@ while [[ $# -gt 0 ]]; do outcache_multiplier=$2 shift 1 ;; - --pagesize) - pagesize=$2 + --page_size) + page_size=$2 shift 1 ;; --quick) From 1c86245633dab61b205acefdf320dea748b62b94 Mon Sep 17 00:00:00 2001 From: malucius-rh Date: Tue, 4 Aug 2026 12:46:33 -0400 Subject: [PATCH 2/5] Change page_size to min_file_size Option wasn't named for what it really means. We already have a max_file_size so using min_file_size which matches what iozone itself thinks the option means makes sense. --- iozone/iozone_run.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/iozone/iozone_run.sh b/iozone/iozone_run.sh index 9c859d7..e829045 100755 --- a/iozone/iozone_run.sh +++ b/iozone/iozone_run.sh @@ -90,7 +90,7 @@ results_dir=`pwd`/results devices_to_use="grab_disks" out_dir="" mount_location="/iozone/iozone" -page_size=1024 +min_file_size=1024 total_memory=0 memory4_pagecache=0 incache_memory=0 @@ -227,7 +227,7 @@ usage() echo "auto: operate in auto mode" echo "iozone_umount: remount between tests. Only 1 mount point supported." echo " Defaul is no" - echo "page_size : Minimum file size in kBytes for auto mode. Default is 1024" + echo "min_file_size : Minimum file size in kBytes for auto mode. Default is 1024" echo "quick : Factor used to speed-up the runs." echo " incache_memory=incache_memory/do_quick. Default is 1" echo "test_type: Comma separated list of tests to run. Default is 0,1" @@ -680,8 +680,8 @@ do_test_actual() else let "file_size=$max_file_size" echo ================================================ >> ${iozone_output_file} - echo ${iozone_exe} -R ${4} ${6} -r ${page_size} -s${file_size}g -c -w -C ${iozone_args}-F ${5} >> ${iozone_output_file} - time taskset -c 0 ${iozone_exe} -R ${4} ${6} -r ${page_size} -s${file_size}g -c -w -C ${iozone_args} -F ${5} >> ${iozone_output_file} + echo ${iozone_exe} -R ${4} ${6} -r ${min_file_size} -s${file_size}g -c -w -C ${iozone_args}-F ${5} >> ${iozone_output_file} + time taskset -c 0 ${iozone_exe} -R ${4} ${6} -r ${min_file_size} -s${file_size}g -c -w -C ${iozone_args} -F ${5} >> ${iozone_output_file} status=$? fi @@ -935,7 +935,7 @@ print_system_and_run_info() fmt_printline " readahead for LUN above" "${readahead}" echo "" fmt_printline "IOZONE version" `${iozone_exe} -v | grep Version | awk '{ print $3 }'` - fmt_printline " Smallest file to work on" "${page_size} (KB)" + fmt_printline " Smallest file to work on" "${min_file_size} (KB)" fmt_printline " 90% of Free disk space available" "${free_space} (MB)" if [ ${do_incache} -eq 1 ]; then @@ -999,22 +999,22 @@ execute_iozone() #Avoid mixing auto flags with throughput mode flags if [[ ${auto} == 1 ]]; then if [[ ${do_incache} -eq 1 ]]; then - test_specific_args=" -n ${page_size}k -g ${incache_maxfile}m -y 1k -q 1m" + test_specific_args=" -n ${min_file_size}k -g ${incache_maxfile}m -y 1k -q 1m" do_test "In_Cache" "incache" ${test_specific_args} fi if [[ ${do_incache_fsync} -eq 1 ]]; then - test_specific_args=" -n ${page_size}k -g ${incache_maxfile}m -y 1k -q 1m -e" + test_specific_args=" -n ${min_file_size}k -g ${incache_maxfile}m -y 1k -q 1m -e" do_test "In_Cache_+_Fsync" "incache+fsync" ${test_specific_args} fi if [[ ${do_incache_mmap} -eq 1 ]]; then - test_specific_args=" -n ${page_size}k -g ${incache_maxfile}m -y 1k -q 1m -B" + test_specific_args=" -n ${min_file_size}k -g ${incache_maxfile}m -y 1k -q 1m -B" do_test "In_Cache_w_MMAP" "incache+mmap" ${test_specific_args} fi if [[ ${do_dio} -eq 1 ]]; then - test_specific_args="-I -n ${page_size}k -g ${dio_maxfile}m -y 64k -q 1m -i 0 -i 1 -i 2 -i 3 -i 4 -i 5" + test_specific_args="-I -n ${min_file_size}k -g ${dio_maxfile}m -y 64k -q 1m -i 0 -i 1 -i 2 -i 3 -i 4 -i 5" do_test "Direct_IO" "directio" ${test_specific_args} fi @@ -1538,7 +1538,7 @@ ARGUMENT_LIST=( "iterations" "iozone_options" "outcache_multiplier" - "page_size" + "min_file_size" "quick" "results_dir" "test_prefix" @@ -1667,8 +1667,8 @@ while [[ $# -gt 0 ]]; do outcache_multiplier=$2 shift 1 ;; - --page_size) - page_size=$2 + --min_file_size) + min_file_size=$2 shift 1 ;; --quick) From c5b77e3247be643089610265e1071554f840e009 Mon Sep 17 00:00:00 2001 From: malucius-rh Date: Tue, 4 Aug 2026 12:47:55 -0400 Subject: [PATCH 3/5] Update the docs for s/page_size/min_file_size --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d2c5d3..f469e6a 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ File & Filesystem Options: Iozone-Specific Options: --iozone_kit : Iozone package to download (default: iozone3_490). --auto: Use auto-mode testing instead of throughput mode. - --page_size : Minimum file size for auto-mode (default: 1024 KB). + --min_file_size : Minimum file size for auto-mode (default: 1024 KB). --quick : Divisor for in-cache memory to speed up tests (default: 1). --test_type <0,1,2,...>: Iozone test types (0=write, 1=read, etc.; default: 0,1). --iozone_options : Additional iozone arguments passed directly to the binary. From c71cadbc3d06408d3858ebf7ce7ca41b77048217 Mon Sep 17 00:00:00 2001 From: malucius-rh Date: Wed, 5 Aug 2026 10:36:03 -0400 Subject: [PATCH 4/5] internal doc update to reflect dual usage --- iozone/iozone_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iozone/iozone_run.sh b/iozone/iozone_run.sh index e829045..56f1abc 100755 --- a/iozone/iozone_run.sh +++ b/iozone/iozone_run.sh @@ -227,7 +227,7 @@ usage() echo "auto: operate in auto mode" echo "iozone_umount: remount between tests. Only 1 mount point supported." echo " Defaul is no" - echo "min_file_size : Minimum file size in kBytes for auto mode. Default is 1024" + echo "min_file_size : Minimum file size in kBytes for auto mode and record size for throughput mode. Default is 1024" echo "quick : Factor used to speed-up the runs." echo " incache_memory=incache_memory/do_quick. Default is 1" echo "test_type: Comma separated list of tests to run. Default is 0,1" From 2e259af98718d67c7fe2778d0a4d6a59c13ead2c Mon Sep 17 00:00:00 2001 From: malucius-rh Date: Wed, 5 Aug 2026 10:37:10 -0400 Subject: [PATCH 5/5] update readme to handle dual use of --min_file_size --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f469e6a..142a7bc 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ File & Filesystem Options: Iozone-Specific Options: --iozone_kit : Iozone package to download (default: iozone3_490). --auto: Use auto-mode testing instead of throughput mode. - --min_file_size : Minimum file size for auto-mode (default: 1024 KB). + --min_file_size : Minimum file size for auto-mode and record size for throughput mode (default: 1024 KB). --quick : Divisor for in-cache memory to speed up tests (default: 1). --test_type <0,1,2,...>: Iozone test types (0=write, 1=read, etc.; default: 0,1). --iozone_options : Additional iozone arguments passed directly to the binary.