diff --git a/ceph_bench/definitions.py b/ceph_bench/definitions.py index e1a7387..ed65581 100644 --- a/ceph_bench/definitions.py +++ b/ceph_bench/definitions.py @@ -1,8 +1,8 @@ SAMPLES = { - "XXXS": {"size": 0.1, "number": 10000}, + "XXXS": {"size": 0.1, "number": 20000}, "XXS": {"size": 10, "number": 10000}, "XS": {"size": 100, "number": 10000}, - "S": {"size": 1000, "number": 1000}, + "S": {"size": 1000, "number": 2000}, "M": {"size": 10000, "number": 500}, "ML": {"size": 100000, "number": 100}, "L": {"size": 1000000, "number": 20}, diff --git a/ceph_bench/generate_samples.py b/ceph_bench/generate_samples.py index 57e028f..7b67dd3 100644 --- a/ceph_bench/generate_samples.py +++ b/ceph_bench/generate_samples.py @@ -3,11 +3,10 @@ import os import subprocess from uuid import uuid4 +from definitions import INST_STO_ROOT, SAMPLES, TEST_FILES from loguru import logger as log from tqdm import tqdm -from definitions import INST_STO_ROOT, SAMPLES, TEST_FILES - if __name__ == "__main__": for path, data in SAMPLES.items(): log.info(f"processing {path}") @@ -18,7 +17,7 @@ if __name__ == "__main__": "dd", "if=/dev/urandom", f"of={INST_STO_ROOT+path}/{x}", - f"bs={int(data['size']*1000)}", + f"bs={int(data['size']*1024)}", "count=1", ], capture_output=True, @@ -34,7 +33,7 @@ if __name__ == "__main__": "dd", "if=/dev/urandom", f"of={INST_STO_ROOT}Rand/{uuid4()}", - f"bs={int(data['size']*1000)}", + f"bs={int(data['size']*1024)}", "count=1", ], capture_output=True, @@ -50,7 +49,7 @@ if __name__ == "__main__": "dd", "if=/dev/urandom", f"of={INST_STO_ROOT}test/{uuid4()}", - f"bs={int(data['size']*1000)}", + f"bs={int(data['size']*1024)}", "count=1", ], capture_output=True,