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

Auto-tuning conns_per_peer requires an explicitly specified NIC interface (ksocklnd_speed2cpp)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.17.0
    • Lustre 2.16.1
    • None
    • 3
    • 3
    • 9223372036854775807

    Description

      It looks like ksocklnd_speed2cpp will be skipped if NIC interface is not specified,  i.e. we have to specify 

      options lnet networks="tcp0(eth0)" in lustre.conf to enable this conversion  

       

      static int ksocklnd_ni_get_eth_intf_speed(struct lnet_ni *ni)
      {
              struct net_device *dev;
              int intf_idx = -1;
              int ret = -1;
              DECLARE_CONST_IN_IFADDR(ifa);
              /* check if ni has interface assigned */
              if (!ni->ni_net_ns || !ni->ni_interface) {
                      return 0;   <---- otherwise it will skip here.
              }
          ....
      

       

      Ideally it may just do conversion in all cases, i.e. even without the NIC interface specify?

      Attachments

        Activity

          People

            ddiwang Di Wang
            ddiwang Di Wang
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: