diff options
author | Ahmed G <[email protected]> | 2017-01-17 16:53:31 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-02-24 11:08:24 -0800 |
commit | 3ae35478d75c3a94d3b23e2dd5e826a5ed9b6057 (patch) | |
tree | f51a71e72d557f83e1e358690df7a3e1e2b57ef9 | |
parent | 9e2c3bb4b977bb6c5091b63bf6a736466ba25d1a (diff) |
OpenZFS 7736 - ZFS Performance tests should log FIO summary output
Authored by: Ahmed G <[email protected]>
Reviewed by: John Kennedy <[email protected]>
Reviewed by: Dan Kimmel <[email protected]>
Reviewed by: Stephen Blinick <[email protected]>
Approved by: Dan McDonald <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Ported-by: Giuseppe Di Natale <[email protected]>
Porting Notes:
- Using $FIO until 7290 is ported.
OpenZFS-issue: https://www.illumos.org/issues/7736
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/7a61309
Closes #5827
-rw-r--r-- | tests/zfs-tests/tests/perf/perf.shlib | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/zfs-tests/tests/perf/perf.shlib b/tests/zfs-tests/tests/perf/perf.shlib index cb2b85a20..8be67842c 100644 --- a/tests/zfs-tests/tests/perf/perf.shlib +++ b/tests/zfs-tests/tests/perf/perf.shlib @@ -61,8 +61,9 @@ function do_fio_run for threads in $PERF_NTHREADS; do for sync in $PERF_SYNC_TYPES; do for iosize in $PERF_IOSIZES; do + typeset sync_str=$(get_sync_str $sync) log_note "Running with $threads" \ - "$(get_sync_str $sync) threads, $iosize ios" + "$sync_str threads, $iosize ios" if $do_recreate; then recreate_perfpool @@ -86,8 +87,16 @@ function do_fio_run # Start the data collection do_collect_scripts $threads $sync $iosize + # This will be part of the output filename. + typeset suffix="$sync_str.$iosize-ios.$threads-threads" + + # Define output file + typeset logbase="$(get_perf_output_dir)/$($BASENAME \ + $SUDO_COMMAND)" + typeset outfile="$logbase.fio.$suffix" + # Start the load - log_must $FIO $FIO_SCRIPTS/$script + log_must $FIO --output $outfile $FIO_SCRIPTS/$script done done done |