<?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 Help finding slow code in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Help-finding-slow-code/m-p/769255#M253</link>
    <description>Thanks for your report.&lt;BR /&gt;&lt;BR /&gt;I saw that you worked on 8-core CPU, and 8 OpenMP* threads. It seemed that 1s-5s was to start up threads, 5.5s - 15s was real work to run 8 OpenMP* threads.&lt;BR /&gt;&lt;BR /&gt;Each OpenMP* thread uses 20%-60% CPU time, so whole CPU usage was 160% - 480% during 1.5s to 15s, we expect that 800% CPU usage for OpenMP* threads' running.&lt;BR /&gt;&lt;BR /&gt;You may reduce wait time in OpenMP region, or increase workload to reduce wait count - then improve the performance.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="http://redfort-software.intel.com/file/45576" alt="OMP.png" title="OMP.png" /&gt;&lt;BR /&gt;&lt;BR /&gt;I don't know why you said run in about 1-2 seconds.&lt;BR /&gt;&lt;BR /&gt;Regards, Peter</description>
    <pubDate>Mon, 13 Aug 2012 07:54:57 GMT</pubDate>
    <dc:creator>Peter_W_Intel</dc:creator>
    <dc:date>2012-08-13T07:54:57Z</dc:date>
    <item>
      <title>Help finding slow code</title>
      <link>https://community.intel.com/t5/Analyzers/Help-finding-slow-code/m-p/769254#M252</link>
      <description>I've attached the results from my test run of my program. &amp;nbsp;I think this code should run in about 1-2 seconds yet it takes about 15. &amp;nbsp;I'm trying to see why. &amp;nbsp;The profiling seems to suggest all the time is spent outside of my code. &amp;nbsp;Is that correct? &amp;nbsp;How to I find what is making it so slow.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Dave&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Aug 2012 20:32:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Help-finding-slow-code/m-p/769254#M252</guid>
      <dc:creator>dajum</dc:creator>
      <dc:date>2012-08-10T20:32:02Z</dc:date>
    </item>
    <item>
      <title>Help finding slow code</title>
      <link>https://community.intel.com/t5/Analyzers/Help-finding-slow-code/m-p/769255#M253</link>
      <description>Thanks for your report.&lt;BR /&gt;&lt;BR /&gt;I saw that you worked on 8-core CPU, and 8 OpenMP* threads. It seemed that 1s-5s was to start up threads, 5.5s - 15s was real work to run 8 OpenMP* threads.&lt;BR /&gt;&lt;BR /&gt;Each OpenMP* thread uses 20%-60% CPU time, so whole CPU usage was 160% - 480% during 1.5s to 15s, we expect that 800% CPU usage for OpenMP* threads' running.&lt;BR /&gt;&lt;BR /&gt;You may reduce wait time in OpenMP region, or increase workload to reduce wait count - then improve the performance.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="http://redfort-software.intel.com/file/45576" alt="OMP.png" title="OMP.png" /&gt;&lt;BR /&gt;&lt;BR /&gt;I don't know why you said run in about 1-2 seconds.&lt;BR /&gt;&lt;BR /&gt;Regards, Peter</description>
      <pubDate>Mon, 13 Aug 2012 07:54:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Help-finding-slow-code/m-p/769255#M253</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2012-08-13T07:54:57Z</dc:date>
    </item>
    <item>
      <title>Help finding slow code</title>
      <link>https://community.intel.com/t5/Analyzers/Help-finding-slow-code/m-p/769256#M254</link>
      <description>I have one routine that opens a number of files ( 6600 files in 23 directories) during the course of the run. &amp;nbsp;The old method was to write all the data into one file. &amp;nbsp;That takes about 1.1 seconds to run. &amp;nbsp;I split it into many files and tried to parallelize the process to speed it up. &amp;nbsp;But now it takes 15 seconds. &amp;nbsp;So I'd like to see what is taking it so long by using the profiler. &amp;nbsp;But the default results do not help me in any way. &amp;nbsp;The listing of where the time is spent doesn't seem right. &amp;nbsp;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I ran the same run through GLOWCODE and now have a lot of information about where the time is spent. It is amazing what a little detail can tell you. &amp;nbsp;Time 0-5 is mostly spent deleting files and nothing to do with starting up threads. There isn't any real work being done by all the treads, &amp;nbsp;but it seems impossible to tell from VTUNE what it was doing or why. &amp;nbsp;So I also spent some time reading the posts on how VTUNE works and now understand why. &amp;nbsp;Thanks for your help.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Dave&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Aug 2012 12:09:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Help-finding-slow-code/m-p/769256#M254</guid>
      <dc:creator>dajum</dc:creator>
      <dc:date>2012-08-13T12:09:37Z</dc:date>
    </item>
    <item>
      <title>Help finding slow code</title>
      <link>https://community.intel.com/t5/Analyzers/Help-finding-slow-code/m-p/769257#M255</link>
      <description>&lt;P&gt;"The old method was to write all the data into one file. &amp;nbsp;That takes about 1.1 seconds to run. &amp;nbsp;I split it into many files and tried to parallelize the process to speed it up. &amp;nbsp;But now it takes 15 seconds." - thank you to tell me this story.&lt;BR /&gt;&lt;BR /&gt;I suspect there were more CPU time spent in disk write I/O, you can use&lt;STRONG&gt;LocksAndWaits analysis&lt;/STRONG&gt; to collect performance data to find Wait Time. &lt;BR /&gt;&lt;BR /&gt;Frequently disk-writing in parallel threading is not helpful on performance gain, since only one thread can use disk IO at a time, you may use memory&amp;nbsp;storage instead of disk IO, dump&amp;nbsp;data to files in final stage (Sorry that I don't know your algorithm in depth)&lt;BR /&gt;&lt;BR /&gt;Regards, Peter&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2012 06:06:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Help-finding-slow-code/m-p/769257#M255</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2012-08-14T06:06:56Z</dc:date>
    </item>
  </channel>
</rss>

