<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Thread Profiler hangs/freezes in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903604#M5495</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/338213"&gt;Peter Wang (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;It's a good news that Thread Profiler doesn't hang again! You metthe secondproblem todrill downto source code for mutex object's overheads! I reviewed Thresholds' behavior : defaultsetting is "Do not record source information" if event duration(number) is less than threshold. But it is better than other option "Do not record event at all".&lt;BR /&gt;&lt;BR /&gt;You said my two suggestions both are workable. I wonder if you can create a new Thread Profiler's activityof using"Record using dbghelp to a maximum depth of: 1" &lt;STRONG&gt;only&lt;/STRONG&gt; to avoid this problem? &lt;BR /&gt;&lt;BR /&gt;Regards, Peter&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Unfortunately, no.&lt;BR /&gt;&lt;BR /&gt;I tried a bunch of combinations (your two, plus different threshold values), and each outcome either had the hang or if it didn't hang it didn't show me the information that I needed.&lt;BR /&gt;&lt;BR /&gt;I think this problem may be magnified in my case because our code base wraps up the mutex calls in a layer or two of calls, so if I really want to know what mutex is hurting my performance I need more than a few stack frames to see it.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 18 May 2009 19:18:14 GMT</pubDate>
    <dc:creator>bob_brandt</dc:creator>
    <dc:date>2009-05-18T19:18:14Z</dc:date>
    <item>
      <title>Thread Profiler hangs/freezes</title>
      <link>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903599#M5490</link>
      <description>I'm able to instrument and capture an application run, but Thread Profiler hangs on the popup "Select a time range of data to view."&lt;BR /&gt;&lt;BR /&gt;This happens repeatably/reliably in this case I need to profile. However, I have successfully used the tool in prior cases.&lt;BR /&gt;&lt;BR /&gt;Any suggestions?</description>
      <pubDate>Thu, 14 May 2009 13:40:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903599#M5490</guid>
      <dc:creator>bob_brandt</dc:creator>
      <dc:date>2009-05-14T13:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Thread Profiler hangs/freezes</title>
      <link>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903600#M5491</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
