Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

informant: display I/O stats #11523

Merged
merged 8 commits into from
Mar 17, 2020
Merged

informant: display I/O stats #11523

merged 8 commits into from
Mar 17, 2020

Conversation

ordian
Copy link
Collaborator

@ordian ordian commented Feb 26, 2020

Not sure what is the best way to display the logs hence the draft:

  1. Write to a file.
  2. Debug log with a target (currently implemented)
  3. Something else.

@ordian ordian added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Feb 26, 2020
@@ -234,7 +234,7 @@ impl<K: Kind, C> VerificationQueue<K, C> {
let number_of_threads = if scale_verifiers {
max_verifiers
} else {
cmp::min(default_amount, max_verifiers)
default_amount
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is an unrelated change, sorry

@dvdplm
Copy link
Collaborator

dvdplm commented Mar 10, 2020

2\. Debug log with a target (currently implemented)

Let's go with this for the time being and see how useful it is. It would be nice to ponder a more general logging overhaul to add more flexibility but this is not the PR for that.

@dvdplm dvdplm requested a review from niklasad1 March 10, 2020 08:27
* master:
  Code cleanup in the sync module (#11552)
  initial cleanup (#11542)
  Warn if genesis constructor revert (#11550)
  ethcore: cleanup after #11531 (#11546)
  license update (#11543)
  Less cloning when importing blocks (#11531)
  Github Actions (#11528)
  Fix Alpine Dockerfile (#11538)
  Remove AuxiliaryData/AuxiliaryRequest (#11533)
  [journaldb]: cleanup (#11534)
  Remove references to parity-ethereum (#11525)
  Drop IPFS support (#11532)
  chain-supplier: fix warning reporting for GetNodeData request (#11530)
  Faster kill_garbage (#11514)
  [EngineSigner]: don't sign message with only zeroes (#11524)
Copy link
Collaborator

@niklasad1 niklasad1 left a comment

Choose a reason for hiding this comment

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

Do you know if/when more fine-grained (caching) would be useful and why not provide all statistics that kvdb provides?

The code looks good.

Cargo.lock Show resolved Hide resolved
@ordian
Copy link
Collaborator Author

ordian commented Mar 10, 2020

Do you know if/when more fine-grained (caching) would be useful

I think the general consensus is that maintaining multiple levels of caches is a bad idea and we should delegate caching and reuse it from the low-level db, like rocksdb and fs cache.

why not provide all statistics that kvdb provides?

Not all stats are implemented for kvdb-rocksdb
https://github.com/paritytech/parity-common/blob/master/kvdb-rocksdb/src/stats.rs

@ordian ordian marked this pull request as ready for review March 10, 2020 12:55
ethcore/types/src/client_types.rs Outdated Show resolved Hide resolved
@dvdplm dvdplm merged commit 70c4ed7 into master Mar 17, 2020
@dvdplm dvdplm deleted the ao-show-io-stats branch March 17, 2020 15:44
ordian added a commit that referenced this pull request Mar 24, 2020
* master:
  informant: display I/O stats (#11523)
  [devp2p discovery]: remove `deprecated_echo_hash` (#11564)
  [secretstore] create db_version file when database doesn't exist (#11570)
  Remove Parity's Security Policy (#11565)
  ethcore/res: enable ecip-1088 phoenix upgrade for kotti and mordor testnets (#11529)
  Misc docs and renames …and one less clone (#11556)
  [secretstore]: don't sign message with only zeroes (#11561)
  [devp2p discovery]: cleanup (#11547)
  Code cleanup in the sync module (#11552)
  initial cleanup (#11542)
  Warn if genesis constructor revert (#11550)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants