Skip to content

Commit 265c312

Browse files
igchorbyrnedj
authored andcommitted
Add multi-tier navy benchmark
and run it on CI
1 parent a8af77d commit 265c312

File tree

3 files changed

+58
-2
lines changed

3 files changed

+58
-2
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"cache_config" : {
3+
"cacheSizeMB" : 300,
4+
"poolRebalanceIntervalSec" : 1,
5+
"moveOnSlabRelease" : true,
6+
7+
"usePosixShm": true,
8+
"persistedCacheDir": "/tmp/mem-tier",
9+
"memoryTiers" : [
10+
{
11+
"ratio": 1
12+
},
13+
{
14+
"ratio": 1
15+
}
16+
],
17+
18+
"numPools" : 2,
19+
"poolSizes" : [0.5, 0.5],
20+
"allocFactor" : 2.0,
21+
"nvmCacheSizeMB" : 1024
22+
},
23+
"test_config" :
24+
{
25+
26+
"checkConsistency" : true,
27+
28+
"numOps" : 60000,
29+
"numThreads" : 20,
30+
"numKeys" : 200000,
31+
32+
33+
"keySizeRange" : [1, 8, 64],
34+
"keySizeRangeProbability" : [0.5, 0.5],
35+
36+
"valSizeRange" : [256, 1024, 4096, 8192],
37+
"valSizeRangeProbability" : [0.2, 0.7, 0.1],
38+
39+
"chainedItemLengthRange" : [1, 2, 4, 32],
40+
"chainedItemLengthRangeProbability" : [0.8, 0.18, 0.02],
41+
42+
"chainedItemValSizeRange" : [1, 128, 256, 1024, 4096, 20480],
43+
"chainedItemValSizeRangeProbability" : [0.1, 0.1, 0.2, 0.3, 0.3],
44+
45+
"getRatio" : 0.8,
46+
"setRatio" : 0.1,
47+
"delRatio" : 0.0,
48+
"addChainedRatio" : 0.05,
49+
"keyPoolDistribution": [0.5, 0.5],
50+
"opPoolDistribution" : [0.5, 0.5]
51+
}
52+
53+
}

cachelib/cachebench/test_configs/consistency/navy.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
"checkConsistency" : true,
1616

17-
"numOps" : 30000000,
18-
"numThreads" : 40,
17+
"numOps" : 600000,
18+
"numThreads" : 20,
1919
"numKeys" : 200000,
2020

2121

run_tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ if [ "$1" == "long" ]; then
1010
else
1111
find -type f \( -not -name "*bench*" -and -not -name "navy*" \) -executable | grep -vF "$BLACKLIST" | xargs -n1 bash -c
1212
fi
13+
14+
../bin/cachebench --json_test_config ../test_configs/consistency/navy.json
15+
../bin/cachebench --json_test_config ../test_configs/consistency/navy-multi-tier.json

0 commit comments

Comments
 (0)