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

lctl pool_add is slow when using individual OST

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Using lctl pool_add FS OST0 OST1... is way slower than using an hostlist expression like OST[0-7], see an example below:

      [root@localhost ~]# time lctl pool_add fs.pool_test fs-OST[0-7]
      OST fs-OST0000_UUID added to pool fs.pool_test
      OST fs-OST0001_UUID added to pool fs.pool_test
      OST fs-OST0002_UUID added to pool fs.pool_test
      OST fs-OST0003_UUID added to pool fs.pool_test
      OST fs-OST0004_UUID added to pool fs.pool_test
      OST fs-OST0005_UUID added to pool fs.pool_test
      OST fs-OST0006_UUID added to pool fs.pool_test
      OST fs-OST0007_UUID added to pool fs.pool_test
      
      real    0m9.008s
      user    0m0.000s
      sys     0m0.007s
      [root@localhost ~]# time lctl pool_add fs.pool_test OST0000 OST0001 OST0002 OST0003 OST0004 OST0005 OST0006 OST0007
      OST fs-OST0000_UUID added to pool fs.pool_test
      OST fs-OST0001_UUID added to pool fs.pool_test
      OST fs-OST0002_UUID added to pool fs.pool_test
      OST fs-OST0003_UUID added to pool fs.pool_test
      OST fs-OST0004_UUID added to pool fs.pool_test
      OST fs-OST0005_UUID added to pool fs.pool_test
      OST fs-OST0006_UUID added to pool fs.pool_test
      OST fs-OST0007_UUID added to pool fs.pool_test
      
      real    1m7.024s
      user    0m0.004s
      sys     0m0.014s
      

      One could expect that both command to have the same runtime

      Attachments

        Activity

          [LU-17182] lctl pool_add is slow when using individual OST
          adilger Andreas Dilger made changes -
          Link New: This issue is related to EX-9008 [ EX-9008 ]
          pjones Peter Jones made changes -
          Fix Version/s New: Lustre 2.16.0 [ 15190 ]
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          pjones Peter Jones made changes -
          Link Original: This issue is related to JFC-21 [ JFC-21 ]
          flei Feng Lei made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          pjones Peter Jones made changes -
          Assignee Original: WC Triage [ wc-triage ] New: Feng Lei [ flei ]
          pjones Peter Jones made changes -
          Link New: This issue is related to JFC-21 [ JFC-21 ]
          joe.grund Joe Grund made changes -
          Description Original: Using {{lctl pool_add FS OST0 OST1...}} is way slower than using an hostlist expression like {{{}OST[0-7]{}}}, see an example below:
          {code:java}
          [root@localhost ~]# time lctl pool_add fs.pool_test fs-OST[0-7]
          OST fs-OST0000_UUID added to pool fs.pool_test
          OST fs-OST0001_UUID added to pool fs.pool_test
          OST fs-OST0002_UUID added to pool fs.pool_test
          OST fs-OST0003_UUID added to pool fs.pool_test
          OST fs-OST0004_UUID added to pool fs.pool_test
          OST fs-OST0005_UUID added to pool fs.pool_test
          OST fs-OST0006_UUID added to pool fs.pool_test
          OST fs-OST0007_UUID added to pool fs.pool_test

          real 0m9.008s
          user 0m0.000s
          sys 0m0.007s
          [root@localhost ~]# time lctl pool_add fs.pool_test OST0000 OST0001 OST0002 OST0003 OST0004 OST0005 OST0006 OST0007
          OST fs-OST0000_UUID added to pool fs.pool_test
          OST fs-OST0001_UUID added to pool fs.pool_test
          OST fs-OST0002_UUID added to pool fs.pool_test
          OST fs-OST0003_UUID added to pool fs.pool_test
          OST fs-OST0004_UUID added to pool fs.pool_test
          OST fs-OST0005_UUID added to pool fs.pool_test
          OST fs-OST0006_UUID added to pool fs.pool_test
          OST fs-OST0007_UUID added to pool fs.pool_test

          real 1m7.024s
          user 0m0.004s
          sys 0m0.014s
          {code}
          One coudd expect that both command to have the same runtime
          New: Using {{lctl pool_add FS OST0 OST1...}} is way slower than using an hostlist expression like {{{}OST[0-7]{}}}, see an example below:
          {code:java}
          [root@localhost ~]# time lctl pool_add fs.pool_test fs-OST[0-7]
          OST fs-OST0000_UUID added to pool fs.pool_test
          OST fs-OST0001_UUID added to pool fs.pool_test
          OST fs-OST0002_UUID added to pool fs.pool_test
          OST fs-OST0003_UUID added to pool fs.pool_test
          OST fs-OST0004_UUID added to pool fs.pool_test
          OST fs-OST0005_UUID added to pool fs.pool_test
          OST fs-OST0006_UUID added to pool fs.pool_test
          OST fs-OST0007_UUID added to pool fs.pool_test

          real 0m9.008s
          user 0m0.000s
          sys 0m0.007s
          [root@localhost ~]# time lctl pool_add fs.pool_test OST0000 OST0001 OST0002 OST0003 OST0004 OST0005 OST0006 OST0007
          OST fs-OST0000_UUID added to pool fs.pool_test
          OST fs-OST0001_UUID added to pool fs.pool_test
          OST fs-OST0002_UUID added to pool fs.pool_test
          OST fs-OST0003_UUID added to pool fs.pool_test
          OST fs-OST0004_UUID added to pool fs.pool_test
          OST fs-OST0005_UUID added to pool fs.pool_test
          OST fs-OST0006_UUID added to pool fs.pool_test
          OST fs-OST0007_UUID added to pool fs.pool_test

          real 1m7.024s
          user 0m0.004s
          sys 0m0.014s
          {code}
          One could expect that both command to have the same runtime
          rdruon Raphael Druon created issue -

          People

            flei Feng Lei
            rdruon Raphael Druon
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: