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

improve mount time on huge ldiskfs filesystem

Details

    • 9223372036854775807

    Description

      during Lustre server startup few small files need to be updated (e.g. config backup).
      at this point buddy/bitmap cache is empty but mballoc wants to find a big chunk of free space for group preallocation and reads bitmaps one by one.
      sometimes this can take a very long time.
      one possisble workaround is to disable preallocation during mount.
      a long term plan is to limit scanning and prefetch bitmaps, but this needs more efforts and will be tracked separately (LU-12970)

      Attachments

        Issue Links

          Activity

            [LU-12988] improve mount time on huge ldiskfs filesystem

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37619/
            Subject: LU-12988 ldiskfs: revert prefetch patch
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 2c5700fcb4cb15056dc901fedf97001d9b9fd845

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37619/ Subject: LU-12988 ldiskfs: revert prefetch patch Project: fs/lustre-release Branch: master Current Patch Set: Commit: 2c5700fcb4cb15056dc901fedf97001d9b9fd845

            Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37619
            Subject: LU-12988 ldiskfs: revert prefetch patch
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 353e0756371f92a7f0f2da80b2a803b278126bec

            gerrit Gerrit Updater added a comment - Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37619 Subject: LU-12988 ldiskfs: revert prefetch patch Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 353e0756371f92a7f0f2da80b2a803b278126bec

            Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37540
            Subject: LU-12988 ldiskfs: mballoc to prefetch groups
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set: 1
            Commit: d5735e733c84c18b632e26f482bb2663d34f2851

            gerrit Gerrit Updater added a comment - Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37540 Subject: LU-12988 ldiskfs: mballoc to prefetch groups Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: d5735e733c84c18b632e26f482bb2663d34f2851

            Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37539
            Subject: LU-12988 ldiskfs: skip non-loaded groups at cr=0/1
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set: 1
            Commit: a3febe05e566ab9dc81312fa441e49cddbd20eec

            gerrit Gerrit Updater added a comment - Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37539 Subject: LU-12988 ldiskfs: skip non-loaded groups at cr=0/1 Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: a3febe05e566ab9dc81312fa441e49cddbd20eec
            pjones Peter Jones added a comment -

            Landed for 2.14

            pjones Peter Jones added a comment - Landed for 2.14

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36893/
            Subject: LU-12988 ldiskfs: mballoc to prefetch groups
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 05f31782be20fc4c46082dba02c10bcea59539e3

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36893/ Subject: LU-12988 ldiskfs: mballoc to prefetch groups Project: fs/lustre-release Branch: master Current Patch Set: Commit: 05f31782be20fc4c46082dba02c10bcea59539e3

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36891/
            Subject: LU-12988 ldiskfs: skip non-loaded groups at cr=0/1
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 6a7a700a1490dfde6b60c2fb36df92a052059866

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36891/ Subject: LU-12988 ldiskfs: skip non-loaded groups at cr=0/1 Project: fs/lustre-release Branch: master Current Patch Set: Commit: 6a7a700a1490dfde6b60c2fb36df92a052059866

            hmm, I did remounted few times.. newly-created filesystem shouldn't demontrate any degradation w/o the patches even as a perfect group would be found immediately?

            bzzz Alex Zhuravlev added a comment - hmm, I did remounted few times.. newly-created filesystem shouldn't demontrate any degradation w/o the patches even as a perfect group would be found immediately?

            bzzz I hope I am wrong...

            I also get such optimistic results with my "adjusting table" script, but then I had realized that only FIRST MOUNT is slow. I recreated the partition and when mount became slow again even with my optimizations. bzzz, could you check your performance improvement on the fresh-created filesystem?

             

            artem_blagodarenko Artem Blagodarenko (Inactive) added a comment - bzzz I hope I am wrong... I also get such optimistic results with my "adjusting table" script, but then I had realized that only FIRST MOUNT is slow. I recreated the partition and when mount became slow again even with my optimizations. bzzz , could you check your performance improvement on the fresh-created filesystem?  

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37155/
            Subject: LU-12988 osd: do not use preallocation during mount
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set:
            Commit: 2331cd1fa178b348d8aa048abbb5160ac9353461

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37155/ Subject: LU-12988 osd: do not use preallocation during mount Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: 2331cd1fa178b348d8aa048abbb5160ac9353461

            Do you also have Artem's mballoc patch applied?

            yes, AFAICS. and that didn't help, probably fillness wasn't high enough. I'll check tomorrow.

            bzzz Alex Zhuravlev added a comment - Do you also have Artem's mballoc patch applied? yes, AFAICS. and that didn't help, probably fillness wasn't high enough. I'll check tomorrow.

            People

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

              Dates

                Created:
                Updated:
                Resolved: