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

Add option to lctl set_param for setting parameters in parallel

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • None

    Description

      lctl set_param should have an option to set a parameter across multiple matched files in parallel. For instance, if you execute this lctl set_param command:

      lctl set_param [parallel-option] ldlm.namespaces.*osc*.lru_size=clear
      

      it should write "clear" to the files matching the given parameter pattern in parallel.

      This enhancement is required to speed up clearing of Lustre caches. When there are many OSTs, executing

      lctl set_param ldlm.namespaces.*.lru_size=clear
      

      takes a long time, and there is no reason that the lru_size files can't be written to in parallel. Then the work can be done on each OST in parallel.

      For example, with 16 OSTs, it takes 5.4 seconds to clear caches across all namespaces. This could be sped up by parallelizing the write to lru_size across the namespaces.

      If this enhancement is added, then LU-3970 can also be resolved.

      Attachments

        1. test.sh
          6 kB
        2. test-output.txt
          7 kB

        Issue Links

          Activity

            People

              haasken Ryan Haasken
              haasken Ryan Haasken
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: