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

Reset program cache stats after submit #31929

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented Jun 1, 2023

Problem

The cache stats are monotonically increasing, since the same cache object is being shared for all banks. This makes it hard to compare the stats with previous implementation. Also, the stats will eventually rollover.

Summary of Changes

Reset the stats when a new bank in created, after submitting to the database.

Fixes #

@pgarg66 pgarg66 marked this pull request as ready for review June 1, 2023 22:56
@pgarg66 pgarg66 requested a review from Lichtso June 1, 2023 22:56
@pgarg66
Copy link
Contributor Author

pgarg66 commented Jun 1, 2023

Example:

The following graph is for LoadedPrograms stats
image

vs, the graph for executor cache stats
image

@Lichtso Lichtso added the v1.16 PRs that should be backported to v1.16 label Jun 2, 2023
@pgarg66 pgarg66 merged commit 29d7a57 into solana-labs:master Jun 2, 2023
@pgarg66 pgarg66 deleted the reset-cache-stats branch June 2, 2023 08:16
mergify bot pushed a commit that referenced this pull request Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.16 PRs that should be backported to v1.16
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants