Whamcloud - gitweb
LU-14139 statahead: add total hit/miss count stats 09/46309/7
authorQian Yingjin <qian@ddn.com>
Wed, 26 Jan 2022 02:50:37 +0000 (21:50 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 19 Aug 2022 04:32:31 +0000 (04:32 +0000)
commitb9167201a00e38ce8f63d3013ab89571c3492f52
tree883ff42f31599f15ac59861ff6460ab86a6eafd0
parent509d7305ce8a01351cb77c26aaad078edca0e09c
LU-14139 statahead: add total hit/miss count stats

In this patch, it adds total hit/miss count stats for statahead.
These statistics are updated when the statahead thread terminated.

This patch also adds support to clear all statahead stats:
$LCTL set_param llite.*.statahead_stats=0

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I8b11d26385234305631c232a15711224dcfb0668
Reviewed-on: https://review.whamcloud.com/46309
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/lproc_llite.c
lustre/llite/statahead.c
lustre/tests/sanity.sh