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

client cache open lock after N opens

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • Lustre 2.9.0
    • None
    • cent server/sles client
    • 9223372036854775807

    Description

      listed as minor but when a user does this, we start to get phone calls form other users and then page POC to identify code/user. Workaround is to terminate user job(s).

      Oleg has said that Lustre has an existing feature for a client to acquire open lock but off by default. This to mimic NFS behavior.

      Ideal change would be that we can specify a number of times that a file is opened on single client at which time lock is acquired. (e.g. 10th time)

      Use case is naive user who loop in this way on like 5000+ threads in java:

      do until till the sun turns black()

      { fd = open(*my_thread_ID, O_APPEND) calculate_something_small_but_useful() write(fd, *fortytwo, 42) close(fd }

      Users often don't have complete control over the code they run and as a result may not be able to quickly make even simple changes.

      Attachments

        Issue Links

          Activity

            [LU-10948] client cache open lock after N opens

            Patch https://review.whamcloud.com/32156 "LU-10948 mdt: Always return lookup lock on opens" is not landed yet.

            adilger Andreas Dilger added a comment - Patch https://review.whamcloud.com/32156 " LU-10948 mdt: Always return lookup lock on opens " is not landed yet.

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43907/
            Subject: LU-10948 mdt: New connect flag for non-open-by-fid lock request
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 72c9a6e5fb6e11fca1b1438ac18f58ff7849ed7d

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43907/ Subject: LU-10948 mdt: New connect flag for non-open-by-fid lock request Project: fs/lustre-release Branch: master Current Patch Set: Commit: 72c9a6e5fb6e11fca1b1438ac18f58ff7849ed7d

            Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43907
            Subject: LU-10948 mdt: New connect flag for non-open-by-fid lock request
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: f6acd02aa06420264b83e4ef2d4bf2f0f95794c7

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43907 Subject: LU-10948 mdt: New connect flag for non-open-by-fid lock request Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: f6acd02aa06420264b83e4ef2d4bf2f0f95794c7

            Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43903
            Subject: LU-10948 mdt: New connect flag for non-open-by-fid lock request
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 14edc80c617871e550d41a0f2e0b0f1491e02f37

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43903 Subject: LU-10948 mdt: New connect flag for non-open-by-fid lock request Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 14edc80c617871e550d41a0f2e0b0f1491e02f37

            Can you port #32158 to b2_12? Thanks!

            jaylan Jay Lan (Inactive) added a comment - Can you port #32158 to b2_12? Thanks!

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32158/
            Subject: LU-10948 llite: Introduce inode open heat counter
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 41d99c4902836b7265db946dfa49cf99381f0db4

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32158/ Subject: LU-10948 llite: Introduce inode open heat counter Project: fs/lustre-release Branch: master Current Patch Set: Commit: 41d99c4902836b7265db946dfa49cf99381f0db4

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41091/
            Subject: LU-10948 llite: Revalidate dentries in ll_intent_file_open
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set:
            Commit: 6ad2679352ee9a14eceb8c70b37df084bc07a6f7

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41091/ Subject: LU-10948 llite: Revalidate dentries in ll_intent_file_open Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: 6ad2679352ee9a14eceb8c70b37df084bc07a6f7

            People

              green Oleg Drokin
              Bob.C Bob Ciotti (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated: