<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:33:20 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-10245] lnetctl --cpt does not assosiate cpt properly</title>
                <link>https://jira.whamcloud.com/browse/LU-10245</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;[root@fre805 tests]# cat  /sys/devices/system/cpu/online
0-1

[root@fre805 tests]# lnetctl net show --verbose
net:
    - net type: lo
      local NI(s):
        - nid: 0@lo
          status: up
          statistics:
              send_count: 0
              recv_count: 0
              drop_count: 0
          tunables:
              peer_timeout: 0
              peer_credits: 0
              peer_buffer_credits: 0
              credits: 0
          lnd tunables:
          tcp bonding: 0
          dev cpt: 0
          CPT: &lt;span class=&quot;code-quote&quot;&gt;&quot;[0]&quot;&lt;/span&gt;
    - net type: tcp
      local NI(s):
        - nid: 192.168.108.5@tcp
          status: up
          interfaces:
              0: eth0
          statistics:
              send_count: 276723
              recv_count: 316655
              drop_count: 0
          tunables:
              peer_timeout: 180
              peer_credits: 8
              peer_buffer_credits: 0
              credits: 256
          lnd tunables:
          tcp bonding: 0
          dev cpt: -1
          CPT: &lt;span class=&quot;code-quote&quot;&gt;&quot;[0]&quot;&lt;/span&gt;
        - nid: 192.168.118.5@tcp
          status: up
          interfaces:
              0: eth1
          statistics:
              send_count: 0
              recv_count: 0
              drop_count: 0
          tunables:
              peer_timeout: 180
              peer_credits: 8
              peer_buffer_credits: 0
              credits: 256
          lnd tunables:
          tcp bonding: 0
          dev cpt: -1
          CPT: &lt;span class=&quot;code-quote&quot;&gt;&quot;[0]&quot;&lt;/span&gt;
[root@fre805 tests]# 

[root@fre805 tests]# lnetctl net add --net tcp --&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; eth2 --cpt [0, 1]

[root@fre805 tests]# lnetctl net show --verbose
net:
    - net type: lo
      local NI(s):
        - nid: 0@lo
          status: up
          statistics:
              send_count: 0
              recv_count: 0
              drop_count: 0
          tunables:
              peer_timeout: 0
              peer_credits: 0
              peer_buffer_credits: 0
              credits: 0
          lnd tunables:
          tcp bonding: 0
          dev cpt: 0
          CPT: &lt;span class=&quot;code-quote&quot;&gt;&quot;[0]&quot;&lt;/span&gt;
    - net type: tcp
      local NI(s):
        - nid: 192.168.108.5@tcp
          status: up
          interfaces:
              0: eth0
          statistics:
              send_count: 276843
              recv_count: 316775
              drop_count: 0
          tunables:
              peer_timeout: 180
              peer_credits: 8
              peer_buffer_credits: 0
              credits: 256
          lnd tunables:
          tcp bonding: 0
          dev cpt: -1
          CPT: &lt;span class=&quot;code-quote&quot;&gt;&quot;[0]&quot;&lt;/span&gt;
        - nid: 192.168.118.5@tcp
          status: up
          interfaces:
              0: eth1
          statistics:
              send_count: 0
              recv_count: 0
              drop_count: 0
          tunables:
              peer_timeout: 180
              peer_credits: 8
              peer_buffer_credits: 0
              credits: 256
          lnd tunables:
          tcp bonding: 0
          dev cpt: -1
          CPT: &lt;span class=&quot;code-quote&quot;&gt;&quot;[0]&quot;&lt;/span&gt;
        - nid: 192.168.128.5@tcp
          status: up
          interfaces:
              0: eth2
          statistics:
              send_count: 0
              recv_count: 0
              drop_count: 0
          tunables:
              peer_timeout: 180
              peer_credits: 8
              peer_buffer_credits: 0
              credits: 256
          lnd tunables:
          tcp bonding: 0
          dev cpt: -1
          CPT: &lt;span class=&quot;code-quote&quot;&gt;&quot;[0]&quot;&lt;/span&gt;
[root@fre805 tests]# 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;nid 192.168.128.5@tcp is not associated with CPT &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;&lt;/p&gt;
</description>
                <environment></environment>
        <key id="49335">LU-10245</key>
            <summary>lnetctl --cpt does not assosiate cpt properly</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="6">Not a Bug</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="egryaznova">Elena Gryaznova</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 Nov 2017 15:04:04 +0000</created>
                <updated>Fri, 1 Dec 2017 13:42:28 +0000</updated>
                            <resolved>Fri, 1 Dec 2017 13:42:28 +0000</resolved>
                                    <version>Lustre 2.10.1</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="213826" author="ashehata" created="Wed, 15 Nov 2017 18:32:32 +0000"  >&lt;p&gt;Take a look at your libcfs cpu partitions. Just because you have 2 CPUs doesn&apos;t directly mean that you&apos;ll endup with two CPTs. Both CPUs can be part of the same NUMA and by default libcfs cpu partitions will be set to &quot;N&quot;, if you don&apos;t explicitly set it to something else. &quot;N&quot; means to use the NUMA architecture. IE: create a CPT per NUMA node which has at least one CPU attached to it.&lt;/p&gt;

&lt;p&gt;From the output you shared above, I think that&apos;s the issue, since when you configure without explicitly specifying a cpt option, the network gets attached to CPT 0, which just means that you only have one CPT partition in your system. &lt;/p&gt;

&lt;p&gt;to get your test to work you might need to add the following line in your lustre.conf:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;options libcfs cpu_pattern=&lt;span class=&quot;code-quote&quot;&gt;&quot;0[0], 1[1]&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;That&apos;ll create two CPTs. CPT 0 will have CPU 0 and CPT 1 will have CPU 1.&lt;/p&gt;

&lt;p&gt;The lnetctl syntax you used should then work.&lt;/p&gt;</comment>
                            <comment id="215121" author="egryaznova" created="Fri, 1 Dec 2017 12:20:07 +0000"  >&lt;p&gt;Amir,&lt;br/&gt;
thank you.&lt;br/&gt;
Yes, this works if the following is added to lustre.conf :&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;options libcfs cpu_pattern=&lt;span class=&quot;code-quote&quot;&gt;&quot;0[0] 1[1]&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="215122" author="egryaznova" created="Fri, 1 Dec 2017 12:20:37 +0000"  >&lt;p&gt;Ticket can be closed.&lt;/p&gt;</comment>
                            <comment id="215132" author="pjones" created="Fri, 1 Dec 2017 13:42:28 +0000"  >&lt;p&gt;thanks Elena&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzznwv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>