Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.7.0
    • None
    • 3
    • 15471

    Description

      The client_obd::cl_default_mds_easize field should be maintained to
      reflect the largest EA size seen by the MDT. The MDC uses
      cl_default_mds_easize to size request buffers appropriately to avoid
      unnecessary memory reallocations. In the current code, the value is
      only updated if client_obd::cl_max_mds_easize is strictly less than
      mdt_body::mbo_max_mdsize. This condition is almost never met, because
      client_obd::cl_max_mds_easize is computed at client mount-time based
      on the number of OSTs in the filesystem, so the MDT won't ever see a
      EA size larger than that.

      As a result, client_obd::cl_default_mds_easize indefinitely retains
      its initial value, which is computed at client mount-time based on
      the filesystem's default stripe width. Any getattr() requests for
      more widely striped files will consequently allocate a request buffer
      that is too small, forcing reallocations on both the client and
      server side. To avoid this, update client_obd::cl_default_mds_easize
      independently of the value of client_obd::cl_max_mds_easize.

      Attachments

        Issue Links

          Activity

            [LU-5549] cl_default_mds_easize not refreshed
            pjones Peter Jones added a comment -

            Landed for 2.7

            pjones Peter Jones added a comment - Landed for 2.7

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/11614/
            Subject: LU-5549 mdc: cl_default_mds_easize not refreshed
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: e709e661395af42471f5ecf3c87f2fa1d3031fbb

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/11614/ Subject: LU-5549 mdc: cl_default_mds_easize not refreshed Project: fs/lustre-release Branch: master Current Patch Set: Commit: e709e661395af42471f5ecf3c87f2fa1d3031fbb

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13112/
            Subject: LU-5549 llite: make default_easize writeable in /proc
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 9d9db87afc80ed3e98e1fc05b3ad97a89ebf577a

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13112/ Subject: LU-5549 llite: make default_easize writeable in /proc Project: fs/lustre-release Branch: master Current Patch Set: Commit: 9d9db87afc80ed3e98e1fc05b3ad97a89ebf577a

            Ned Bass (bass6@llnl.gov) uploaded a new patch: http://review.whamcloud.com/13112
            Subject: LU-5549 llite: make default_easize writeable in /proc
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 047c8acbdbaf60b5513ce1f9bc9d621814780882

            gerrit Gerrit Updater added a comment - Ned Bass (bass6@llnl.gov) uploaded a new patch: http://review.whamcloud.com/13112 Subject: LU-5549 llite: make default_easize writeable in /proc Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 047c8acbdbaf60b5513ce1f9bc9d621814780882
            laisiyao Lai Siyao added a comment -

            Test relaunch is not authorised to all now, so I've asked Yujian to relaunch it. I'll watch its status.

            laisiyao Lai Siyao added a comment - Test relaunch is not authorised to all now, so I've asked Yujian to relaunch it. I'll watch its status.

            Did http://review.whamcloud.com/#/c/11614 hit a known issue in testing? Does it just need testing relaunched?

            morrone Christopher Morrone (Inactive) added a comment - Did http://review.whamcloud.com/#/c/11614 hit a known issue in testing? Does it just need testing relaunched?
            pjones Peter Jones added a comment -

            Lai

            Could you please take care of this patch?

            Thanks

            Peter

            pjones Peter Jones added a comment - Lai Could you please take care of this patch? Thanks Peter
            nedbass Ned Bass (Inactive) added a comment - Please see http://review.whamcloud.com/#/c/11614/

            People

              laisiyao Lai Siyao
              nedbass Ned Bass (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: