<?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 vtune profiler not show the time inside the socket recv function in hotspots in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/vtune-profiler-not-show-the-time-inside-the-socket-recv-function/m-p/1430595#M22703</link>
    <description>&lt;P&gt;My software is a multi-thread database server for OLTP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run a benchmark for the database, and profiling the database server with vtune profiler.&lt;/P&gt;
&lt;P&gt;The benchmark will simulate 72 connections to database server and each connection run a simple query to database&amp;nbsp;concurrently. Each query is about 100-200 bytes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The hotspots for database server :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loushuai_0-1668606417044.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35162i69B8EBFDD610B05B/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="loushuai_0-1668606417044.png" alt="loushuai_0-1668606417044.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will see recv function(linux socket standard recv function) cost too much time. so i want dig into recv to find the reason.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The source code can not go deeper.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loushuai_1-1668606553712.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35164i2ECA53A4D05E228A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="loushuai_1-1668606553712.png" alt="loushuai_1-1668606553712.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loushuai_2-1668606599716.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35165i29E8D6E329ACC7BE/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="loushuai_2-1668606599716.png" alt="loushuai_2-1668606599716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Caller/Callee can show some callees, but the CPU Time is&amp;nbsp;negligible.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loushuai_3-1668606756839.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35166i6BDDF346723D71BD/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="loushuai_3-1668606756839.png" alt="loushuai_3-1668606756839.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can go deeper to analyze why recv take so much time?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 14:00:16 GMT</pubDate>
    <dc:creator>loushuai</dc:creator>
    <dc:date>2022-11-16T14:00:16Z</dc:date>
    <item>
      <title>vtune profiler not show the time inside the socket recv function in hotspots</title>
      <link>https://community.intel.com/t5/Analyzers/vtune-profiler-not-show-the-time-inside-the-socket-recv-function/m-p/1430595#M22703</link>
      <description>&lt;P&gt;My software is a multi-thread database server for OLTP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run a benchmark for the database, and profiling the database server with vtune profiler.&lt;/P&gt;
&lt;P&gt;The benchmark will simulate 72 connections to database server and each connection run a simple query to database&amp;nbsp;concurrently. Each query is about 100-200 bytes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The hotspots for database server :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loushuai_0-1668606417044.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35162i69B8EBFDD610B05B/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="loushuai_0-1668606417044.png" alt="loushuai_0-1668606417044.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will see recv function(linux socket standard recv function) cost too much time. so i want dig into recv to find the reason.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The source code can not go deeper.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loushuai_1-1668606553712.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35164i2ECA53A4D05E228A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="loushuai_1-1668606553712.png" alt="loushuai_1-1668606553712.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loushuai_2-1668606599716.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35165i29E8D6E329ACC7BE/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="loushuai_2-1668606599716.png" alt="loushuai_2-1668606599716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Caller/Callee can show some callees, but the CPU Time is&amp;nbsp;negligible.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loushuai_3-1668606756839.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35166i6BDDF346723D71BD/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="loushuai_3-1668606756839.png" alt="loushuai_3-1668606756839.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can go deeper to analyze why recv take so much time?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 14:00:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/vtune-profiler-not-show-the-time-inside-the-socket-recv-function/m-p/1430595#M22703</guid>
      <dc:creator>loushuai</dc:creator>
      <dc:date>2022-11-16T14:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: vtune profiler not show the time inside the socket recv function in hotspots</title>
      <link>https://community.intel.com/t5/Analyzers/vtune-profiler-not-show-the-time-inside-the-socket-recv-function/m-p/1431278#M22718</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for posting in Intel Communities. Based on the screenshots you provided, we could see that &lt;STRONG&gt;recv&lt;/STRONG&gt; function is calling another function &lt;STRONG&gt;__recv_alias_(…) &lt;/STRONG&gt;which is taking 202.7 seconds of the CPU time. To check the same, you need to see the call stacks pane in the &lt;STRONG&gt;Bottom-up &lt;/STRONG&gt;window.&lt;/P&gt;
&lt;P&gt;We took a small C++ sample where main function calls another function fib() from another program file(cpp_fib.cpp). Let me explain in detail as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In the &lt;STRONG&gt;Summary Window of Vtune Profiler&lt;/STRONG&gt;, I clicked on fib function, which is highlighted, from the below screenshot and got navigated to the &lt;STRONG&gt;Bottom-up window.&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlekhyaV_Intel_0-1668779743104.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35251i31C929850FB4922D/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="AlekhyaV_Intel_0-1668779743104.png" alt="AlekhyaV_Intel_0-1668779743104.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In the bottom-up window, if you double click on any function/call stack in the left sided pane, you could see the source code. We double clicked on fib to see fib.cpp program's source code as follows:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlekhyaV_Intel_5-1668780101684.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35257i7058507AEAA783C5/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="AlekhyaV_Intel_5-1668780101684.png" alt="AlekhyaV_Intel_5-1668780101684.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note: The above screenshot only has 0.1% as it takes some negligible amount of time to print the result from &lt;/STRONG&gt;&lt;U style="font-weight: bold;"&gt;fib(n)&lt;/U&gt;&lt;STRONG&gt; function. So, to see the Total CPU time that the fib(n) took, including calling and executing, you need to view source code from the Call stacks pane. See the detailed explanation&amp;nbsp;with screenshots as follows.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In the bottom-up window, there’s a &lt;STRONG&gt;Call Stacks pane&lt;/STRONG&gt; where you could hover over the .cpp files and you can view the source code of the functions you’ve called. The &lt;STRONG&gt;main() function in fib.cpp &lt;/STRONG&gt;program is calling another function &lt;STRONG&gt;fib()&lt;/STRONG&gt; which exists in &lt;STRONG&gt;cpp_fib.cpp&lt;/STRONG&gt; program.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlekhyaV_Intel_1-1668779775714.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35252iFC758E5A80218C0B/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="AlekhyaV_Intel_1-1668779775714.png" alt="AlekhyaV_Intel_1-1668779775714.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlekhyaV_Intel_2-1668779869847.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35253i17B3A28AD352EB97/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="AlekhyaV_Intel_2-1668779869847.png" alt="AlekhyaV_Intel_2-1668779869847.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;By clicking on &lt;STRONG&gt;view source &lt;/STRONG&gt;from the pop as shown above, You would be navigated to the cpp_fib.cpp source code where you could see the CPU time as follows:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlekhyaV_Intel_3-1668779899796.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35254i2FC8BC4DE5D1A34D/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="AlekhyaV_Intel_3-1668779899796.png" alt="AlekhyaV_Intel_3-1668779899796.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You could go back to the bottom-up pane to get any source code by hovering over each file in the &lt;STRONG&gt;Call Stacks Pane &lt;/STRONG&gt;as follows:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlekhyaV_Intel_4-1668779914065.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35255i64945E66766D7FA5/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="AlekhyaV_Intel_4-1668779914065.png" alt="AlekhyaV_Intel_4-1668779914065.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope we are clear with all the details and result interpretations. If this resolves your issue, please accept this as a solution. This helps others with similar issue. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Alekhya&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 14:05:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/vtune-profiler-not-show-the-time-inside-the-socket-recv-function/m-p/1431278#M22718</guid>
      <dc:creator>AlekhyaV_Intel</dc:creator>
      <dc:date>2022-11-18T14:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: vtune profiler not show the time inside the socket recv function in hotspots</title>
      <link>https://community.intel.com/t5/Analyzers/vtune-profiler-not-show-the-time-inside-the-socket-recv-function/m-p/1431471#M22720</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loushuai_0-1668829578178.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35290i4A84BD9F86DAB6AA/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="loushuai_0-1668829578178.png" alt="loushuai_0-1668829578178.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loushuai_1-1668829623580.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35291i32920006AA9D8222/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="loushuai_1-1668829623580.png" alt="loushuai_1-1668829623580.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can just go to the recv function in socket2.h source file which belongs to the system socket API ,&lt;/P&gt;
&lt;P&gt;but I can not go inside&lt;STRONG class="sub_section_element_selectors"&gt;__recv_alias_(…) function&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 03:49:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/vtune-profiler-not-show-the-time-inside-the-socket-recv-function/m-p/1431471#M22720</guid>
      <dc:creator>loushuai</dc:creator>
      <dc:date>2022-11-19T03:49:38Z</dc:date>
    </item>
    <item>
      <title>Re:vtune profiler not show the time for recv function in hotspots</title>
      <link>https://community.intel.com/t5/Analyzers/vtune-profiler-not-show-the-time-inside-the-socket-recv-function/m-p/1432119#M22731</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You would be able to find that &lt;STRONG&gt;recv_alias_..(...) function&lt;/STRONG&gt; in the source code where it actually exists. socket2.h file has recv_alias..() function initialized?&lt;/P&gt;&lt;P&gt;Or could you please share your sample code file so that we can try reproducing your issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alekhya&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Nov 2022 11:39:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/vtune-profiler-not-show-the-time-inside-the-socket-recv-function/m-p/1432119#M22731</guid>
      <dc:creator>AlekhyaV_Intel</dc:creator>
      <dc:date>2022-11-22T11:39:12Z</dc:date>
    </item>
    <item>
      <title>Re:vtune profiler not show the time for recv function in hotspots</title>
      <link>https://community.intel.com/t5/Analyzers/vtune-profiler-not-show-the-time-inside-the-socket-recv-function/m-p/1433937#M22771</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please give us an update regarding this issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alekhya&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Nov 2022 10:09:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/vtune-profiler-not-show-the-time-inside-the-socket-recv-function/m-p/1433937#M22771</guid>
      <dc:creator>AlekhyaV_Intel</dc:creator>
      <dc:date>2022-11-29T10:09:14Z</dc:date>
    </item>
    <item>
      <title>Re:vtune profiler not show the time for recv function in hotspots</title>
      <link>https://community.intel.com/t5/Analyzers/vtune-profiler-not-show-the-time-inside-the-socket-recv-function/m-p/1436367#M22806</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We assume that your issue is resolved. If you need any further assistance, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alekhya&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Dec 2022 06:02:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/vtune-profiler-not-show-the-time-inside-the-socket-recv-function/m-p/1436367#M22806</guid>
      <dc:creator>AlekhyaV_Intel</dc:creator>
      <dc:date>2022-12-07T06:02:44Z</dc:date>
    </item>
  </channel>
</rss>

