Details

    • 9223372036854775807

    Description

      The LSOM functionality should be integrated with lfs find so that it is possible to use this functionality directly on the client. The MDS can fill in the mbo_size and mbo_blocks fields from the LSOM xattr, if the actual size/blocks are not available, and then set new OBD_MD_FLLSIZE and OBD_MD_FLLBLOCKS flags in the reply so that the client knows these fields are valid.

      The lfs find command can add a "--lazy" option (or maybe "--lsize" and "--lblocks"?) to allow the use of LSOM data from the MDS. We might consider to also use this for "--size" when it is specified in some large range, like "--size -1G" or "--blocks +1M" since we don't need accurate sizes to match those requests.  That could probably be done as a separate patch after the initial functionality is implemented and we have some idea how well LSOM is keeping the size uptodate.

      Please include updates to the command usage and man page.

      Attachments

        Issue Links

          Activity

            [LU-11367] integrate LSOM with lfs find

            Renaming ioctls in this way is a bad idea and will only cause more problems than it fixes. Please do not do this.

            jhammond John Hammond added a comment - Renaming ioctls in this way is a bad idea and will only cause more problems than it fixes. Please do not do this.

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36553/
            Subject: LU-11367 som: integrate LSOM with lfs find
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set:
            Commit: d55982d8422abada4e9f23856e18d20771f70897

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36553/ Subject: LU-11367 som: integrate LSOM with lfs find Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: d55982d8422abada4e9f23856e18d20771f70897

            Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36553
            Subject: LU-11367 som: integrate LSOM with lfs find
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set: 1
            Commit: 982f676adb37f77e4dcf067684753ef88a9aab76

            gerrit Gerrit Updater added a comment - Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36553 Subject: LU-11367 som: integrate LSOM with lfs find Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: 982f676adb37f77e4dcf067684753ef88a9aab76
            pjones Peter Jones added a comment -

            Landed for 2.13

            pjones Peter Jones added a comment - Landed for 2.13

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35167/
            Subject: LU-11367 som: integrate LSOM with lfs find
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 11aa7f8704c490b011f60f234c3ac9929ce76948

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35167/ Subject: LU-11367 som: integrate LSOM with lfs find Project: fs/lustre-release Branch: master Current Patch Set: Commit: 11aa7f8704c490b011f60f234c3ac9929ce76948

            It would be useful, but not required before the patch is landed, to run a performance comparison of "lfs find $MOUNT --lazy -size +N" with "find $MOUNT -size +N", clearing the cache before the two runs, especially if the OSTs are disk based and the MDT is flash based (or cached in RAM). That would be useful to include in the commit message (if ready in time), and for presentations about this feature.

            adilger Andreas Dilger added a comment - It would be useful, but not required before the patch is landed, to run a performance comparison of " lfs find $MOUNT --lazy -size +N " with " find $MOUNT -size +N ", clearing the cache before the two runs, especially if the OSTs are disk based and the MDT is flash based (or cached in RAM). That would be useful to include in the commit message (if ready in time), and for presentations about this feature.

            A related ticket added llapi accessor functions for lum components, but I can't seem to find it now - if someone knows, please add an issue link.

            nrutman Nathan Rutman added a comment - A related ticket added llapi accessor functions for lum components, but I can't seem to find it now - if someone knows, please add an issue link.

            Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35167
            Subject: LU-11367 som: integrate LSOM with lfs find
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: f05a7569e705abd6b3d9f458ae3a7c002c87248a

            gerrit Gerrit Updater added a comment - Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35167 Subject: LU-11367 som: integrate LSOM with lfs find Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: f05a7569e705abd6b3d9f458ae3a7c002c87248a

            We need a new version of patch https://review.whamcloud.com/33545 pushed with the fix for LU-12253.

            adilger Andreas Dilger added a comment - We need a new version of patch https://review.whamcloud.com/33545 pushed with the fix for LU-12253 .
            green Oleg Drokin added a comment -

            reopening because of revert.

            green Oleg Drokin added a comment - reopening because of revert.

            People

              qian_wc Qian Yingjin
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: