<?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 some question about QPI in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/some-question-about-QPI/m-p/1067391#M5235</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;I use pcm tool to monitor qpi performance, and now i am confused with some &amp;nbsp;question.&lt;/P&gt;

&lt;P&gt;1. with qpi frequency set as 9.6GT/s ,what's the max bandwidth it can be ? &amp;nbsp;I mean from point to point like from socket1 to socket0?&lt;/P&gt;

&lt;P&gt;2. I see the source code to find out how &amp;nbsp;the pcm calculate the qpi&amp;nbsp;&lt;SPAN style="color: rgb(67, 67, 67); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; font-weight: bold; line-height: 19.1875px; background-color: rgb(242, 242, 242);"&gt;Utilization , it shows that : &amp;nbsp;&lt;/SPAN&gt;max_bytes = (double)(double(max_speed) * double(getInvariantTSC(before, after) / double(m-&amp;gt;getNumCores())) / double(m-&amp;gt;getNominalFrequency()));&lt;/P&gt;

&lt;P&gt;can you tell me what is &amp;nbsp;the&amp;nbsp;&lt;SPAN style="color: rgb(67, 67, 67); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; line-height: 24px; background-color: rgb(242, 242, 242);"&gt;&amp;nbsp;factor meaning ?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;3. In my test result , in 4cpu mechine , the outgoing QPI traffic(in a second ) can up to 23GB with 94% utilization, &amp;nbsp;but in another mechine with 16socket &amp;nbsp;sometimes it can be 24G with 77% utilization ,the&amp;nbsp;&lt;A class="clickable js-inline-clickable" style="border: 0px; outline: 0px; cursor: pointer; color: rgb(53, 161, 212); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; line-height: 24px; background-color: rgb(242, 242, 242);"&gt;denominator seems &amp;nbsp;change all the time ?&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In my view ,the max_bytes in a second should be the max_speed &amp;nbsp;19.2 GB/s ,but in my test it was not.&lt;/P&gt;

&lt;P&gt;really confused. help !&lt;/P&gt;

&lt;P&gt;thank you !&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2016 02:06:37 GMT</pubDate>
    <dc:creator>Yinchao_Z_</dc:creator>
    <dc:date>2016-03-31T02:06:37Z</dc:date>
    <item>
      <title>some question about QPI</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/some-question-about-QPI/m-p/1067391#M5235</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;I use pcm tool to monitor qpi performance, and now i am confused with some &amp;nbsp;question.&lt;/P&gt;

&lt;P&gt;1. with qpi frequency set as 9.6GT/s ,what's the max bandwidth it can be ? &amp;nbsp;I mean from point to point like from socket1 to socket0?&lt;/P&gt;

&lt;P&gt;2. I see the source code to find out how &amp;nbsp;the pcm calculate the qpi&amp;nbsp;&lt;SPAN style="color: rgb(67, 67, 67); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; font-weight: bold; line-height: 19.1875px; background-color: rgb(242, 242, 242);"&gt;Utilization , it shows that : &amp;nbsp;&lt;/SPAN&gt;max_bytes = (double)(double(max_speed) * double(getInvariantTSC(before, after) / double(m-&amp;gt;getNumCores())) / double(m-&amp;gt;getNominalFrequency()));&lt;/P&gt;

&lt;P&gt;can you tell me what is &amp;nbsp;the&amp;nbsp;&lt;SPAN style="color: rgb(67, 67, 67); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; line-height: 24px; background-color: rgb(242, 242, 242);"&gt;&amp;nbsp;factor meaning ?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;3. In my test result , in 4cpu mechine , the outgoing QPI traffic(in a second ) can up to 23GB with 94% utilization, &amp;nbsp;but in another mechine with 16socket &amp;nbsp;sometimes it can be 24G with 77% utilization ,the&amp;nbsp;&lt;A class="clickable js-inline-clickable" style="border: 0px; outline: 0px; cursor: pointer; color: rgb(53, 161, 212); font-family: Tahoma, Arial, 宋体, 'Malgun Gothic'; font-size: 12px; line-height: 24px; background-color: rgb(242, 242, 242);"&gt;denominator seems &amp;nbsp;change all the time ?&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In my view ,the max_bytes in a second should be the max_speed &amp;nbsp;19.2 GB/s ,but in my test it was not.&lt;/P&gt;

