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

tunable limit for MDT overstripe factor

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • Lustre 2.16.0
    • 3
    • 9223372036854775807

    Description

      The patch https://review.whamcloud.com/35034 "LU-12273 lod: metadata overstriping" allows an MDT to hold more than one stripe of a directory, in order to raise the maximum directory size limit, as well as increase parallelism in directory locking at both the LDLM and OSD level.

      However, this introduces a potential incompatibility with older clients that don't understand overstriped directories. It would be good to add a tunable parameter to limit the usage of this feature. It would be named like "lod.*.max_stripes_per_mdt" (or "mdt_max_overstripe_factor" or similar), and replace most uses of the hard-coded constant LMV_MAX_STRIPES_PER_MDT in the code. On master for 2.16, lod_max_stripes_per_mdt would be initialized to LMV_MAX_STRIPES_PER_MDT=5 (the hard upper limit due to transaction sizes), and if this is backported to older branches for interoperability it would initialized to "1".

      In lod_prep_md_striped_create() if a new directory was requested with stripes_per_mdt > lod_max_stripes_per_mdt, then IMHO it would be better to silently clamp this value to lod_max_stripes_per_mdt to avoid application failure. If lod_max_stripes_per_mdt == 1 then the existing check in lod_mdt_alloc_rr() will strip the LMV_HASH_FLAG_OVERSTRIPED flag from the layout during creation, to maintain compatibility with older clients.

      Attachments

        Issue Links

          Activity

            [LU-17756] tunable limit for MDT overstripe factor
            pjones Peter Jones added a comment -

            Merged for 2.16

            pjones Peter Jones added a comment - Merged for 2.16

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/54945/
            Subject: LU-17756 lod: add tunable lod.*.max_stripes_per_mdt
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 70539f31f95f6116335ed4a4c5a278f436e37d80

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/54945/ Subject: LU-17756 lod: add tunable lod.*.max_stripes_per_mdt Project: fs/lustre-release Branch: master Current Patch Set: Commit: 70539f31f95f6116335ed4a4c5a278f436e37d80

            "Lai Siyao <lai.siyao@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/54945
            Subject: LU-17756 lod: add tunable lod.*.max_stripes_per_mdt
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: e8d4842a6acc5348281ad0e987f6a8a8f3bac186

            gerrit Gerrit Updater added a comment - "Lai Siyao <lai.siyao@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/54945 Subject: LU-17756 lod: add tunable lod.*.max_stripes_per_mdt Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: e8d4842a6acc5348281ad0e987f6a8a8f3bac186

            People

              laisiyao Lai Siyao
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: