-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added cogwheel tests for navy-async configurations
Summary: This change adds three more cogwheel tests related to the Navy's async io configuration and/or multiple clean region threads configuration * cogwheel_cachelib_async: Navy async with io_uring * cogwheel_cachelib_async_sync_comp: Navy async with sync completion mode (i.e., qdepth 1) * cogwheel_cachelib_consistency_navy_with_reinsertion_multiple_clean_threads: Navy with reinsertions, multiple region_manager threads, and consistency check Reviewed By: therealgymmy Differential Revision: D51861839 fbshipit-source-id: 9fc764b23e05427df7515cc8da7b220db761c5e8
- Loading branch information
1 parent
78c6937
commit 35770f4
Showing
4 changed files
with
114 additions
and
3 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...lib/cachebench/test_configs/consistency/navy-with-reinsertion-multiple-clean-threads.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"cache_config" : { | ||
"cacheSizeMB" : 100, | ||
"poolRebalanceIntervalSec" : 1, | ||
"moveOnSlabRelease" : true, | ||
|
||
"allocFactor" : 2.0, | ||
"navyProbabilityReinsertionThreshold": 50, | ||
"navyCleanRegions" : 2, | ||
"navyCleanRegionThreads" : 2, | ||
"nvmCacheSizeMB" : 512 | ||
}, | ||
"test_config" : | ||
{ | ||
|
||
"checkConsistency" : true, | ||
|
||
"numOps" : 1000000, | ||
"numThreads" : 40, | ||
"numKeys" : 1000000, | ||
|
||
|
||
"keySizeRange" : [1, 8], | ||
"keySizeRangeProbability" : [1.0], | ||
|
||
"valSizeRange" : [1024, 10240], | ||
"valSizeRangeProbability" : [1.0], | ||
|
||
"getRatio" : 0.5, | ||
"setRatio" : 0.5, | ||
"delRatio" : 0.0 | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
cachelib/cachebench/test_configs/integration_tests/navy_async.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"cache_config" : { | ||
"cacheSizeMB" : 100, | ||
"poolRebalanceIntervalSec" : 1, | ||
"moveOnSlabRelease" : true, | ||
|
||
"allocFactor" : 2.0, | ||
"navyProbabilityReinsertionThreshold": 50, | ||
|
||
"nvmCachePaths" : ["/tmp/cachebench_test_nvm.img"], | ||
"nvmCacheSizeMB" : 512, | ||
|
||
"navyBigHashSizePct": 10, | ||
"navySmallItemMaxSize": 1024, | ||
"navyMaxConcurrentInserts" : 10, | ||
|
||
"navyReaderThreads" : 4, | ||
"navyWriterThreads" : 2, | ||
"navyMaxNumReads" : 32, | ||
"navyMaxNumWrites" : 32 | ||
}, | ||
"test_config" : | ||
{ | ||
"numOps" : 10000000, | ||
"numThreads" : 20, | ||
"numKeys" : 1000000, | ||
|
||
"keySizeRange" : [1, 8, 64], | ||
"keySizeRangeProbability" : [0.3, 0.7], | ||
|
||
"valSizeRange" : [256, 1024, 4096], | ||
"valSizeRangeProbability" : [0.2, 0.8], | ||
|
||
"getRatio" : 0.5, | ||
"setRatio" : 0.5, | ||
"delRatio" : 0.0 | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
cachelib/cachebench/test_configs/integration_tests/navy_async_sync_comp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"cache_config" : { | ||
"cacheSizeMB" : 100, | ||
"poolRebalanceIntervalSec" : 1, | ||
"moveOnSlabRelease" : true, | ||
|
||
"allocFactor" : 2.0, | ||
"navyProbabilityReinsertionThreshold": 50, | ||
|
||
"nvmCachePaths" : ["/tmp/cachebench_test_nvm.img"], | ||
"nvmCacheSizeMB" : 512, | ||
|
||
"navyBigHashSizePct": 10, | ||
"navySmallItemMaxSize": 1024, | ||
"navyMaxConcurrentInserts" : 10, | ||
|
||
"navyReaderThreads" : 32, | ||
"navyWriterThreads" : 32, | ||
"navyMaxNumReads" : 32, | ||
"navyMaxNumWrites" : 32 | ||
}, | ||
"test_config" : | ||
{ | ||
"numOps" : 10000000, | ||
"numThreads" : 20, | ||
"numKeys" : 1000000, | ||
|
||
"keySizeRange" : [1, 8, 64], | ||
"keySizeRangeProbability" : [0.3, 0.7], | ||
|
||
"valSizeRange" : [256, 1024, 4096], | ||
"valSizeRangeProbability" : [0.2, 0.8], | ||
|
||
"getRatio" : 0.5, | ||
"setRatio" : 0.5, | ||
"delRatio" : 0.0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters