Merge remote-tracking branch 'upstream/dev' into dev
This commit is contained in:
commit
30eee99f5a
1 changed files with 2 additions and 0 deletions
|
|
@ -68,6 +68,8 @@ def calc_io_dd_values(dev_size, test_mode=False) -> dict[str, int]:
|
||||||
|
|
||||||
test_mode limits the benchmark to IO_MINIMUM_TEST_SIZE (if possible)
|
test_mode limits the benchmark to IO_MINIMUM_TEST_SIZE (if possible)
|
||||||
"""
|
"""
|
||||||
|
if test_mode and dev_size > IO_MINIMUM_TEST_SIZE:
|
||||||
|
dev_size = IO_MINIMUM_TEST_SIZE
|
||||||
read_total = min(IO_MINIMUM_TEST_SIZE, dev_size)
|
read_total = min(IO_MINIMUM_TEST_SIZE, dev_size)
|
||||||
read_total = max(read_total, dev_size*IO_ALT_TEST_SIZE_FACTOR)
|
read_total = max(read_total, dev_size*IO_ALT_TEST_SIZE_FACTOR)
|
||||||
read_chunks = int(read_total // IO_CHUNK_SIZE)
|
read_chunks = int(read_total // IO_CHUNK_SIZE)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue