]> git.proxmox.com Git - mirror_zfs.git/commit
Assorted fixes for the performance tests
authorJohn Wren Kennedy <john.kennedy@delphix.com>
Mon, 26 Jul 2021 21:47:08 +0000 (15:47 -0600)
committerGitHub <noreply@github.com>
Mon, 26 Jul 2021 21:47:08 +0000 (15:47 -0600)
commitbdd2bfd02c70f42ba99d5d621998cfe6a959cb6b
tree7cadd9b591307d9812eaee3bcd4e432941a31b47
parentd8381f50d6adb7c20941ceac64c356dfeb9b80e7
Assorted fixes for the performance tests

- Bail out early if we're running the perf tests and forget to
  specify disks.
- Allow perf tests to run with any number of disks.
- Remove weekly vs. nightly settings
- Move variables with common values to perf.shlib
- Use zinject to clear the ARC over export/import
- Fix dbuf cache size calculation

When the meaning of `dbuf_cache_max_bytes` changed, the performance
test that covers the dbuf cache started to fail. The test would try to
write files for the test using the max possible size of the cache,
inevitably filling the pool and failing. This change uses
`dbuf_cache_shift` to correctly calculate the dbuf cache size.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: John Kennedy <john.kennedy@delphix.com>
Closes #12408
14 files changed:
scripts/zfs-tests.sh
tests/zfs-tests/include/tunables.cfg
tests/zfs-tests/tests/perf/perf.shlib
tests/zfs-tests/tests/perf/regression/random_reads.ksh
tests/zfs-tests/tests/perf/regression/random_readwrite.ksh
tests/zfs-tests/tests/perf/regression/random_readwrite_fixed.ksh
tests/zfs-tests/tests/perf/regression/random_writes.ksh
tests/zfs-tests/tests/perf/regression/random_writes_zil.ksh
tests/zfs-tests/tests/perf/regression/sequential_reads.ksh
tests/zfs-tests/tests/perf/regression/sequential_reads_arc_cached.ksh
tests/zfs-tests/tests/perf/regression/sequential_reads_arc_cached_clone.ksh
tests/zfs-tests/tests/perf/regression/sequential_reads_dbuf_cached.ksh
tests/zfs-tests/tests/perf/regression/sequential_writes.ksh
tests/zfs-tests/tests/perf/regression/setup.ksh