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

i#6938 sched migrate: Add lock contention stats #6968

Merged
merged 4 commits into from
Sep 9, 2024

Commits on Sep 6, 2024

  1. i#6938 sched migrate: Add lock contention stats

    Adds lock contention counters for mutex_dbg_owned::lock() in
    non-NDEBUG builds.  While it's not there for release builds, the
    results in non-release should still be indicative of general lock
    behavior.
    
    Prints the stats for sched_lock_ with the other scheduler stats.
    
    Sample results on schedule_stats on a threadsig trace show a lot of
    contention even with only 3 cores:
    
    ```
    $ clients/bin64/drmemtrace_launcher -indir ../build_x64_dbg_tests/drmemtrace.threadsig.5* -core_sharded -cores 3 -tool schedule_stats -verbose 1
    [scheduler] Schedule lock acquired     :   2196602
    [scheduler] Schedule lock contended    :    257580
    ```
    
    Issue: #6938
    derekbruening committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    ba317fd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e95c7e View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2024

  1. Configuration menu
    Copy the full SHA
    a38e050 View commit details
    Browse the repository at this point in the history
  2. Remove diagnostic

    derekbruening committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    febd7ba View commit details
    Browse the repository at this point in the history