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

Add slot metric to clean stat #3302

Merged
merged 2 commits into from
Oct 24, 2024
Merged

Conversation

HaoranYi
Copy link

Problem

It is useful to know what slot clean is working on.

Summary of Changes

Add slot metric to clean stat.

Fixes #

@HaoranYi HaoranYi changed the title add slot metric to clean stat Add slot metric to clean stat Oct 24, 2024
dmakarov
dmakarov previously approved these changes Oct 24, 2024
Copy link

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

The PR title and description talk about shrink and ancient shrink, but the datapoint is being added in clean, not shrink. Is that intentional?

Edit: Oh, I see the title and description has changed. All good now!

accounts-db/src/accounts_db.rs Outdated Show resolved Hide resolved
@brooksprumo
Copy link

For my own curiosity, why is it useful to know what slot clean is working on?

@jeffwashington
Copy link

For my own curiosity, why is it useful to know what slot clean is working on?

to know how often clean is running, to know whether a specific slot would have been included in that slot or not. It is sometimes useful to have that context. roots and frozen banks are way ahead of where we clean. Clean lags and runs in the background.

Copy link

@jeffwashington jeffwashington left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

:shipit:

@HaoranYi HaoranYi added the automerge automerge Merge this Pull Request automatically once CI passes label Oct 24, 2024
@mergify mergify bot merged commit 75f80be into anza-xyz:master Oct 24, 2024
41 checks passed
@HaoranYi HaoranYi deleted the add_slot_to_clean_stat branch October 24, 2024 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants