]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lockprof: add contested-only profiling
authorMateusz Guzik <mjg@FreeBSD.org>
Tue, 18 May 2021 19:07:19 +0000 (21:07 +0200)
committerMateusz Guzik <mjg@FreeBSD.org>
Sat, 22 May 2021 19:28:37 +0000 (19:28 +0000)
commita0842e69aa5f86d61c072544b540ef21b2015211
tree89c96581adab6dd2079a6f5de476061dc8078d24
parentfca5cfd584d81ca291dbd898a8ff60c52d8c3c42
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
sys/kern/subr_lock.c