[LU-11367] integrate LSOM with lfs find Created: 12/Sep/18  Updated: 28/Jul/20  Resolved: 20/Sep/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.12.0
Fix Version/s: Lustre 2.13.0, Lustre 2.12.4

Type: Improvement Priority: Major
Reporter: Andreas Dilger Assignee: Qian Yingjin
Resolution: Fixed Votes: 0
Labels: LSOM, performance

Issue Links:
Related
is related to LU-12253 lfs: double free or corruption (!prev) Resolved
is related to LU-9538 Size on MDT with guarantee of eventua... Resolved
is related to LU-13826 fix compatibility for LL_IOC_MDC_GETINFO Resolved
is related to LU-12337 SoM in DoM needs to work transparently Resolved
is related to LU-12026 verify that MDS stores atime/mtime/ct... Resolved
is related to LU-11554 Make stat() work with LSOM Resolved
is related to LU-11971 Send file creation time to clients Resolved
is related to LU-12332 Add a liblustreapi call for IOC_MDC_G... Resolved
Rank (Obsolete): 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.



 Comments   
Comment by Gerrit Updater [ 01/Nov/18 ]

Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/33545
Subject: LU-11367 som: integrate LSOM with lfs find
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 004e5e413f380f5d82ed4091bbf2843e19791704

Comment by Gerrit Updater [ 30/Apr/19 ]

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

Comment by Peter Jones [ 30/Apr/19 ]

Landed for 2.13

Comment by Gerrit Updater [ 30/Apr/19 ]

Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34780
Subject: Revert "LU-11367 som: integrate LSOM with lfs find"
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: c2f956e4a68022d82881a86605d9d84058436c6a

Comment by Gerrit Updater [ 30/Apr/19 ]

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

Comment by Oleg Drokin [ 30/Apr/19 ]

reopening because of revert.

Comment by Andreas Dilger [ 06/May/19 ]

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

Comment by Gerrit Updater [ 11/Jun/19 ]

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

Comment by Nathan Rutman [ 29/Aug/19 ]

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.

Comment by Andreas Dilger [ 29/Aug/19 ]

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.

Comment by Gerrit Updater [ 20/Sep/19 ]

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

Comment by Peter Jones [ 20/Sep/19 ]

Landed for 2.13

Comment by Gerrit Updater [ 22/Oct/19 ]

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

Comment by Gerrit Updater [ 21/Nov/19 ]

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

Comment by John Hammond [ 30/Jun/20 ]

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

Generated at Sat Feb 10 02:43:15 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.