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_writes 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_writes job file. The number of runs and
*** 28,46 **** . $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 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. --- 28,46 ---- . $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 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.
*** 60,69 **** # 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 writes with $PERF_RUNTYPE settings" ! do_fio_run random_writes.fio $TRUE $FALSE log_pass "Measure IO stats during random write load" --- 60,69 ---- # 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 writes with $PERF_RUNTYPE settings" ! do_fio_run random_writes.fio true false log_pass "Measure IO stats during random write load"