Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track RecycleStore basic stats with needed refactor #15291

Merged
merged 2 commits into from
Feb 15, 2021

Conversation

ryoqun
Copy link
Member

@ryoqun ryoqun commented Feb 12, 2021

Problem

Needs more info to move forward #15188

Summary of Changes

Introduce pretty straightforward metrics to RecycleStores.

Fixes #

@ryoqun ryoqun added the v1.5 label Feb 12, 2021
@ryoqun ryoqun requested a review from sakridge February 12, 2021 15:25
drop(recycle_stores);
} else {
self.stats
.dropped_stores
.fetch_add(recycle_stores.len() as u64, Ordering::Relaxed);
Copy link
Member Author

Choose a reason for hiding this comment

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

well, I think this is wrong guessing from the metrics field name.

drop(recycle_stores);
} else {
self.stats
.dropped_stores
.fetch_add(recycle_stores.len() as u64, Ordering::Relaxed);
Copy link
Member Author

Choose a reason for hiding this comment

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

@ryoqun
Copy link
Member Author

ryoqun commented Feb 12, 2021

[2021-02-12T15:22:15.768568538Z INFO  solana_metrics::metrics] datapoint: accounts_db_store_timings2 recycle_store_count=0i current_recycle_store_count=1000i current_recycle_store_bytes=55939072i create_store_count=0i store_get_slot_store=0i store_find_existing=0i dropped_stores=0i
...
[2021-02-12T15:33:05.681381865Z INFO  solana_metrics::metrics] datapoint: accounts_db_store_timings2 recycle_store_count=0i current_recycle_store_count=1000i current_recycle_store_bytes=209219584i create_store_count=0i store_get_slot_store=0i store_find_existing=0i dropped_stores=0i
...
[2021-02-13T01:39:03.913453112Z INFO  solana_metrics::metrics] datapoint: accounts_db_store_timings2 recycle_store_count=0i current_recycle_store_count=1001i current_recycle_store_bytes=6639071232i create_store_count=0i store_get_slot_store=0i store_find_existing=0i dropped_stores=0i
...
[2021-02-13T15:55:08.454682783Z INFO  solana_metrics::metrics] datapoint: accounts_db_store_timings2 recycle_store_count=0i current_recycle_store_count=1000i current_recycle_store_bytes=14792519680i create_store_count=0i store_get_slot_store=0i store_find_existing=0i dropped_stores=0i
...
[2021-02-14T07:45:48.448305923Z INFO  solana_metrics::metrics] datapoint: accounts_db_store_timings2 recycle_store_count=0i current_recycle_store_count=1000i current_recycle_store_bytes=21712994304i create_store_count=0i store_get_slot_store=0i store_find_existing=0i dropped_stores=0i

running mainnet-beta a bit, it looks like I need some ttl-based eviction here too like #15139

@codecov
Copy link

codecov bot commented Feb 13, 2021

Codecov Report

Merging #15291 (465b817) into master (629dcd0) will increase coverage by 0.0%.
The diff coverage is 80.0%.

@@           Coverage Diff           @@
##           master   #15291   +/-   ##
=======================================
  Coverage    79.5%    79.5%           
=======================================
  Files         403      403           
  Lines      102707   102738   +31     
=======================================
+ Hits        81739    81777   +38     
+ Misses      20968    20961    -7     

@ryoqun
Copy link
Member Author

ryoqun commented Feb 14, 2021

@sakridge Could you review this at your convenient time? I'll soon create another actual eviction pr on top of this. :)

Copy link
Member

@sakridge sakridge left a comment

Choose a reason for hiding this comment

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

lgtm

@ryoqun ryoqun merged commit 30f1831 into solana-labs:master Feb 15, 2021
mergify bot pushed a commit that referenced this pull request Feb 15, 2021
* Track RecycleStore basic stats with needed refactor

* Fix another wrong metrics def

(cherry picked from commit 30f1831)
mergify bot added a commit that referenced this pull request Feb 15, 2021
* Track RecycleStore basic stats with needed refactor

* Fix another wrong metrics def

(cherry picked from commit 30f1831)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants