Poettering: Measuring Lock Contention
[Posted September 15, 2009 by jake]
On his weblog, Lennart Poettering
describes a new tool, called "
mutrace", for tracking down performance problems caused by mutex contention in applications. "
For each mutex a line is printed. The 'Locked' column tells how often the mutex was locked during the entire runtime of about 10s. The 'Changed' column tells us how often the owning thread of the mutex changed. The 'Cont.' column tells us how often the lock was already taken when we tried to take it and we had to wait. The fifth column tell us for how long during the entire runtime the lock was locked, the sixth tells us the average lock time, and the seventh column tells us the longest time the lock was held. Finally, the last column tells us what kind of mutex this is (recursive, normal or otherwise)."
(
Log in to post comments)