Is there a free and open source tool like Threadscope (and newer than NPTL Trace tool) to analyze CPU utilization/threading errors?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The CPU utilization analysis and threading error checker can be not in the same tool. To find threading errors, huge analysis of memory accesses is needed. I can name valngrind’s helgrind http://valgrind.org/docs/manual/hg-manual.html and google threadSanitizer, tsan (based on helgrind) http://code.google.com/p/data-race-test/wiki/ThreadSanitizer. Both tools do a run-time instrumentation of code via valgrind’s libVEX dynamic code modification framework. This leads to huge slowdown, e.g. for Helgrind (from hg-manual):
For CPU utilization, you should use the profiler, which does affect performance of the application only a little (up to 5-10 %), e.g.
oprofileor linux’s perf https://perf.wiki.kernel.org/index.php/Main_PageIf threads in your application are added by using OpenMP, there are solutions to analyze OMP thread balancing, e.g. Intel’s openMP implementation can record some information like shown here .gvs (GuideView openmp statistics) file format