git: 7110784928f9 - stable/13 - vfs: count how many times vnlru got woken up due to vnode shortage
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 Oct 2023 12:08:59 UTC
The branch stable/13 has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=7110784928f9fc9dccbf9315230eabbd57a24702
commit 7110784928f9fc9dccbf9315230eabbd57a24702
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-09-16 17:26:39 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2023-10-04 12:05:58 +0000
vfs: count how many times vnlru got woken up due to vnode shortage
(cherry picked from commit 9080190b970c7026695571f90b95fdcf7056ec67)
---
sys/kern/vfs_subr.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 37554858173f..7d8e6c6c6cc5 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1494,6 +1494,10 @@ vnlru_recalc(void)
*/
static struct proc *vnlruproc;
static int vnlruproc_sig;
+static u_long vnlruproc_kicks;
+
+SYSCTL_ULONG(_vfs_vnode_vnlru, OID_AUTO, kicks, CTLFLAG_RD, &vnlruproc_kicks, 0,
+ "Number of times vnlru got woken up due to vnode shortage");
/*
* The main freevnodes counter is only updated when a counter local to CPU
@@ -1588,6 +1592,7 @@ vnlru_kick_locked(void)
mtx_assert(&vnode_list_mtx, MA_OWNED);
if (vnlruproc_sig == 0) {
vnlruproc_sig = 1;
+ vnlruproc_kicks++;
wakeup(vnlruproc);
}
}