I noticed this error in the event viewer, too:&lt;BR /&gt;&lt;BR /&gt;Event Type:	Error&lt;BR /&gt;Event Source:	Application Hang&lt;BR /&gt;Event Category:	(101)&lt;BR /&gt;Event ID:	1002&lt;BR /&gt;Date:		5/14/2009&lt;BR /&gt;Time:		9:46:15 AM&lt;BR /&gt;User:		N/A&lt;BR /&gt;Computer:	DEV1269&lt;BR /&gt;Description:&lt;BR /&gt;Hanging application vtuneenv.exe, version 9.0.10.719, hang module hungapp, version 0.0.0.0, hang address 0x00000000.&lt;BR /&gt;&lt;BR /&gt;For more information, see Help and Support Center at &lt;A href="http://go.microsoft.com/fwlink/events.asp" target="_blank"&gt;http://go.microsoft.com/fwlink/events.asp&lt;/A&gt;.&lt;BR /&gt;Data:&lt;BR /&gt;0000: 41 70 70 6c 69 63 61 74   Applicat&lt;BR /&gt;0008: 69 6f 6e 20 48 61 6e 67   ion Hang&lt;BR /&gt;0010: 20 20 76 74 75 6e 65 65     vtunee&lt;BR /&gt;0018: 6e 76 2e 65 78 65 20 39   nv.exe 9&lt;BR /&gt;0020: 2e 30 2e 31 30 2e 37 31   .0.10.71&lt;BR /&gt;0028: 39 20 69 6e 20 68 75 6e   9 in hun&lt;BR /&gt;0030: 67 61 70 70 20 30 2e 30   gapp 0.0&lt;BR /&gt;0038: 2e 30 2e 30 20 61 74 20   .0.0 at &lt;BR /&gt;0040: 6f 66 66 73 65 74 20 30   offset 0&lt;BR /&gt;0048: 30 30 30 30 30 30 30      0000000 &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 May 2009 15:55:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903600#M5491</guid>
      <dc:creator>bob_brandt</dc:creator>
      <dc:date>2009-05-14T15:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Thread Profiler hangs/freezes</title>
      <link>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903601#M5492</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/428246"&gt;bob_brandt&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;I'm able to instrument and capture an application run, but Thread Profiler hangs on the popup "Select a time range of data to view."&lt;BR /&gt;&lt;BR /&gt;This happens repeatably/reliably in this case I need to profile. However, I have successfully used the tool in prior cases.&lt;BR /&gt;&lt;BR /&gt;Any suggestions?&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I was aware of similar problem when running Thread Profiler with big application. Finally I changed setting at "Configure Intel Thread Profiler Instrumentation" dialog -&amp;gt; "Messages / Call Sites" tab -&amp;gt; "Accuracy/Performance Trade-offs:" -&amp;gt; "&lt;STRONG&gt;Record using dbghelp (Windows*)/libunwind(Linux*)&lt;/STRONG&gt;" : to a maximum depth of "&lt;STRONG&gt;1&lt;/STRONG&gt;" &lt;BR /&gt;&lt;BR /&gt;Original value is "5", I just want to reduce workloads from Thread Profiler.&lt;BR /&gt;&lt;BR /&gt;Other choice is to &lt;STRONG&gt;enlarge&lt;/STRONG&gt; value "&lt;STRONG&gt;Record complete information of one event for every [ ] event below threshold&lt;/STRONG&gt;" on the tab named "Thresholds" of same dialog.&lt;BR /&gt;&lt;BR /&gt;Regards, Peter</description>
      <pubDate>Fri, 15 May 2009 03:29:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903601#M5492</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2009-05-15T03:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Thread Profiler hangs/freezes</title>
      <link>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903602#M5493</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/338213"&gt;Peter Wang (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;I was aware of similar problem when running Thread Profiler with big application. Finally I changed setting at "Configure Intel Thread Profiler Instrumentation" dialog -&amp;gt; "Messages / Call Sites" tab -&amp;gt; "Accuracy/Performance Trade-offs:" -&amp;gt; "&lt;STRONG&gt;Record using dbghelp (Windows*)/libunwind(Linux*)&lt;/STRONG&gt;" : to a maximum depth of "&lt;STRONG&gt;1&lt;/STRONG&gt;" &lt;BR /&gt;&lt;BR /&gt;Original value is "5", I just want to reduce workloads from Thread Profiler.&lt;BR /&gt;&lt;BR /&gt;Other choice is to &lt;STRONG&gt;enlarge&lt;/STRONG&gt; value "&lt;STRONG&gt;Record complete information of one event for every [ ] event below threshold&lt;/STRONG&gt;" on the tab named "Thresholds" of same dialog.&lt;BR /&gt;&lt;BR /&gt;Regards, Peter &lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;Thanks for the advice!&lt;BR /&gt;&lt;BR /&gt;I tried both those suggestions and I was able to avoid the hang, but unfortunately I'm not able to see the source code for the mutex overheads that I need to address. Heisenberg's uncertainty principle applies, I guess.&lt;BR /&gt;&lt;BR /&gt;In this case, though, I was able to infer which mutex was my bottleneck outside of the Profiler tool, so I'll wait to worry about this on my next bottleneck.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 May 2009 15:13:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903602#M5493</guid>
      <dc:creator>bob_brandt</dc:creator>
      <dc:date>2009-05-15T15:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Thread Profiler hangs/freezes</title>
      <link>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903603#M5494</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/428246"&gt;bob_brandt&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;Thanks for the advice!&lt;BR /&gt;&lt;BR /&gt;I tried both those suggestions and I was able to avoid the hang, but unfortunately I'm not able to see the source code for the mutex overheads that I need to address. Heisenberg's uncertainty principle applies, I guess.&lt;BR /&gt;&lt;BR /&gt;In this case, though, I was able to infer which mutex was my bottleneck outside of the Profiler tool, so I'll wait to worry about this on my next bottleneck.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;It's a good news that Thread Profiler doesn't hang again! You metthe secondproblem todrill downto source code for mutex object's overheads! I reviewed Thresholds' behavior : defaultsetting is "Do not record source information" if event duration(number) is less than threshold. But it is better than other option "Do not record event at all".&lt;BR /&gt;&lt;BR /&gt;You said my two suggestions both are workable. I wonder if you can create a new Thread Profiler's activityof using"Record using dbghelp to a maximum depth of: 1" &lt;STRONG&gt;only&lt;/STRONG&gt; to avoid this problem? &lt;BR /&gt;&lt;BR /&gt;Regards, Peter</description>
      <pubDate>Mon, 18 May 2009 02:15:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903603#M5494</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2009-05-18T02:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Thread Profiler hangs/freezes</title>
      <link>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903604#M5495</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/338213"&gt;Peter Wang (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;It's a good news that Thread Profiler doesn't hang again! You metthe secondproblem todrill downto source code for mutex object's overheads! I reviewed Thresholds' behavior : defaultsetting is "Do not record source information" if event duration(number) is less than threshold. But it is better than other option "Do not record event at all".&lt;BR /&gt;&lt;BR /&gt;You said my two suggestions both are workable. I wonder if you can create a new Thread Profiler's activityof using"Record using dbghelp to a maximum depth of: 1" &lt;STRONG&gt;only&lt;/STRONG&gt; to avoid this problem? &lt;BR /&gt;&lt;BR /&gt;Regards, Peter&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Unfortunately, no.&lt;BR /&gt;&lt;BR /&gt;I tried a bunch of combinations (your two, plus different threshold values), and each outcome either had the hang or if it didn't hang it didn't show me the information that I needed.&lt;BR /&gt;&lt;BR /&gt;I think this problem may be magnified in my case because our code base wraps up the mutex calls in a layer or two of calls, so if I really want to know what mutex is hurting my performance I need more than a few stack frames to see it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 May 2009 19:18:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903604#M5495</guid>
      <dc:creator>bob_brandt</dc:creator>
      <dc:date>2009-05-18T19:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Thread Profiler hangs/freezes</title>
      <link>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903605#M5496</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/428246"&gt;bob_brandt&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;Unfortunately, no.&lt;BR /&gt;&lt;BR /&gt;I tried a bunch of combinations (your two, plus different threshold values), and each outcome either had the hang or if it didn't hang it didn't show me the information that I needed.&lt;BR /&gt;&lt;BR /&gt;I think this problem may be magnified in my case because our code base wraps up the mutex calls in a layer or two of calls, so if I really want to know what mutex is hurting my performance I need more than a few stack frames to see it.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I have two suggestions:&lt;BR /&gt;1) I found your using vtuneenv.exe, version &lt;STRONG&gt;9.0.10.719&lt;/STRONG&gt;- that is version 9. Please try to download latest VTune Analyzer version &lt;STRONG&gt;v9.1 Update 12 build #210&lt;/STRONG&gt;, which includes latest Intel? Thread Profiler. See &lt;A href="https://registrationcenter.intel.com/RegCenter/Download.aspx?productid=1104" target="_blank"&gt;https://registrationcenter.intel.com/RegCenter/Download.aspx?productid=1104&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;2) Don't use thresholds since you can't find source view.Adjust dbghelp's depth to "2"or "3" sincestandard mutex APIwaswrapped by your code.&lt;BR /&gt;&lt;BR /&gt;By the way, isit possible that you can attach the test casefor investigating?&lt;BR /&gt;&lt;BR /&gt;Thanks, Peter</description>
      <pubDate>Tue, 19 May 2009 02:12:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903605#M5496</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2009-05-19T02:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Thread Profiler hangs/freezes</title>
      <link>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903606#M5497</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/338213"&gt;Peter Wang (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;I have two suggestions:&lt;BR /&gt;1) I found your using vtuneenv.exe, version &lt;STRONG&gt;9.0.10.719&lt;/STRONG&gt;- that is version 9. Please try to download latest VTune Analyzer version &lt;STRONG&gt;v9.1 Update 12 build #210&lt;/STRONG&gt;, which includes latest Intel? Thread Profiler. See &lt;A href="https://registrationcenter.intel.com/RegCenter/Download.aspx?productid=1104" target="_blank"&gt;https://registrationcenter.intel.com/RegCenter/Download.aspx?productid=1104&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;2) Don't use thresholds since you can't find source view.Adjust dbghelp's depth to "2"or "3" sincestandard mutex APIwaswrapped by your code.&lt;BR /&gt;&lt;BR /&gt;By the way, isit possible that you can attach the test casefor investigating?&lt;BR /&gt;&lt;BR /&gt;Thanks, Peter &lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi Peter,&lt;BR /&gt;&lt;BR /&gt;Thanks for all your suggestions.&lt;BR /&gt;&lt;BR /&gt;1) I'm doing a 30-day eval of the Profiler and didn't see any updates from that link you posted. Maybe that's only for licensed users?&lt;BR /&gt;&lt;BR /&gt;2) I'm not sure how to avoid thresholds. I just completed a run where I had these settings:&lt;BR /&gt;Threshold Behavior : Do not record event at all&lt;BR /&gt;Threshold Values :&lt;BR /&gt; Wait Events: 0 microseconds&lt;BR /&gt; - Light-weight locks: 3 microseconds&lt;BR /&gt; - Blocking API events: 30 microseconds&lt;BR /&gt;Automatically adjust threshold values to limit analysis overhead: CHECKED&lt;BR /&gt;Record complete information of one event for every X events below threshold: NOT checked&lt;BR /&gt;&lt;BR /&gt;Messages:&lt;BR /&gt;Attribute impact time to messages or windows (when available): NOT checked&lt;BR /&gt;&lt;BR /&gt;Call Site Information:&lt;BR /&gt;Coverage: Also collect call sites for thread waits&lt;BR /&gt;&lt;BR /&gt;Accuracy/Performance Trade-offs: Record using dbghelp depth=5&lt;BR /&gt;&lt;BR /&gt;The good news is the GUI didn't hang. The bad news is it didn't show very much. Certainly not enough to determine where my bottleneck is. A very few thread transistions were shown. I checked on and I could see the source and stack, but it didn't show the full stack, just the first 2 frames.&lt;BR /&gt;&lt;BR /&gt;Unfortunately this code and application is for work and is proprietary. I can say I'm testing on Windows XP Pro with a four core processor and trying to use four worker threads. I'm seeing a big back-off: in this case a single-thread run takes ~12 seconds and four threads take ~30 seconds.&lt;BR /&gt;&lt;BR /&gt;In a prior case I found big contention on a mutex, and the cost of contention was this expensive. I'd like a tool to show me where my contention is now, but Thread Profiler hasn't been able to do it for me in this case (yet).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 May 2009 22:12:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Thread-Profiler-hangs-freezes/m-p/903606#M5497</guid>
      <dc:creator>bob_brandt</dc:creator>
      <dc:date>2009-05-20T22:12:57Z</dc:date>
    </item>
  </channel>
</rss>

