Print this page
7290 ZFS test suite needs to control what utilities it can run
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>

*** 10,20 **** # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # ! # Copyright (c) 2015 by Delphix. All rights reserved. # # # Description: # Trigger fio runs using the random_readwrite job file. The number of runs and --- 10,20 ---- # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # ! # Copyright (c) 2015, 2016 by Delphix. All rights reserved. # # # Description: # Trigger fio runs using the random_readwrite job file. The number of runs and
*** 29,47 **** . $STF_SUITE/include/libtest.shlib . $STF_SUITE/tests/perf/perf.shlib function cleanup { ! log_must $ZFS destroy $TESTFS } log_assert "Measure IO stats during random read-write load" log_onexit cleanup export TESTFS=$PERFPOOL/testfs recreate_perfpool ! log_must $ZFS create $PERF_FS_OPTS $TESTFS # Aim to fill the pool to 50% capacity while accounting for a 3x compressratio. export TOTAL_SIZE=$(($(get_prop avail $TESTFS) * 3 / 2)) # Variables for use by fio. --- 29,47 ---- . $STF_SUITE/include/libtest.shlib . $STF_SUITE/tests/perf/perf.shlib function cleanup { ! log_must zfs destroy $TESTFS } log_assert "Measure IO stats during random read-write load" log_onexit cleanup export TESTFS=$PERFPOOL/testfs recreate_perfpool ! log_must zfs create $PERF_FS_OPTS $TESTFS # Aim to fill the pool to 50% capacity while accounting for a 3x compressratio. export TOTAL_SIZE=$(($(get_prop avail $TESTFS) * 3 / 2)) # Variables for use by fio.
*** 62,77 **** # Layout the files to be used by the readwrite tests. Create as many files # as the largest number of threads. An fio run with fewer threads will use # a subset of the available files. export NUMJOBS=$(get_max $PERF_NTHREADS) export FILE_SIZE=$((TOTAL_SIZE / NUMJOBS)) ! log_must $FIO $FIO_SCRIPTS/mkfiles.fio # Set up the scripts and output files that will log performance data. lun_list=$(pool_to_lun_list $PERFPOOL) log_note "Collecting backend IO stats with lun list $lun_list" export collect_scripts=("$PERF_SCRIPTS/io.d $PERFPOOL $lun_list 1" "io" ! "$VMSTAT 1" "vmstat" "$MPSTAT 1" "mpstat" "$IOSTAT -xcnz 1" "iostat") log_note "Random reads and writes with $PERF_RUNTYPE settings" ! do_fio_run random_readwrite.fio $FALSE $TRUE log_pass "Measure IO stats during random read and write load" --- 62,77 ---- # Layout the files to be used by the readwrite tests. Create as many files # as the largest number of threads. An fio run with fewer threads will use # a subset of the available files. export NUMJOBS=$(get_max $PERF_NTHREADS) export FILE_SIZE=$((TOTAL_SIZE / NUMJOBS)) ! log_must fio $FIO_SCRIPTS/mkfiles.fio # Set up the scripts and output files that will log performance data. lun_list=$(pool_to_lun_list $PERFPOOL) log_note "Collecting backend IO stats with lun list $lun_list" export collect_scripts=("$PERF_SCRIPTS/io.d $PERFPOOL $lun_list 1" "io" ! "vmstat 1" "vmstat" "mpstat 1" "mpstat" "iostat -xcnz 1" "iostat") log_note "Random reads and writes with $PERF_RUNTYPE settings" ! do_fio_run random_readwrite.fio false true log_pass "Measure IO stats during random read and write load"