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.
            eaujames Etienne Aujames made changes -
            Link New: This issue is related to LU-16463 [ LU-16463 ]
            adilger Andreas Dilger made changes -
            Summary Original: client grab open lock after N opens New: client cache open lock after N opens
            pjones Peter Jones made changes -
            Link Original: This issue is related to EX-4477 [ EX-4477 ]
            pjones Peter Jones made changes -
            Link New: This issue is related to EX-4477 [ EX-4477 ]
            pjones Peter Jones made changes -
            Link Original: This issue is related to EX-4404 [ EX-4404 ]
            pjones Peter Jones made changes -
            Link New: This issue is related to EX-4404 [ EX-4404 ]
            jamesanunez James Nunez (Inactive) made changes -
            Link New: This issue is related to LU-14743 [ LU-14743 ]

            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

            People

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

              Dates

                Created:
                Updated: