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

Occasional slowdown in runtime #10907

Open
bowenwang1996 opened this issue Apr 1, 2024 · 2 comments
Open

Occasional slowdown in runtime #10907

bowenwang1996 opened this issue Apr 1, 2024 · 2 comments
Labels
A-contract-runtime Area: contract compilation and execution, virtual machines, etc

Comments

@bowenwang1996
Copy link
Collaborator

It appears that runtime very occasionally slows down significantly after finish processing all receipts:

It seems that either runtime::check_balance or TrieUpdate::finalize takes a very long time in those cases. We should investigate and understand what the root causes are so that validators would not miss blocks or chunks as a result

@bowenwang1996 bowenwang1996 added the A-contract-runtime Area: contract compilation and execution, virtual machines, etc label Apr 1, 2024
@bowenwang1996
Copy link
Collaborator Author

bowenwang1996 commented Apr 1, 2024

Looks like the culprit is TrieUpdate::finalize. When there are a lot of receipts, it can take a long time. Discussion thread on zulip

Screen Shot 2024-04-01 at 4 47 01 PM

@akhi3030
Copy link
Collaborator

akhi3030 commented Apr 2, 2024

CC: @Ekleog-NEAR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-contract-runtime Area: contract compilation and execution, virtual machines, etc
Projects
None yet
Development

No branches or pull requests

2 participants