Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to measure mutex contention?

Tags:

I have some threaded code using PThreads on Linux that, I suspect, is suffering from excessive lock contention. What tools are available for me to measure this?

Solaris has DTrace and plockstat. Is there something similar on Linux? (I know about a recent DTrace port for Linux but it doesn't seem to be ready for prime time yet.)

like image 328
Luís Oliveira Avatar asked Aug 08 '09 19:08

Luís Oliveira


1 Answers

mutrace is the tool: http://0pointer.de/blog/projects/mutrace.html

Its easy to build, install and use.

like image 103
user391515 Avatar answered Oct 06 '22 10:10

user391515