cvs commit: src/sys/sys _mutex.h src/sys/kern kern_mutex.c
Robert Watson
rwatson at FreeBSD.org
Sat Jan 24 18:07:44 PST 2004
On Sat, 24 Jan 2004, Robert Watson wrote:
> Add some basic support for measuring sleep mutex contention to the
> mutex profiling code. As with existing mutex profiling, measurement
> is done with respect to mtx_lock() instances in the code, as opposed
> to specific mutexes. In particular, measure two things:
FYI --
Mutex profiling is pretty neat, and very under-documented. At least, as
far as I know, only DES's original commit message and comments in NOTES
document it. If someone on the doc side feels moved to explore and
document the implementation, as well as provide/gather best practicies for
using it in the performance optimization process, that would be great.
I.e., mutex_profiling(9) or the like. Now that we're beginning to have
significant kernel subsystems running entirely free of Giant, we should be
starting to shift gears into more performance analysis and optimization,
and documentation is going to be vital for that.
Thanks,
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert at fledge.watson.org Senior Research Scientist, McAfee Research
More information about the cvs-src
mailing list