Skip to content

Commit 5c9158b

Browse files
fix(disk_perf): add configurable numjob
Signed-off-by: Mathieu Labourier <[email protected]>
1 parent d21b505 commit 5c9158b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/storage/benchmarks/test_disk_perf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
DEFAULT_SIZE = "1G"
1818
DEFAULT_BS = "4k"
1919
DEFAULT_IODEPTH = 1
20+
DEFAULT_NUMJOBS = 1
2021
DEFAULT_FILE = "fio-testfile"
2122

2223
### Tests parameters
@@ -43,6 +44,7 @@ def run_fio(
4344
bs=DEFAULT_BS,
4445
iodepth=DEFAULT_IODEPTH,
4546
size=DEFAULT_SIZE,
47+
numjobs=DEFAULT_NUMJOBS,
4648
file_path="",
4749
):
4850
json_output_path = os.path.join(temp_dir, f"{test_name}.json")
@@ -60,7 +62,7 @@ def run_fio(
6062
"--direct=1",
6163
"--end_fsync=1",
6264
"--fsync_on_close=1",
63-
"--numjobs=1",
65+
f"--numjobs={numjobs}",
6466
"--group_reporting",
6567
"--output-format=json",
6668
f"--output={json_output_path}"

0 commit comments

Comments
 (0)