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

take extent tree depth and sb into account for credits calculation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Lustre 2.18.0
    • None
    • None
    • 3
    • 9223372036854775807

      current logic is not correct

                      depth = inode != NULL ? ext_depth(inode) : 0;
                      depth = min(max(depth, 1) + 3, LDISKFS_MAX_EXTENT_DEPTH);
                      credits = depth; 
      

      depth can't grow by 3 in a single transaction.
      rather it should be like:

                      depth = inode != NULL ? ext_depth(inode) : 0;
                      depth = min(max(depth, 1) + 1, LDISKFS_MAX_EXTENT_DEPTH);
                      credits = (depth-1) * 2; 
      

            bzzz Alex Zhuravlev
            bzzz Alex Zhuravlev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: