[LU-13299] LNet: add the option to reset statistics to lnetctl utility Created: 26/Feb/20  Updated: 31/Jul/21  Resolved: 31/Jul/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.15.0

Type: Improvement Priority: Minor
Reporter: Serguei Smirnov Assignee: Cyril Bordage
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
Rank (Obsolete): 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. 



 Comments   
Comment by Peter Jones [ 30/Jun/21 ]

Cyril

Could you please look into this request

Thanks

Peter

Comment by Gerrit Updater [ 06/Jul/21 ]

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

Comment by Amir Shehata (Inactive) [ 26/Jul/21 ]

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.

 

Comment by Gerrit Updater [ 31/Jul/21 ]

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

Comment by Peter Jones [ 31/Jul/21 ]

Landed for 2.15

Generated at Sat Feb 10 03:00:05 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.