Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions polkadot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ runtime-metrics = ["polkadot-cli/runtime-metrics"]
pyroscope = ["polkadot-cli/pyroscope"]
jemalloc-allocator = [
"dep:tikv-jemallocator",
"polkadot-cli/jemalloc-allocator",
"polkadot-node-core-pvf-prepare-worker/jemalloc-allocator",
"polkadot-node-core-pvf/jemalloc-allocator",
"polkadot-overseer/jemalloc-allocator",
Expand Down
1 change: 1 addition & 0 deletions polkadot/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ runtime-metrics = [
"polkadot-node-metrics/runtime-metrics",
"polkadot-service/runtime-metrics",
]
jemalloc-allocator = ["sc-service?/jemalloc-allocator"]
14 changes: 14 additions & 0 deletions prdoc/pr_10590.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
title: 'sc-client-db: Make `jemalloc` optional'
doc:
- audience: Node Dev
description: |-
This changes `sc-client-db` to not always enable `jemalloc` by default for rocksdb. Instead it is now controlled by `jemalloc-allocator` feature. This is now also forwarded up to `polkadot` via `polkadot-cli` and `sc-service`. There we ultimately decide if `jemalloc` should be enabled or not.
crates:
- name: polkadot
bump: minor
- name: polkadot-cli
bump: minor
- name: sc-client-db
bump: minor
- name: sc-service
bump: minor
3 changes: 2 additions & 1 deletion substrate/client/db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ codec = { features = ["derive"], workspace = true, default-features = true }
hash-db = { workspace = true, default-features = true }
kvdb = { workspace = true }
kvdb-memorydb = { workspace = true }
kvdb-rocksdb = { optional = true, workspace = true, features = ["jemalloc"] }
kvdb-rocksdb = { optional = true, workspace = true }
linked-hash-map = { workspace = true }
log = { workspace = true, default-features = true }
parity-db = { workspace = true }
Expand Down Expand Up @@ -63,3 +63,4 @@ runtime-benchmarks = [
"sp-runtime/runtime-benchmarks",
]
rocksdb = ["kvdb-rocksdb", "sp-database/rocksdb"]
jemalloc-allocator = ["kvdb-rocksdb?/jemalloc"]
1 change: 1 addition & 0 deletions substrate/client/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@ runtime-benchmarks = [
"sc-client-db/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
jemalloc-allocator = ["sc-client-db/jemalloc-allocator"]
Loading