Skip to content

Commit 3ebaaaf

Browse files
fmastejasagredo
authored andcommitted
wb | add LSM tree profiles similar to LMDB profiles
1 parent 9af4d91 commit 3ebaaaf

File tree

14 files changed

+3840
-1557
lines changed

14 files changed

+3840
-1557
lines changed

bench/cardano-profile/data/all-profiles-coay.json

Lines changed: 3808 additions & 1538 deletions
Large diffs are not rendered by default.

bench/cardano-profile/data/test/chainsync-early-alonzo-coay/profile.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@
287287
"tracing_backend": "trace-dispatcher",
288288
"tracer": false,
289289
"utxo_lmdb": false,
290+
"utxo_lsmt": false,
290291
"verbatim": {
291292
"EnableP2P": true
292293
}

bench/cardano-profile/data/test/chainsync-early-byron-coay/profile.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@
287287
"tracing_backend": "trace-dispatcher",
288288
"tracer": false,
289289
"utxo_lmdb": false,
290+
"utxo_lsmt": false,
290291
"verbatim": {
291292
"EnableP2P": true
292293
}

bench/cardano-profile/data/test/ci-test-bage.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@
373373
"tracer": true,
374374
"tracing_backend": "trace-dispatcher",
375375
"utxo_lmdb": false,
376+
"utxo_lsmt": false,
376377
"verbatim": {
377378
"EnableP2P": true
378379
}

bench/cardano-profile/data/test/ci-test-coay/profile.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@
286286
"tracing_backend": "trace-dispatcher",
287287
"tracer": true,
288288
"utxo_lmdb": false,
289+
"utxo_lsmt": false,
289290
"verbatim": {
290291
"EnableP2P": true
291292
}

bench/cardano-profile/data/test/ci-test-dense10-coay/profile.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@
286286
"tracing_backend": "trace-dispatcher",
287287
"tracer": true,
288288
"utxo_lmdb": false,
289+
"utxo_lsmt": false,
289290
"verbatim": {
290291
"EnableP2P": true
291292
}

bench/cardano-profile/data/test/default-coay/profile.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@
286286
"tracing_backend": "trace-dispatcher",
287287
"tracer": true,
288288
"utxo_lmdb": false,
289+
"utxo_lsmt": false,
289290
"verbatim": {
290291
"EnableP2P": true
291292
}

bench/cardano-profile/data/test/fast-nomadperf-coay/profile.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@
481481
"tracing_backend": "trace-dispatcher",
482482
"tracer": true,
483483
"utxo_lmdb": false,
484+
"utxo_lsmt": false,
484485
"verbatim": {
485486
"EnableP2P": true
486487
}

