From nobody Tue Mar 15 21:15:33 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 11F201A24E2B; Tue, 15 Mar 2022 21:15:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KJ5m56PVpz3JqL; Tue, 15 Mar 2022 21:15:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647378933; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oqAS1BTF1UqN/nxmRsu7LUrlrWTCDE3cNAfm1osLtfs=; b=vSYFI+KNZZfLVJzlIBb7lDUeEkb/LsO1287tExzVSkqLYmMRNcx52tnnVJB0hw6u2edCjN DVIutAuPhsyMSgEe9/kE4o2e8sSeh/vSIsEuPDCrJG0J06+cRZSQYBg5KetRo7ZboUlKiE 5Fn3ZfIethhyA/AJNywo7kHnHTF7YfRy5btc9gixINPW5Fwic9AXs+TGM1p+78pYCkDJ6M wIy3TfC+Nac1v7VhaYsofg1p0fpBB4qA8TJXezIWaOjRwGs0a7YafN2iJSUf7bVGQTCd59 ABhsZHxZuFx9ZTraZKeXQ11gvo6vcql25P4F9WHYTajzlv123DOhMsu1qJZf/A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BBEF3148B; Tue, 15 Mar 2022 21:15:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22FLFXJ7018584; Tue, 15 Mar 2022 21:15:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22FLFXMa018583; Tue, 15 Mar 2022 21:15:33 GMT (envelope-from git) Date: Tue, 15 Mar 2022 21:15:33 GMT Message-Id: <202203152115.22FLFXMa018583@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Guzik Subject: git: fa86eac8189f - stable/13 - cache: hide hash stats behind DEBUG_CACHE List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: fa86eac8189f6d14da8db52ff21a55139cef231b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647378933; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oqAS1BTF1UqN/nxmRsu7LUrlrWTCDE3cNAfm1osLtfs=; b=aZwpBC6eYcKfPznsgIiQ0dfliaPPHU7IjgwtF3SFpGemi7+y+nDQ0sFH9LqonV4gfv7/6e ltm9yqdzdRSmA0RANBaJa453Ta8K5oZgpwhl5jpvjVBDKMQ5Uyip9Hwy8FMwc/6jnZnwzw eTlav4QajBnNE2mGrNTiU14EWNUu2HAWrN2k2jIfkZ2z2vUwUhi6AsxPPLskm3uKtA0VUZ X9uVtAPTnH4D4wpeu7GkyQ7kcfBinWT22DfrJLpXRPb1EwjBz+CYyGeF3SvSDkF6y3eUK0 Ao834c4PwiBGM8FDO3QEe8+fT4tMOJAWy1d1yuV+fRh7yERH+9Vb7Wejbx8HsQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647378933; a=rsa-sha256; cv=none; b=cFSuqkvWiyRi624yUiV3KsONaIIfG60QKntLDHGWQ9C/EkYu/APiHxtaluhR2Y4Vm0QtGY B8VTSsXaY3bE8silyvjbXDsayteeV84WytD2G4tko7kGeHtjJ8UDNDqWmZWLRn4+GewJvh WvLfPiaFFE/heTB5McXPIgM7BbCMbeXNwvexOMzUKdN/JdZgPdCDF861G/zt9UcdEBo3oC 7GEzKtTxQBiMIPfNfMSlzFl8XucaDyorWuTLbDcMHhpJ/N8gse+3bBTch5pSGf/G3KlTIp 8qCkVQ5kgpCyJmyLFcWU5rKqPHHfAUKbsxirwlTe6pKx4K8eJsL0Ppfe7hVMYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=fa86eac8189f6d14da8db52ff21a55139cef231b commit fa86eac8189f6d14da8db52ff21a55139cef231b Author: Mateusz Guzik AuthorDate: 2022-03-03 17:21:13 +0000 Commit: Mateusz Guzik 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 */