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

Track creates in MDC and llite stats

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.14.0, Lustre 2.12.5
    • Lustre 2.10.4
    • RHEL 7.5
    • 3
    • 9223372036854775807

    Description

      File creates are not tracked in llite stats. Andreas mentioned this in LU-8150. I can submit a patch to change it, but wasn't sure whether it was just overlooked or if there was a reason it wasn't done.

      bash-4.2$ cat /proc/fs/lustre/llite/lquake-ffff883a74d0a000/stats
      snapshot_time 1530651162.784915742 secs.nsecs
      bash-4.2$ touch /p/lquake/faaland1/touched
      bash-4.2$ echo $?
      0
      bash-4.2$ cat /proc/fs/lustre/llite/lquake-ffff883a74d0a000/stats
      snapshot_time 1530651198.529596878 secs.nsecs
      open 1 samples [regs]
      close 1 samples [regs]
      readdir 2 samples [regs]
      setattr 1 samples [regs]
      getattr 3 samples [regs]
      alloc_inode 1 samples [regs]
      getxattr 7 samples [regs]
      getxattr_hits 6 samples [regs]
      removexattr 1 samples [regs]
      inode_permission 6 samples [regs]
      bash-4.2$ grep -e creat -e mknod /proc/fs/lustre/llite/lquake-ffff883a74d0a000/stats

      Attachments

        Activity

          [LU-11114] Track creates in MDC and llite stats

          Olaf Faaland-LLNL (faaland1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/38158
          Subject: LU-11114 llite: Update mdc and lite stats on open|creat
          Project: fs/lustre-release
          Branch: b2_12
          Current Patch Set: 1
          Commit: 1da087645f0127a5e6e911991dbb5aa84e3b8d2e

          gerrit Gerrit Updater added a comment - Olaf Faaland-LLNL (faaland1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/38158 Subject: LU-11114 llite: Update mdc and lite stats on open|creat Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: 1da087645f0127a5e6e911991dbb5aa84e3b8d2e
          ofaaland Olaf Faaland added a comment -

          Hi Peter, yes, I think it is worth considering.  Thanks.

           

          ofaaland Olaf Faaland added a comment - Hi Peter, yes, I think it is worth considering.  Thanks.  
          pjones Peter Jones added a comment -

          Landed for 2.14. ofaaland should we consider this for a future 2.12.x release too?

          pjones Peter Jones added a comment - Landed for 2.14. ofaaland should we consider this for a future 2.12.x release too?

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36948/
          Subject: LU-11114 llite: Update mdc and lite stats on open|creat
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 4b8518ee4fa542f45fcdaeaec580d858dfcaf137

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36948/ Subject: LU-11114 llite: Update mdc and lite stats on open|creat Project: fs/lustre-release Branch: master Current Patch Set: Commit: 4b8518ee4fa542f45fcdaeaec580d858dfcaf137

          Olaf Faaland-LLNL (faaland1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/36948
          Subject: LU-11114 llite: Update mdc and lite stats on open|creat
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 0fa270dbe557bd80e374514b3073163bcdaa2d87

          gerrit Gerrit Updater added a comment - Olaf Faaland-LLNL (faaland1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/36948 Subject: LU-11114 llite: Update mdc and lite stats on open|creat Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 0fa270dbe557bd80e374514b3073163bcdaa2d87

          Hi, checking on this again. I'm not asking for a patch, I'm asking whether there's a technical reason this is problematic to do.

          ofaaland Olaf Faaland added a comment - Hi, checking on this again. I'm not asking for a patch, I'm asking whether there's a technical reason this is problematic to do.
          pjones Peter Jones added a comment -

          Emoly

          Could you please look into this request?

          Thanks

          Peter

          pjones Peter Jones added a comment - Emoly Could you please look into this request? Thanks Peter
          ofaaland Olaf Faaland added a comment -

          Also, not tracked in MDC and it seems to me like they should be, so you can see which MDTs your creates are occurring on. But maybe there's a reason not to.

          ofaaland Olaf Faaland added a comment - Also, not tracked in MDC and it seems to me like they should be, so you can see which MDTs your creates are occurring on. But maybe there's a reason not to.

          People

            emoly.liu Emoly Liu
            ofaaland Olaf Faaland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: