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

LNet: add the option to reset statistics to lnetctl utility

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • None
    • None
    • 9223372036854775807

    Description

      Currently the only command option for "lnetctl stats" is "show". At least when debugging connectivity issues, it would be useful to be able to clean up the stats by executing, for instance, "lnetctl stats reset", as it would be easier to detect the changes in stats from the clean state rather than on top of historical values. 

      Attachments

        Activity

          [LU-13299] LNet: add the option to reset statistics to lnetctl utility
          pjones Peter Jones added a comment -

          Landed for 2.15

          pjones Peter Jones added a comment - Landed for 2.15

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/44150/
          Subject: LU-13299 lnet: add "stats reset" to lnetctl
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: db0b09018e77114667a1b0fbd6c04194f56cb492

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/44150/ Subject: LU-13299 lnet: add "stats reset" to lnetctl Project: fs/lustre-release Branch: master Current Patch Set: Commit: db0b09018e77114667a1b0fbd6c04194f56cb492

          We should also add a patch to reset the individual network and peer statistics. It would be good to roll that into the net/peer commands. Something like:

          lnetctl peer reset-stats 
          lnetctl peer reset-stats --nid <>

          this will allow us to reset all the net/peers or only the specified nid.

           

          ashehata Amir Shehata (Inactive) added a comment - We should also add a patch to reset the individual network and peer statistics. It would be good to roll that into the net/peer commands. Something like: lnetctl peer reset-stats lnetctl peer reset-stats --nid <> this will allow us to reset all the net/peers or only the specified nid.  

          Cyril Bordage (cbordage@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/44150
          Subject: LU-13299 lnet: add "stats reset" to lnetctl
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 04313fd1b846f8654f3a56eef7727750193be8a1

          gerrit Gerrit Updater added a comment - Cyril Bordage (cbordage@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/44150 Subject: LU-13299 lnet: add "stats reset" to lnetctl Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 04313fd1b846f8654f3a56eef7727750193be8a1
          pjones Peter Jones added a comment -

          Cyril

          Could you please look into this request

          Thanks

          Peter

          pjones Peter Jones added a comment - Cyril Could you please look into this request Thanks Peter

          People

            cbordage Cyril Bordage
            ssmirnov Serguei Smirnov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: