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 waiters #9

Open
ThinkOpenly opened this issue May 6, 2019 · 0 comments
Open

track waiters #9

ThinkOpenly opened this issue May 6, 2019 · 0 comments

Comments

@ThinkOpenly
Copy link
Contributor

I'm not sure how easy this is, but it would be nice to report statistics on the number of tasks waiting for a lock, perhaps the maximum and average number of waiters, and elapsed and percent time that the number of waiters was greater than zero.
One significant challenge is accounting for "pending" states: determining how many waiters are active at the start of the trace. Impossible, actually, but some accounting can be done. If the first event for a task is mutex_acquire, we know it was waiting since the start of the trace.

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

No branches or pull requests

1 participant