Whamcloud - gitweb
LU-14111 obdclass: count eviction per obd_device 28/40528/15
authorAurelien Degremont <degremoa@amazon.com>
Tue, 13 Oct 2020 14:12:23 +0000 (14:12 +0000)
committerOleg Drokin <green@whamcloud.com>
Tue, 14 Feb 2023 06:03:39 +0000 (06:03 +0000)
commit3c69d46e1766480c0ffd1bef840b4e167b4cf88e
treeee136f11c6232078ab795c1ef9f0359bd6d36350
parent511bf2f4ccd1482d6f2380942d43cc3e08b8e25b
LU-14111 obdclass: count eviction per obd_device

Add a new 'obd_eviction_count' counter to obd_device which
is increased every time a client is evicted, which means
every time we call `class_fail_export()`.

Expose this counter through `lctl get_param *.*.eviction_count`
for every target.

Signed-off-by: Aurelien Degremont <degremoa@amazon.com>
Change-Id: I83b691662285cf2cd937187bffa54de6bd1f694c
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/40528
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
lustre/include/lprocfs_status.h
lustre/include/obd.h
lustre/mdt/mdt_lproc.c
lustre/mgs/lproc_mgs.c
lustre/obdclass/genops.c
lustre/obdclass/lprocfs_status_server.c
lustre/ofd/lproc_ofd.c
lustre/tests/recovery-small.sh