LU-16228 utils: add lljobstat util
lljobstat util read datas from job_stats file(s),
parse, aggregate the data and list top jobs.
For example:
$ ./lljobstats -n 1 -c 3
---
timestamp:
1665984678
top_jobs:
- ll_sa_3508505.0: {ops: 64, ga: 64}
- touch.500: {ops: 6, op: 1, cl: 1, mn: 1, ga: 1, sa: 2}
- bash.0: {ops: 3, ga: 3}
...
Includes part of "LU-16110 lprocfs: make job_stats and
rename_stats valid YAML" to make rename_stats valid
and verify the YAML output.
Includes "LU-16459 tests: fix YAML verification function"
to fix the test case of LU-16110.
Lustre-change: https://review.whamcloud.com/48888
Lustre-commit: TBD (from
08836199bbd26bdc1a800f5710691d9b6723b1eb)
Change-Id: I0c4ac619496c184a5aebbaf8674f5090ab722d72
Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49560
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>