Skip to content

Conversation

@NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Feb 9, 2020

No need to create LRUCache cache and set other cache options if user want low memory profile and thus no cache!

Also fixes #330

fn size_of(&self, ops: &mut parity_util_mem::MallocSizeOfOps) -> usize {
let mut total = self.column_names.size_of(ops)
// we have at least one column always, so we can call property on it
+ self.static_property_or_warn(0, "rocksdb.block-cache-usage");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this actually produces warning when block cache is disabled 🤷‍♀️

@niklasad1 niklasad1 changed the title Disable cache if exlipcit memory budget=0 passed Disable cache if explicit memory budget=0 passed Feb 10, 2020
Copy link
Contributor

@dvdplm dvdplm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@NikVolf NikVolf force-pushed the nv-rocksdb-zero-cache branch from 1ae3b23 to 5876070 Compare February 10, 2020 15:50
@NikVolf NikVolf merged commit 7428275 into master Feb 10, 2020
@NikVolf NikVolf deleted the nv-rocksdb-zero-cache branch February 10, 2020 16:41
ordian pushed a commit that referenced this pull request Feb 12, 2020
* master:
  Update/change licenses: MIT/Apache2.0 (#342)
  rlp-derive extracted (#343)
  Format for readme and changelog corrected (#341)
  Parity runtime moved to parity common for publication in crates.io (#271)
  Disable cache if explicit memory budget=0 passed (#339)
ordian pushed a commit that referenced this pull request Feb 13, 2020
* master:
  prepare rlp-derive release (#344)
  Update/change licenses: MIT/Apache2.0 (#342)
  rlp-derive extracted (#343)
  Format for readme and changelog corrected (#341)
  Parity runtime moved to parity common for publication in crates.io (#271)
  Disable cache if explicit memory budget=0 passed (#339)
  [parity-crypto] prepare 0.5.0 (#336)
  [parity crypto]: remove unused depend `rustc_hex` (#337)
  Update doc comment (#335)
ordian pushed a commit that referenced this pull request Mar 6, 2020
* master:
  kvdb-rocksdb: bump version (#348)
  kvdb-rocksdb: expose RocksDB stats (#347)
  Implement Error for FromDecStrErr (#346)
  Fix clippy lints for rlp-derive (#345)
  prepare rlp-derive release (#344)
  Update/change licenses: MIT/Apache2.0 (#342)
  rlp-derive extracted (#343)
  Format for readme and changelog corrected (#341)
  Parity runtime moved to parity common for publication in crates.io (#271)
  Disable cache if explicit memory budget=0 passed (#339)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No-cache configuration for kvdb-rocksdb

4 participants