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

A typo in udmu_objs_count_estimate() causing overly conservative os_ffree values

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.4.1, Lustre 2.5.0
    • Lustre 2.4.0
    • None
    • 3
    • 7336

    Description

      In this hunk from udmu_objs_count_estimate():

              est_refdblocks = (refdbytes >> SPA_MAXBLOCKSHIFT) +
                      (OSD_DNODE_EST_COUNT << OSD_DNODE_EST_BLKSHIFT);
              est_usedobjs   = usedobjs + OSD_DNODE_EST_COUNT;
      

      OSD_DNODE_EST_COUNT should be right-shifted, not left-shifted. This typo leads to a larger-than-actual dnode size estimation, which further causes overly conservative os_ffree (number of available objects) values, especially for MDTs.

      Attachments

        Activity

          People

            liwei Li Wei (Inactive)
            liwei Li Wei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: