]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.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)
committerTony Hutter <hutter2@llnl.gov>
Tue, 14 Sep 2021 20:09:24 +0000 (13:09 -0700)
commit94299107813a87e68c27a3522bf16e37729c8260
tree579c5e6c29bd3dd9e96d1f2f9d8d6e8043c3aa02
parent8a969f3e2d07edd568d99a53137306d89d99120e
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