Date: Thu, 3 Mar 2022 17:30:54 GMT From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: afb08a6d0717 - main - cache: hide hash stats behind DEBUG_CACHE Message-ID: <202203031730.223HUslO054452@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=afb08a6d07174bab1a0fc2d01eb2d1b4bf481179 commit afb08a6d07174bab1a0fc2d01eb2d1b4bf481179 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-03-03 17:21:13 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-03-03 17:21:58 +0000 cache: hide hash stats behind DEBUG_CACHE They take a long time to dump and hinder sysctl -a when used with DIAGNOSTIC. --- 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 c47f6a0438b1..254b5d4d1b69 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?202203031730.223HUslO054452>