diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2023-09-16 17:26:39 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2023-09-16 17:26:39 +0000 |
commit | 9080190b970c7026695571f90b95fdcf7056ec67 (patch) | |
tree | aa4939b72b001830f33e736c63f4de988289b537 /sys/kern/vfs_subr.c | |
parent | 1a18383a52bc373e316d224cef1298debf6f7e25 (diff) | |
download | src-9080190b970c7026695571f90b95fdcf7056ec67.tar.gz src-9080190b970c7026695571f90b95fdcf7056ec67.zip |
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 11cdea5a7dc1..0251525a50c7 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1477,6 +1477,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 @@ -1571,6 +1575,7 @@ vnlru_kick_locked(void) mtx_assert(&vnode_list_mtx, MA_OWNED); if (vnlruproc_sig == 0) { vnlruproc_sig = 1; + vnlruproc_kicks++; wakeup(vnlruproc); } } |