bench/cardano-profile/src/Cardano/Benchmarking/Profile/Builtin/Cloud.hs

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,15 @@ profilesNoEraCloud =
142142
blockMem15x = P.budgetBlockMemoryOneAndAHalf . P.overlay Pl.calibrateLoopBlockMemx15
143143
blockMem2x = P.budgetBlockMemoryDouble . P.overlay Pl.calibrateLoopBlockMemx2
144144
-- LMDB helper. Node config add the "hostvolume"s as a cluster constraint.
145-
lmdb = P.lmdb
146-
-- The name of the defined volume in the Nomad Client config and
147-
-- where to mount it inside the isolated chroot.
148-
-- If the volume is not present the deployment will fail!
149-
. P.appendNomadHostVolume (Types.ByNodeType {
150-
Types.producer = [Types.HostVolume "/ephemeral" False "ephemeral"]
151-
, Types.explorer = Nothing
152-
})
153-
. P.ssdDirectory "/ephemeral"
145+
ephemeral =
146+
-- The name of the defined volume in the Nomad Client config and
147+
-- where to mount it inside the isolated chroot.
148+
-- If the volume is not present the deployment will fail!
149+
P.appendNomadHostVolume (Types.ByNodeType {
150+
Types.producer = [Types.HostVolume "/ephemeral" False "ephemeral"]
151+
, Types.explorer = Nothing
152+
})
153+
. P.ssdDirectory "/ephemeral"
154154
-- Helper adding workload that takes periodic snapshots of cgroup's `memory.stat`.
155155
cgmem = -- Require the cgroup fs mounted by default.
156156
P.appendNomadHostVolume (Types.ByNodeType {
@@ -168,9 +168,10 @@ profilesNoEraCloud =
168168
-- Value (post-Voltaire profiles)
169169
, valueVolt & P.name "value-volt-nomadperf" . P.dreps 10000 . P.newTracing
170170
, valueVolt & P.name "value-volt-rtsqg1-nomadperf" . P.dreps 10000 . P.newTracing . P.rtsGcParallel . P.rtsGcLoadBalance
171-
, valueVolt & P.name "value-volt-lmdb-nomadperf" . P.dreps 10000 . P.newTracing . lmdb
171+
, valueVolt & P.name "value-volt-lmdb-nomadperf" . P.dreps 10000 . P.newTracing . ephemeral . P.lmdb
172+
, valueVolt & P.name "value-volt-lsmt-nomadperf" . P.dreps 10000 . P.newTracing . ephemeral . P.lsmt
172173
, valueVolt & P.name "value-volt-cgmem-nomadperf" . P.dreps 10000 . P.newTracing . cgmem
173-
, valueVolt & P.name "value-volt-lmdb-cgmem-nomadperf" . P.dreps 10000 . P.newTracing . lmdb . cgmem
174+
, valueVolt & P.name "value-volt-lmdb-cgmem-nomadperf" . P.dreps 10000 . P.newTracing . ephemeral . P.lmdb . cgmem
174175
-- Plutus (pre-Voltaire profiles)
175176
, loop & P.name "plutus-nomadperf" . P.dreps 0 . P.newTracing
176177
, loop & P.name "plutus-drep1k-nomadperf" . P.dreps 1000 . P.newTracing
@@ -185,7 +186,8 @@ profilesNoEraCloud =
185186
, loopVolt & P.name "plutus-volt-memx15-nomadperf" . P.dreps 10000 . P.newTracing . blockMem15x
186187
, loopVolt & P.name "plutus-volt-memx2-nomadperf" . P.dreps 10000 . P.newTracing . blockMem2x
187188
, loopVolt & P.name "plutus-volt-rtsqg1-nomadperf" . P.dreps 10000 . P.newTracing . P.rtsGcParallel . P.rtsGcLoadBalance
188-
, loopVolt & P.name "plutus-volt-lmdb-nomadperf" . P.dreps 10000 . P.newTracing . lmdb
189+
, loopVolt & P.name "plutus-volt-lmdb-nomadperf" . P.dreps 10000 . P.newTracing . ephemeral . P.lmdb
190+
, loopVolt & P.name "plutus-volt-lsmt-nomadperf" . P.dreps 10000 . P.newTracing . ephemeral . P.lsmt
189191
-- TODO: scaling the BLST workload only works well for 4 txns/block instead of 8. However, comparing it to other steps-constrained workloads, requires 8txns/block (like all of those).
190192
, blst & P.name "plutusv3-blst-nomadperf" . P.dreps 10000 . P.newTracing
191193
, blst & P.name "plutusv3-blst-stepx15-nomadperf" . P.dreps 10000 . P.newTracing . P.budgetBlockStepsOneAndAHalf

bench/cardano-profile/src/Cardano/Benchmarking/Profile/Builtin/Miniature.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ profilesNoEraMiniature =
8383
-- 2 nodes, local
8484
ciBench02Value & P.name "ci-bench" . V.valueLocal . P.dreps 0 . P.traceForwardingOn . P.newTracing
8585
, ciBench02Value & P.name "ci-bench-lmdb" . V.valueLocal . P.dreps 0 . P.traceForwardingOn . P.newTracing . P.lmdb . P.ssdDirectory "/tmp"
86+
, ciBench02Value & P.name "ci-bench-lsmt" . V.valueLocal . P.dreps 0 . P.traceForwardingOn . P.newTracing . P.lsmt . P.ssdDirectory "/tmp"
8687
, ciBench02Value & P.name "ci-bench-rtview" . V.valueLocal . P.dreps 0 . P.traceForwardingOn . P.newTracing . P.tracerRtview
8788
, ciBench02Value & P.name "ci-bench-notracer" . V.valueLocal . P.dreps 0 . P.traceForwardingOff . P.newTracing
8889
, ciBench02Value & P.name "ci-bench-drep" . V.valueLocal . P.dreps 10 . P.traceForwardingOn . P.newTracing

0 commit comments

Comments
 (0)