HomeFreeBSD

lockprof: add contested-only profiling

Description

lockprof: add contested-only profiling

This allows tracking all wait times with much smaller runtime impact.

For example when doing -j 104 buildkernel on tmpfs:

no profiling: 2921.70s user 282.72s system 6598% cpu 48.562 total
all acquires: 2926.87s user 350.53s system 6656% cpu 49.237 total
contested only: 2919.64s user 290.31s system 6583% cpu 48.756 total

Details

Provenance
mjgAuthored on May 18 2021, 7:07 PM
Parents
rGfca5cfd584d8: lockprof: retire lock_prof_skipcount
Branches
Unknown
Tags
Unknown