Whamcloud - gitweb
LU-16228 utils: add lljobstat util
authorLei Feng <flei@whamcloud.com>
Mon, 17 Oct 2022 05:36:14 +0000 (13:36 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 21 Jan 2023 02:50:48 +0000 (02:50 +0000)
commite9f98228224edcf06095ae733361ab6560950fdb
tree76945abedb05887d62cbd8a0b61f8659c61873a8
parent1219390157aeaa86c501406ffb30a0fa3ad35694
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>
lustre.spec.in
lustre/doc/Makefile.am
lustre/doc/lljobstat.8 [new file with mode: 0644]
lustre/mdt/mdt_lproc.c
lustre/tests/sanity.sh
lustre/tests/test-framework.sh
lustre/utils/Makefile.am
lustre/utils/lljobstat [new file with mode: 0755]