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

refine ldiskfs credits calculation

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • Lustre 2.4.0
    • None
    • None
    • 7755

      credits calculation in ldiskfs-osd should be improved. with declare methods osd is aware of all changes by the time transaction starts (->do_trans_start()). so, osd can track all the declarations and calculate credits using collected information.

      e.g. if we know specific object is to be written few times (llog object) we don't need few credits to modify object's inode,
      1 is enough. or if we know we're going to write N blocks, but the filesystem has less then N groups, then it doesn't make
      sense to reserve more than N credits for group modifications.

      other bits can be improved as well. e.g. when object is being destroyed we're supposed to have corresponding quota blocks allocated and don't need credits to allocate them. we could have a simple bitmap of initialized quota blocks and and do reservation just in few first transactions modifying specific uid/gid/

            bobijam Zhenyu Xu
            pjones Peter Jones
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: