Skip to content

Commit

Permalink
Workload fixes for total_iodepth
Browse files Browse the repository at this point in the history
Signed-off-by: CHris Harris([email protected])
  • Loading branch information
Chris Harris committed Feb 6, 2025
1 parent 7892fa9 commit 3ce5687
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion benchmark/librbdfio.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,18 @@ def run_workloads(self):
enable_monitor = bool(test['monitor'])
# TODO: simplify this loop to have a single iterator for general queu depth
for job in test['numjobs']:
for iod in test['iodepth']:
iodepth: list[str] = []
use_total_iodepth: bool = False
if "total_iodepth" in test.keys():
iodepth = test["total_iodepth"]
use_total_iodepth = True
else:
iodepth = test["iodepth"]
for iod in iodepth:
if use_total_iodepth:
self._ioddepth_per_volume = self._calculate_iodepth_per_volume(
int(self.volumes_per_client), int(iod)
)
self.mode = test['mode']
if 'op_size' in test:
self.op_size = test['op_size']
Expand Down

0 comments on commit 3ce5687

Please sign in to comment.