Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIO draft PR to finetune fio tests on ibm maremetal enviornment #9812

Closed
wants to merge 20 commits into from
4 changes: 2 additions & 2 deletions ocs_ci/templates/workloads/fio/benchmark_fio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
- 16KiB
- 4KiB
numjobs:
- 1
- 2
iodepth: 16
read_runtime: 300
write_runtime: 300
Expand All @@ -32,7 +32,7 @@ spec:
log_sample_rate: 10000
storageclass: ocs-storagecluster-ceph-rbd
storagesize: 12Gi
job_timeout: 18000
job_timeout: 30000
# rook_ceph_drop_caches: True
# rook_ceph_drop_cache_pod_ip:
#######################################
Expand Down
4 changes: 2 additions & 2 deletions ocs_ci/templates/workloads/fio/benchmark_fio_cmp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
bs:
- 64KiB
numjobs:
- 1
- 2
iodepth: 16
read_runtime: 300
write_runtime: 300
Expand All @@ -31,7 +31,7 @@ spec:
storageclass: ocs-storagecluster-ceph-rbd-cmp
storagesize: 12Gi
cmp_ratio: 75
job_timeout: 36000
job_timeout: 30000
# rook_ceph_drop_caches: True
# rook_ceph_drop_cache_pod_ip:
#######################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def setting_storage_usage(self):
log.info("Setting prefill value to False ")
self.crd_data["spec"]["workload"]["args"]["prefill"] = False

def setting_io_pattern(self, io_pattern):
def setting_io_pattern(self, io_pattern, op):
"""
Setting the test jobs according to the io pattern - random / sequential

Expand All @@ -203,12 +203,9 @@ def setting_io_pattern(self, io_pattern):

"""
if io_pattern == "sequential":
self.crd_data["spec"]["workload"]["args"]["jobs"] = ["write", "read"]
self.crd_data["spec"]["workload"]["args"]["jobs"] = [op]
if io_pattern == "random":
self.crd_data["spec"]["workload"]["args"]["jobs"] = [
"randwrite",
"randread",
]
self.crd_data["spec"]["workload"]["args"]["jobs"] = [op]

def init_full_results(self, full_results):
"""
Expand Down Expand Up @@ -378,27 +375,43 @@ def setup_internal_es(self):
self.es = None

@pytest.mark.parametrize(
argnames=["interface", "io_pattern"],
argnames=["interface", "io_pattern", "op"],
argvalues=[
pytest.param(
*[constants.CEPHBLOCKPOOL, "sequential"],
marks=pytest.mark.polarion_id("OCS-844"),
*[constants.CEPHFILESYSTEM, "random", "randread"],
marks=pytest.mark.polarion_id("OCS-846"),
),
pytest.param(
*[constants.CEPHFILESYSTEM, "random", "randwrite"],
marks=pytest.mark.polarion_id("OCS-847"),
),
pytest.param(
*[constants.CEPHFILESYSTEM, "sequential"],
marks=pytest.mark.polarion_id("OCS-845"),
*[constants.CEPHBLOCKPOOL, "random", "randwrite"],
marks=pytest.mark.polarion_id("OCS-846"),
),
pytest.param(
*[constants.CEPHBLOCKPOOL, "random", "randread"],
marks=pytest.mark.polarion_id("OCS-847"),
),
pytest.param(
*[constants.CEPHBLOCKPOOL, "random"],
*[constants.CEPHFILESYSTEM, "sequential", "read"],
marks=pytest.mark.polarion_id("OCS-846"),
),
pytest.param(
*[constants.CEPHFILESYSTEM, "random"],
*[constants.CEPHBLOCKPOOL, "sequential", "write"],
marks=pytest.mark.polarion_id("OCS-847"),
),
pytest.param(
*[constants.CEPHBLOCKPOOL, "sequential", "read"],
marks=pytest.mark.polarion_id("OCS-846"),
),
pytest.param(
*[constants.CEPHFILESYSTEM, "sequential", "write"],
marks=pytest.mark.polarion_id("OCS-847"),
),
],
)
def test_fio_workload_simple(self, interface, io_pattern):
def test_fio_workload_simple(self, interface, io_pattern, op):
"""
This is a basic fio perf test - non-compressed volumes

Expand Down Expand Up @@ -437,7 +450,7 @@ def test_fio_workload_simple(self, interface, io_pattern):

self.get_env_info()

self.setting_io_pattern(io_pattern)
self.setting_io_pattern(io_pattern, op)

self.run()

Expand Down
Loading