]> git.proxmox.com Git - mirror_zfs.git/commit
OpenZFS - Performance regression suite for zfstest
authorJohn Wren Kennedy <john.kennedy@delphix.com>
Wed, 3 Aug 2016 21:26:15 +0000 (21:26 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 8 Sep 2016 23:18:28 +0000 (16:18 -0700)
commit679d73e98bf5e51a02bc8d550253e4a3f15d58ca
tree703bda77d9a294969d205c19646b3e3aa822def8
parent7050a65d5c760aa039d195fe0b6773a20a81048b
OpenZFS - Performance regression suite for zfstest

Author: John Wren Kennedy <john.kennedy@delphix.com>
Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Don Brady <don.brady@intel.com>
Reviewed by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: David Quigley <david.quigley@intel.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Ported-by: Don Brady <don.brady@intel.com>
OpenZFS-issue: https://www.illumos.org/issues/6950
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/dcbf3bd6
Delphix-commit: https://github.com/delphix/delphix-os/commit/978ed49
Closes #4929

ZFS Test Suite Performance Regression Tests

This was pulled into OpenZFS via the compressed arc featureand was
separated out in zfsonlinux as a separate pull request from PR-4768.
It originally came in as QA-4903 in Delphix-OS from John Kennedy.

Expected Usage:

$ DISKS="sdb sdc sdd" zfs-tests.sh -r perf-regression.run

Porting Notes:
1. Added assertions in the setup script to make sure required tools
   (fio, mpstat, ...) are present.
2. For the config.json generation in perf.shlib used arcstats and
    other binaries instead of dtrace to query the values.
3. For the perf data collection:
   - use "zpool iostat -lpvyL" instead of the io.d dtrace script
    (currently not collecting zfs_read/write latency stats)
   - mpstat and iostat take different arguments
   - prefetch_io.sh is a placeholder that uses arcstats instead of
     dtrace
4. Build machines require fio, mdadm and sysstat pakage (YMMV).

Future Work:
   - Need a way to measure zfs_read and zfs_write latencies per pool.
   - Need tools to takes two sets of output and display/graph the
     differences
   - Bring over additional regression tests from Delphix
31 files changed:
config/user-commands.m4
configure.ac
rpm/generic/zfs.spec.in
scripts/zfs2zol-patch.sed
tests/runfiles/perf-regression.run [new file with mode: 0644]
tests/test-runner/cmd/test-runner.py
tests/zfs-tests/include/commands.cfg.in
tests/zfs-tests/include/default.cfg.in
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/Makefile.am
tests/zfs-tests/tests/functional/clean_mirror/clean_mirror_common.kshlib
tests/zfs-tests/tests/perf/Makefile.am [new file with mode: 0644]
tests/zfs-tests/tests/perf/fio/Makefile.am [new file with mode: 0644]
tests/zfs-tests/tests/perf/fio/mkfiles.fio [new file with mode: 0644]
tests/zfs-tests/tests/perf/fio/random_reads.fio [new file with mode: 0644]
tests/zfs-tests/tests/perf/fio/random_readwrite.fio [new file with mode: 0644]
tests/zfs-tests/tests/perf/fio/random_writes.fio [new file with mode: 0644]
tests/zfs-tests/tests/perf/fio/sequential_reads.fio [new file with mode: 0644]
tests/zfs-tests/tests/perf/fio/sequential_writes.fio [new file with mode: 0644]
tests/zfs-tests/tests/perf/perf.shlib [new file with mode: 0644]
tests/zfs-tests/tests/perf/regression/Makefile.am [new file with mode: 0644]
tests/zfs-tests/tests/perf/regression/random_reads.ksh [new file with mode: 0755]
tests/zfs-tests/tests/perf/regression/random_readwrite.ksh [new file with mode: 0755]
tests/zfs-tests/tests/perf/regression/random_writes.ksh [new file with mode: 0755]
tests/zfs-tests/tests/perf/regression/sequential_reads.ksh [new file with mode: 0755]
tests/zfs-tests/tests/perf/regression/sequential_reads_cached.ksh [new file with mode: 0755]
tests/zfs-tests/tests/perf/regression/sequential_reads_cached_clone.ksh [new file with mode: 0755]
tests/zfs-tests/tests/perf/regression/sequential_writes.ksh [new file with mode: 0755]
tests/zfs-tests/tests/perf/regression/setup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/perf/scripts/Makefile.am [new file with mode: 0644]
tests/zfs-tests/tests/perf/scripts/prefetch_io.sh [new file with mode: 0755]