&lt;P&gt;really confused. help !&lt;/P&gt;

&lt;P&gt;thank you !&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 02:06:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/some-question-about-QPI/m-p/1067391#M5235</guid>
      <dc:creator>Yinchao_Z_</dc:creator>
      <dc:date>2016-03-31T02:06:37Z</dc:date>
    </item>
    <item>
      <title>@John McCalpin</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/some-question-about-QPI/m-p/1067392#M5236</link>
      <description>&lt;P&gt;&lt;A title="View user profile." class="username" href="https://software.intel.com/en-us/user/545611" lang="" typeof="sioc:UserAccount" datatype="" property="foaf:name" about="/en-us/user/545611"&gt;&lt;U&gt;&lt;FONT color="#0066cc"&gt;@John McCalpin&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;can you help me ?&lt;/P&gt;

&lt;P&gt;thank you very much !&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 01:25:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/some-question-about-QPI/m-p/1067392#M5236</guid>
      <dc:creator>Yinchao_Z_</dc:creator>
      <dc:date>2016-04-05T01:25:14Z</dc:date>
    </item>
    <item>
      <title>QPI links have an "effective</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/some-question-about-QPI/m-p/1067393#M5237</link>
      <description>&lt;P&gt;QPI links have an "effective width" for data of 16 bits in each direction, so the peak data bandwidth of a link running at 9.6 GT/s is 19.2 GB/s per direction.&lt;/P&gt;

&lt;P&gt;Socket-to-socket connections in 4 socket-systems are a single link wide, while many/most 2-socket systems use two links to connect the two sockets.&lt;/P&gt;

&lt;P&gt;This peak bandwidth number is not attainable for a large number of reasons.&amp;nbsp; Part of the bandwidth is used for requests (loads or snoops) and part is used for responses without data (mostly snoop responses).&amp;nbsp; Traffic going in both directions will see contention between the requests and data responses.&lt;/P&gt;

&lt;P&gt;In many systems it is not possible to get close to the maximum bandwidth for some transaction types, suggesting that there are inadequate buffers for some transaction types.&amp;nbsp; I have only tested this extensively on 2-socket systems -- the results may be completely different on larger systems, since the allocation of buffers is likely to be different.&amp;nbsp;&amp;nbsp; These limitations vary by processor generation and (more recently) by the "snoop mode" of the system.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;Xeon E5 (v1, Sandy Bridge) was only able to drive ~66% of peak QPI bandwidth for reads, and much less than that for combinations of reads with either writebacks or streaming stores.&lt;/LI&gt;
	&lt;LI&gt;Xeon E5 v2 (Ivy Bridge) introduced the "Home Agent" snoop mode, which allows much better performance -- up to 80% of peak for reads, and improvements of up to 100% for reads+writebacks and improvements ~70% for reads+streaming_stores.&amp;nbsp;&amp;nbsp;&lt;/LI&gt;
	&lt;LI&gt;Xeon E5 v3 (Haswell, using "Home Agent" snoop mode) retains these improvements and adds up to 25% improvement in workloads that are limited by read+streaming_store performance.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I have tested performance of 4-socket systems, but only with Xeon E5 v1 (Sandy Bridge) processors, and the performance was very low -- about 1/2 of the percentage of peak QPI bandwidth that I saw on the 2s systems (and the peak is only 1/2 because only one link is used between each pair of chips).&amp;nbsp;&amp;nbsp; I don't know if this can be attributed to coherence traffic or if there is another cause.&amp;nbsp;&amp;nbsp; I have not tested any 4s systems newer than Sandy Bridge (Xeon E5-4650), so I don't know how the performance has changed.....&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 19:16:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/some-question-about-QPI/m-p/1067393#M5237</guid>
      <dc:creator>McCalpinJohn</dc:creator>
      <dc:date>2016-04-05T19:16:17Z</dc:date>
    </item>
  </channel>
</rss>

