Ensure that perf regression tests cleanup properly
Each test in the performance regression test suite creates a pool and a dataset for use. Unfortunately, these tests do not cleanup the pool and dataset correctly once they complete. Each test now kills fio and iostat, destroys the dataset, and finally destroys the pool. Each test also now traps the SIGTERM signal to handle cases where test-runner kills a test. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Requires-builders: all Closes #5407
This commit is contained in:
parent
ce4197c1ca
commit
251cb8dfac
|
@ -31,9 +31,15 @@
|
|||
|
||||
function cleanup
|
||||
{
|
||||
log_must $ZFS destroy $TESTFS
|
||||
# kill fio and iostat
|
||||
$PKILL ${FIO##*/}
|
||||
$PKILL ${IOSTAT##*/}
|
||||
log_must_busy $ZFS destroy $TESTFS
|
||||
log_must_busy $ZPOOL destroy $PERFPOOL
|
||||
}
|
||||
|
||||
trap "log_fail \"Measure IO stats during random read load\"" SIGTERM
|
||||
|
||||
log_assert "Measure IO stats during random read load"
|
||||
log_onexit cleanup
|
||||
|
||||
|
|
|
@ -31,9 +31,15 @@
|
|||
|
||||
function cleanup
|
||||
{
|
||||
log_must $ZFS destroy $TESTFS
|
||||
# kill fio and iostat
|
||||
$PKILL ${FIO##*/}
|
||||
$PKILL ${IOSTAT##*/}
|
||||
log_must_busy $ZFS destroy $TESTFS
|
||||
log_must_busy $ZPOOL destroy $PERFPOOL
|
||||
}
|
||||
|
||||
trap "log_fail \"Measure IO stats during random read load\"" SIGTERM
|
||||
|
||||
log_assert "Measure IO stats during random read-write load"
|
||||
log_onexit cleanup
|
||||
|
||||
|
|
|
@ -30,9 +30,15 @@
|
|||
|
||||
function cleanup
|
||||
{
|
||||
log_must $ZFS destroy $TESTFS
|
||||
# kill fio and iostat
|
||||
$PKILL ${FIO##*/}
|
||||
$PKILL ${IOSTAT##*/}
|
||||
log_must_busy $ZFS destroy $TESTFS
|
||||
log_must_busy $ZPOOL destroy $PERFPOOL
|
||||
}
|
||||
|
||||
trap "log_fail \"Measure IO stats during random read load\"" SIGTERM
|
||||
|
||||
log_assert "Measure IO stats during random write load"
|
||||
log_onexit cleanup
|
||||
|
||||
|
|
|
@ -31,9 +31,15 @@
|
|||
|
||||
function cleanup
|
||||
{
|
||||
log_must $ZFS destroy $TESTFS
|
||||
# kill fio and iostat
|
||||
$PKILL ${FIO##*/}
|
||||
$PKILL ${IOSTAT##*/}
|
||||
log_must_busy $ZFS destroy $TESTFS
|
||||
log_must_busy $ZPOOL destroy $PERFPOOL
|
||||
}
|
||||
|
||||
trap "log_fail \"Measure IO stats during random read load\"" SIGTERM
|
||||
|
||||
log_assert "Measure IO stats during sequential read load"
|
||||
log_onexit cleanup
|
||||
|
||||
|
|
|
@ -30,9 +30,15 @@
|
|||
|
||||
function cleanup
|
||||
{
|
||||
log_must $ZFS destroy $TESTFS
|
||||
# kill fio and iostat
|
||||
$PKILL ${FIO##*/}
|
||||
$PKILL ${IOSTAT##*/}
|
||||
log_must_busy $ZFS destroy $TESTFS
|
||||
log_must_busy $ZPOOL destroy $PERFPOOL
|
||||
}
|
||||
|
||||
trap "log_fail \"Measure IO stats during random read load\"" SIGTERM
|
||||
|
||||
log_assert "Measure IO stats during sequential read load"
|
||||
log_onexit cleanup
|
||||
|
||||
|
|
|
@ -36,9 +36,15 @@
|
|||
|
||||
function cleanup
|
||||
{
|
||||
log_must $ZFS destroy $TESTFS
|
||||
# kill fio and iostat
|
||||
$PKILL ${FIO##*/}
|
||||
$PKILL ${IOSTAT##*/}
|
||||
log_must_busy $ZFS destroy $TESTFS
|
||||
log_must_busy $ZPOOL destroy $PERFPOOL
|
||||
}
|
||||
|
||||
trap "log_fail \"Measure IO stats during random read load\"" SIGTERM
|
||||
|
||||
log_assert "Measure IO stats during sequential read load"
|
||||
log_onexit cleanup
|
||||
|
||||
|
|
|
@ -33,9 +33,15 @@ log_onexit cleanup
|
|||
|
||||
function cleanup
|
||||
{
|
||||
log_must $ZFS destroy $TESTFS
|
||||
# kill fio and iostat
|
||||
$PKILL ${FIO##*/}
|
||||
$PKILL ${IOSTAT##*/}
|
||||
log_must_busy $ZFS destroy $TESTFS
|
||||
log_must_busy $ZPOOL destroy $PERFPOOL
|
||||
}
|
||||
|
||||
trap "log_fail \"Measure IO stats during random read load\"" SIGTERM
|
||||
|
||||
export TESTFS=$PERFPOOL/testfs
|
||||
recreate_perfpool
|
||||
log_must $ZFS create $PERF_FS_OPTS $TESTFS
|
||||
|
|
Loading…
Reference in New Issue