Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-10309

lnetctl --peer-credits does not set peer_credits properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • Lustre 2.10.1
    • None
    • 3
    • 9223372036854775807

    Description

      [root@fre802 ~]# cat /etc/modprobe.d/lustre.conf 
      options ksocklnd sock_timeout=10 credits=1024 peer_credits=16
      [root@fre802 ~]# 
      
      [root@fre802 ~]# 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: "[0]"
          - net type: tcp
            local NI(s):
              - nid: 192.168.108.2@tcp
                status: up
                statistics:
                    send_count: 0
                    recv_count: 0
                    drop_count: 0
                tunables:
                    peer_timeout: 180
                    peer_credits: 16
                    peer_buffer_credits: 0
                    credits: 1024
                lnd tunables:
                tcp bonding: 0
                dev cpt: -1
                CPT: "[0]"
      [root@fre802 ~]#
      
      [root@fre802 ~]# lnetctl net add --net tcp1 --if eth1 --peer-credits=8 --credits=512
      
      [root@fre802 ~]# 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: "[0]"
          - net type: tcp
            local NI(s):
              - nid: 192.168.108.2@tcp
                status: up
                statistics:
                    send_count: 0
                    recv_count: 0
                    drop_count: 0
                tunables:
                    peer_timeout: 180
                    peer_credits: 16
                    peer_buffer_credits: 0
                    credits: 1024
                lnd tunables:
                tcp bonding: 0
                dev cpt: -1
                CPT: "[0]"
          - net type: tcp1
            local NI(s):
              - nid: 192.168.118.2@tcp1
                status: up
                interfaces:
                    0: eth1
                statistics:
                    send_count: 0
                    recv_count: 0
                    drop_count: 0
                tunables:
                    peer_timeout: 180
                    peer_credits: 16
                    peer_buffer_credits: 0
                    credits: 512
                lnd tunables:
                tcp bonding: 0
                dev cpt: -1
                CPT: "[0]"
      [root@fre802 ~]#
      

      peer_credits is set to 16 instead of 8 for nid: 192.168.118.2@tcp1

      Attachments

        Issue Links

          Activity

            People

              ashehata Amir Shehata (Inactive)
              egryaznova Elena Gryaznova
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: