Whamcloud - gitweb
LU-16228 utils: add lljobstat util 88/48888/24
authorLei Feng <flei@whamcloud.com>
Mon, 17 Oct 2022 05:36:14 +0000 (13:36 +0800)
committerFeng Lei <flei@whamcloud.com>
Thu, 12 Jan 2023 11:59:05 +0000 (11:59 +0000)
commit08836199bbd26bdc1a800f5710691d9b6723b1eb
tree00140fce4a710b34c2d10d6892224777028487d2
parentcccca4e7d853ac30f8fcd167d875518a59f3f2bb
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}
...

Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial
Change-Id: I0c4ac619496c184a5aebbaf8674f5090ab722d72
lustre.spec.in
lustre/doc/Makefile.am
lustre/doc/lljobstat.8 [new file with mode: 0644]
lustre/tests/sanity.sh
lustre/utils/Makefile.am
lustre/utils/lljobstat [new file with mode: 0755]