[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: |
|
||||
| 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 |
| 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/ |
| Comment by Peter Jones [ 31/Jul/21 ] |
|
Landed for 2.15 |