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

lctl list_param/get_param '-w' option to dump only tunable/writeable parameters

Details

    • 9223372036854775807

    Description

      For debugging system performance (eg. IO500) it is desirable to have an easy way to collect all of the Lustre tuning parameters for each run. Since "lctl get_param" lists both statistics and tunable parameters, just doing "lctl get_param -R '*'" dumps far too much information to be useful.

      Running "lctl list_param -RF '*' | grep '='" will list all of the writable parameters, but unfortunately many of the statistics files are writable so that the statistics can be reset. Most of the statistics parameters have "stats" in the name. The symlinks from lov/target_obds/ and lmv/target_obds/ to the osc and mdc devices are redundant and should be skipped. There are also a few parameters that are write-only that should be skipped, but there is no easy way to tell this externally.

      Something equivalent to the following command that lists only read+writable parameters, and exclude some, is close to providing the proper list of tunable parameters:

      lctl list_param -RF '*' | grep = | tr -d '=' |
          egrep -v "console|debug_|fail_|force|import|\<nis\>|panic_|peers|sepol|stats|target_obd" |
          sed -e 's/OST[0-9]*/OST*/' -e 's/MDT[0-9]*/MDT*/' -e "s/$(lfs getname  -i)/*/" | sort -u
      

      Having something like "dshbak" or "bash_completion" to collapse common parameters with a '*' would both make the output more compact and easier to read, and make it clear if there are some osc/mdc devices that are tuned differently, whether on purpose or accidentally.

      Attachments

        Issue Links

          Activity

            [LU-14442] lctl list_param/get_param '-w' option to dump only tunable/writeable parameters
            pjones Peter Jones added a comment -

            Merged for 2.17

            pjones Peter Jones added a comment - Merged for 2.17

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/55723/
            Subject: LU-14442 utils: --tunable opt for list/get_param
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 5ed2090176ab0f3ce807fa47d96402d2418eb9b5

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/55723/ Subject: LU-14442 utils: --tunable opt for list/get_param Project: fs/lustre-release Branch: master Current Patch Set: Commit: 5ed2090176ab0f3ce807fa47d96402d2418eb9b5

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/55665/
            Subject: LU-14442 utils: [-r|-w] options for get/list_param
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: ef277f551f9579ad3d75515f6b3bd0e4275285ae

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/55665/ Subject: LU-14442 utils: [-r|-w] options for get/list_param Project: fs/lustre-release Branch: master Current Patch Set: Commit: ef277f551f9579ad3d75515f6b3bd0e4275285ae

            "Frederick Dilger <fdilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/55723
            Subject: LU-14590 utils: --only-tunable opt for list/get_param
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 4182a7116e73d3f9f8d559b9c3373a5e3eaca3e8

            adilger Andreas Dilger added a comment - "Frederick Dilger <fdilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/55723 Subject: LU-14590 utils: --only-tunable opt for list/get_param Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 4182a7116e73d3f9f8d559b9c3373a5e3eaca3e8

            "Frederick Dilger <fdilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/55665
            Subject: LU-14442 utils: [-r|-w] options for get/list_param
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 5b220b72c908c52ce0198756cfb2219548d59134

            gerrit Gerrit Updater added a comment - "Frederick Dilger <fdilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/55665 Subject: LU-14442 utils: [-r|-w] options for get/list_param Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 5b220b72c908c52ce0198756cfb2219548d59134

            People

              fdilger Fred Dilger
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: