When print simulation results (except for [info]), unify the format with the logic as follows:
if ignore-obj-size=False, cache size is xxB/KiB/MiB ... (align with common.py)
else, cache size is a pure number (the number of objects).
# multi sim is ignore-obj-size-aware in the print format, however, single is not
$ ../_build/bin/cachesim ../data/cloudPhysicsIO.vscsi vscsi s3fifo 0.1 --ignore-obj-size 0
../data/cloudPhysicsIO.vscsi S3FIFO-0.1000-2 cache size 194MiB, 113872 req, miss ratio 0.7273, throughput 5.87 MQPS
$ ../_build/bin/cachesim ../data/cloudPhysicsIO.vscsi vscsi s3fifo 0.1 --ignore-obj-size 1
../data/cloudPhysicsIO.vscsi S3FIFO-0.1000-2 cache size 5KiB, 113872 req, miss ratio 0.7525, throughput 5.87 MQPS
besides, when the size is less than 1KiB, no unit will also be confusing so we can add a unit "B" (Byte) for the case --ignore-obj-size 0.
When print simulation results (except for [info]), unify the format with the logic as follows: if
ignore-obj-size=False
, cache size is xxB/KiB/MiB ... (align with common.py) else, cache size is a pure number (the number of objects).besides, when the size is less than 1KiB, no unit will also be confusing so we can add a unit "B" (Byte) for the case
--ignore-obj-size 0
.After modification,