Negative tests for promotion policy

Signed-off-by: Kamil Lepek <kamil.lepek94@gmail.com>
This commit is contained in:
Kamil Lepek
2019-09-18 10:00:07 +02:00
parent 7131178e71
commit 71d8c8d698
5 changed files with 134 additions and 10 deletions

View File

@@ -70,6 +70,11 @@ class CacheDeviceConfig(Structure):
]
class ConfValidValues:
promotion_nhit_insertion_threshold_range = range(2, 1000)
promotion_nhit_trigger_threshold_range = range(0, 100)
class CacheMode(IntEnum):
WT = 0
WB = 1
@@ -131,7 +136,6 @@ class MetadataLayout(IntEnum):
class Cache:
DEFAULT_ID = 0
DEFAULT_BACKFILL_QUEUE_SIZE = 65536
DEFAULT_BACKFILL_UNBLOCK = 60000
DEFAULT_PT_UNALIGNED_IO = False