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

Mini-Epic: Stop tokio tasks running for a long time and blocking other tasks #4747

Closed
16 of 18 tasks
teor2345 opened this issue Jul 4, 2022 · 1 comment
Closed
16 of 18 tasks
Labels
C-bug Category: This is a bug C-security Category: Security issues C-tracking-issue Category: This is a tracking issue for other tasks Epic Zenhub Label. Denotes a theme of work under which related issues will be grouped I-consensus Zebra breaks a Zcash consensus rule I-hang A Zebra component stops responding to requests I-integration-fail Continuous integration fails, including build and test failures

Comments

@teor2345
Copy link
Contributor

teor2345 commented Jul 4, 2022

Motivation

At the moment, Zebra can't sync all the way to the tip, because some tokio tasks run for a long time, and block other tasks.
(It's also possible there are some deadlocks, livelocks, or missed task exits.)

We should discover the specific bugs using tokio-console, and then open a ticket for each one.

Tasks

Issues that need investigation

CPU usage analysis

Deserialization (in zebra-network or zebra-state):

Verification (in zebra-consensus):

Note commitment tree updates (in zebra-state, either finalized or non-finalized):

Fixed Issues

Fixed by #4750:

Fixed by #4752 and #4726:

@teor2345 teor2345 added C-bug Category: This is a bug C-tracking-issue Category: This is a tracking issue for other tasks S-needs-triage Status: A bug report needs triage P-High 🔥 C-security Category: Security issues I-consensus Zebra breaks a Zcash consensus rule I-hang A Zebra component stops responding to requests I-integration-fail Continuous integration fails, including build and test failures labels Jul 4, 2022
@teor2345 teor2345 added the Epic Zenhub Label. Denotes a theme of work under which related issues will be grouped label Jul 20, 2022
@jackgavigan jackgavigan changed the title Stop tokio tasks running for a long time and blocking other tasks Mini-Epic: Stop tokio tasks running for a long time and blocking other tasks Jul 28, 2022
@teor2345
Copy link
Contributor Author

We've made enough performance improvements for now.

@mpguerra mpguerra removed the S-needs-triage Status: A bug report needs triage label Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug C-security Category: Security issues C-tracking-issue Category: This is a tracking issue for other tasks Epic Zenhub Label. Denotes a theme of work under which related issues will be grouped I-consensus Zebra breaks a Zcash consensus rule I-hang A Zebra component stops responding to requests I-integration-fail Continuous integration fails, including build and test failures
Projects
None yet
Development

No branches or pull requests

2 participants