Date: Tue, 15 Mar 2022 21:15:33 GMT From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: fa86eac8189f - stable/13 - cache: hide hash stats behind DEBUG_CACHE Message-ID: <202203152115.22FLFXMa018583@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=fa86eac8189f6d14da8db52ff21a55139cef231b commit fa86eac8189f6d14da8db52ff21a55139cef231b Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-03-03 17:21:13 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-03-15 21:12:30 +0000 cache: hide hash stats behind DEBUG_CACHE They take a long time to dump and hinder sysctl -a when used with DIAGNOSTIC. (cherry picked from commit afb08a6d07174bab1a0fc2d01eb2d1b4bf481179) --- sys/kern/vfs_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 52ed0756db25..3a8d32a69dbf 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -1029,7 +1029,7 @@ SYSCTL_PROC(_vfs_cache_param, OID_AUTO, negminpct, CTLTYPE_INT | CTLFLAG_MPSAFE | CTLFLAG_RW, NULL, 0, sysctl_negminpct, "I", "Negative entry \% of namecache capacity above which automatic eviction is allowed"); -#ifdef DIAGNOSTIC +#ifdef DEBUG_CACHE /* * Grab an atomic snapshot of the name cache hash chain lengths */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203152115.22FLFXMa018583>