Add lock contention log analyzer by nhorman · Pull Request #27912 · openssl/openssl · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Add lock contention log analyzer #27912

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

Closed
wants to merge 2 commits into from

Conversation

nhorman
Copy link
Contributor

@nhorman nhorman commented Jun 26, 2025

With the introduction of REPORT_RWLOCK_CONTENTION, it would be nice if we could do some quick analysis on it.

This script parses the log, and generates a histogram of lock contention events, uniquely identified by the stack trace that caused it, and prints out the top 10 most egregious contention offenders, along with the total amount of usecs spent waiting on that contention point.

@nhorman nhorman self-assigned this Jun 26, 2025
@nhorman nhorman moved this to Waiting Review in Development Board Jun 26, 2025
@nhorman nhorman requested a review from andrewkdinh June 27, 2025 13:19
@t8m t8m added branch: master Merge to master branch approval: review pending This pull request needs review by a committer triaged: feature The issue/pr requests/adds a feature tests: exempted The PR is exempt from requirements for testing labels Jun 27, 2025
t8m
t8m previously approved these changes Jun 27, 2025
@nhorman nhorman force-pushed the add-contention-analysis branch from 1994f50 to f6218ed Compare June 27, 2025 16:20
@nhorman nhorman requested a review from t8m June 27, 2025 16:21
t8m
t8m previously approved these changes Jun 27, 2025
With the introduction of REPORT_RWLOCK_CONTENTION, it would be nice
if we could do some quick analysis on it.

This script parses the log, and generates a histogram of lock contention
events, uniquely identified by the stack trace that caused it, and
prints out all unique latency event, sorted from largest (as measured
by cumulative latency in that path).
@nhorman nhorman force-pushed the add-contention-analysis branch from f6218ed to 6b52a00 Compare July 1, 2025 11:00
@nhorman nhorman requested a review from mattcaswell July 1, 2025 19:46
mattcaswell
mattcaswell previously approved these changes Jul 2, 2025
Copy link
Member

@mattcaswell mattcaswell left a comment

Choose a reason for hiding this comment

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

LGTM. Minor typo noted below. Approval stands after fixing

Co-authored-by: Matt Caswell <matt@openssl.org>
@mattcaswell mattcaswell added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Jul 3, 2025
@vavroch2010 vavroch2010 moved this from Waiting Review to Waiting Merge in Development Board Jul 3, 2025
@openssl-machine openssl-machine added approval: ready to merge The 24 hour grace period has passed, ready to merge and removed approval: done This pull request has the required number of approvals labels Jul 4, 2025
@openssl-machine
Copy link
Collaborator

This pull request is ready to merge

@nhorman
Copy link
Contributor Author

nhorman commented Jul 4, 2025

merged to master, thank you!

@nhorman nhorman closed this Jul 4, 2025
@github-project-automation github-project-automation bot moved this from Waiting Merge to Done in Development Board Jul 4, 2025
openssl-machine pushed a commit that referenced this pull request Jul 4, 2025
With the introduction of REPORT_RWLOCK_CONTENTION, it would be nice
if we could do some quick analysis on it.

This script parses the log, and generates a histogram of lock contention
events, uniquely identified by the stack trace that caused it, and
prints out all unique latency event, sorted from largest (as measured
by cumulative latency in that path).

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #27912)
openssl-machine pushed a commit that referenced this pull request Jul 4, 2025
Co-authored-by: Matt Caswell <matt@openssl.org>

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #27912)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval: ready to merge The 24 hour grace period has passed, ready to merge branch: master Merge to master branch tests: exempted The PR is exempt from requirements for testing triaged: feature The issue/pr requests/adds a feature
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.