Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion bin/node/testing/src/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl BenchDb {
pruning: PruningMode::ArchiveAll,
source: sc_client_db::DatabaseSettingsSrc::Path {
path: dir.into(),
cache_size: 128,
cache_size: 512,
},
};

Expand Down
9 changes: 9 additions & 0 deletions client/db/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,15 @@ pub fn open_database<Block: BlockT>(

db_config.memory_budget = memory_budget;

log::trace!(
target: "db",
"Open database at {}, state column budget: {} MiB, others({}) column cache: {} MiB",
path,
state_col_budget,
NUM_COLUMNS,
other_col_budget,
);

Arc::new(Database::open(&db_config, &path).map_err(db_err)?)
},
#[cfg(not(any(feature = "kvdb-rocksdb", test)))]
Expand Down