<?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>Question Re: Are hyperthreaded processors counted for intra-query parallelism? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaa-p/13825557#M4856400</link>
    <description>&lt;P&gt;We both obviously agree that the doc's statemements on licensing and processors are difficult to understand... That being said, I guess the "not counting" really relates to the fact that &lt;STRONG&gt;a hyperthreading core is counted as one core w.r.t. licensing&lt;/STRONG&gt;, see the &lt;A href="http://dcx.sap.com/index.html#sqla170/en/html/813b2d1c6ce210148bdefc71a0c26bf1.html"&gt;following quote from the "per seat" license type&lt;/A&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;If a core contains multiple threads, all threads of that core might be used.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your sample machine has 4 cores and is licensed to use all 8 hyperthreads on those cores, so it is also allowed to use all 8 hyperthreads for 8 parallel operators. Since only four cores are officially licensed, you can still use 8 threads, so in my understanding, the phrase should be understood as "the (additional) hyperthreads are not counted".&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;From a practical point of view: As your machine does use 8 logical processors according to the server properties, why should it not use all of those for parallel tasks (unless you want to limit the max_query_tasks option)...&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jan 2021 03:13:40 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2021-01-22T03:13:40Z</dc:date>
    <item>
      <title>Are hyperthreaded processors counted for intra-query parallelism?</title>
      <link>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaq-p/13825556</link>
      <description>&lt;P&gt;What is the explanation for this apparent contradiction?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
The Help says "hyperthreaded processors &lt;B&gt;are not counted&lt;/B&gt; for intra-query parallelism" but I regularly see 8 INT:Exchange connections (and 8 subtrees in the plans) when intra-query parallelism is in full swing on a chips like the Intel i7-4790 which have 4 hyperthreaded cores.
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;B&gt;Help: Parallelism in Queries&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.sap.com/viewer/e38b2f6217f24bdb90a3ff8ae57b1dd5/17.0/en-US/819041ab6ce2101488d8f69523dce2c8.html" target="_blank"&gt;https://help.sap.com/viewer/e38b2f6217f24bdb90a3ff8ae57b1dd5/17.0/en-US/819041ab6ce2101488d8f69523dce2c8.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;"However, hyperthreaded processors are not counted for intra-query parallelism so you must divide the value of NumLogicalProcessorsUsed by two if the computer is hyperthreaded."&lt;/P&gt;
&lt;P&gt;&lt;B&gt;Intel® Core™ i7-4790 Processor&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://ark.intel.com/content/www/us/en/ark/products/80806/intel-core-i7-4790-processor-8m-cache-up-to-4-00-ghz.html" target="_blank"&gt;https://ark.intel.com/content/www/us/en/ark/products/80806/intel-core-i7-4790-processor-8m-cache-up-to-4-00-ghz.html&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;# of Cores                         4
# of Threads                       8
Intel® Hyper-Threading Technology  Yes
&lt;/PRE&gt;

&lt;PRE&gt;SELECT PROPERTY ( 'NumLogicalProcessorsUsed' );
PROPERTY('NumLogicalProcessorsUsed')
'8'
&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jan 2021 06:10:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaq-p/13825556</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2021-01-21T06:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Are hyperthreaded processors counted for intra-query parallelism?</title>
      <link>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaa-p/13825558#M4856401</link>
      <description>&lt;P&gt;Hm, the full quote says:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Following is a list of circumstances in which a query cannot take advantage of parallelism, either at optimization or execution time:&lt;BR /&gt;
[...]
the server computer is not licensed to use multiple processors. You can check this by looking at the NumLogicalProcessorsUsed server property. However, hyperthreaded processors are not counted for intra-query parallelism so you must divide the value of NumLogicalProcessorsUsed by two if the computer is hyperthreaded.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So the "not counting" may also refer to the counting the number of &lt;EM&gt;licensed&lt;/EM&gt; processors... What does happen when you set max_query_tasks to 4?&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;Probably also a question of comparing the server porperties LicenseType, NumLogicalProcessors(Used) and NumPhysicalProcessors(Used). I surely don't claim to fully understand those numbers.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 07:07:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaa-p/13825558#M4856401</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2021-01-21T07:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Are hyperthreaded processors counted for intra-query parallelism?</title>
      <link>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaa-p/13825559#M4856402</link>
      <description>&lt;P&gt;Here is another quote from later on the same page, and it doesn't seem to  have anything to do with licensing;&lt;/P&gt;
&lt;P&gt;"the value of ActiveReq has been greater than, or equal to, the value of NumLogicalProcessorsUsed at any time in the recent past (divide the number of processors by two if the computer is hyperthreaded)"&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 08:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaa-p/13825559#M4856402</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2021-01-21T08:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Are hyperthreaded processors counted for intra-query parallelism?</title>
      <link>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaa-p/13825560#M4856403</link>
      <description>&lt;P&gt;I forgot the Licensing Rule Of Thumb which states "All discussions involving licensing are impossible to understand and should therefore be disregarded" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 08:35:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaa-p/13825560#M4856403</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2021-01-21T08:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Are hyperthreaded processors counted for intra-query parallelism?</title>
      <link>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaa-p/13825561#M4856404</link>
      <description>&lt;P&gt;So what does sa_cpu_topology() reveal - thread values &amp;gt; 0 in your case?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 11:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaa-p/13825561#M4856404</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2021-01-21T11:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Are hyperthreaded processors counted for intra-query parallelism?</title>
      <link>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaa-p/13825562#M4856405</link>
      <description>&lt;PRE&gt;     os_id     socket       core     thread       apic      group  numa_node online in_use user_selected 
---------- ---------- ---------- ---------- ---------- ---------- ---------- ------ ------ ------------- 
         0          0          0          0          0          0          0      1      1             1 
         1          0          0          1          1          0          0      1      1             1 
         2          0          1          0          2          0          0      1      1             1 
         3          0          1          1          3          0          0      1      1             1 
         4          0          2          0          4          0          0      1      1             1 
         5          0          2          1          5          0          0      1      1             1 
         6          0          3          0          6          0          0      1      1             1 
         7          0          3          1          7          0          0      1      1             1 
&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jan 2021 15:37:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaa-p/13825562#M4856405</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2021-01-21T15:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Are hyperthreaded processors counted for intra-query parallelism?</title>
      <link>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaa-p/13825557#M4856400</link>
      <description>&lt;P&gt;We both obviously agree that the doc's statemements on licensing and processors are difficult to understand... That being said, I guess the "not counting" really relates to the fact that &lt;STRONG&gt;a hyperthreading core is counted as one core w.r.t. licensing&lt;/STRONG&gt;, see the &lt;A href="http://dcx.sap.com/index.html#sqla170/en/html/813b2d1c6ce210148bdefc71a0c26bf1.html"&gt;following quote from the "per seat" license type&lt;/A&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;If a core contains multiple threads, all threads of that core might be used.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your sample machine has 4 cores and is licensed to use all 8 hyperthreads on those cores, so it is also allowed to use all 8 hyperthreads for 8 parallel operators. Since only four cores are officially licensed, you can still use 8 threads, so in my understanding, the phrase should be understood as "the (additional) hyperthreads are not counted".&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;From a practical point of view: As your machine does use 8 logical processors according to the server properties, why should it not use all of those for parallel tasks (unless you want to limit the max_query_tasks option)...&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 03:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/are-hyperthreaded-processors-counted-for-intra-query-parallelism/qaa-p/13825557#M4856400</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2021-01-22T03:13:40Z</dc:date>
    </item>
  </channel>
</rss>

