From nobody Thu Mar 03 17:30:54 2022 X-Original-To: dev-commits-src-all@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 C298619E5A5A; Thu, 3 Mar 2022 17:30:55 +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 4K8dLR2j74z4b3S; Thu, 3 Mar 2022 17:30:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646328655; 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=S3mfsEKRvqGu8/jsSjIlD9QRN6SUuajkeOmwgww4hKQ=; b=I+XvFhl9bNJVOXAKA63d3uyMUNf7JwD2Xt63ck4enD3rimunJCjQAyB6FPRG/mUPkPuKm4 y8FlG7QG9h5n3FxpN43kRSnqvCEH91hJs6BiYGGtyNGlbI4YsGQRzQntmajbDAijrWq8Qp UdjVeeopbxx/wLKDQVhy1ye6Y5ROs2DsCQECeVAVAbV1NLyBvxkSW2GjssVvb6zkw5ClTt FocrY6PvvKjcsQ5FC+DHnqgOQda2w7I0V1SgV7+TeHVbFEo52dDOz019iomP3855fxFmHJ l0HOGpFavfCVfNPa4fDKVq845tZIRPpeKztkeEv1Gl5r+3JQVBzL7JxG9EC2HA== 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 180491BC69; Thu, 3 Mar 2022 17:30:55 +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 223HUsfb054465; Thu, 3 Mar 2022 17:30:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 223HUslO054452; Thu, 3 Mar 2022 17:30:54 GMT (envelope-from git) Date: Thu, 3 Mar 2022 17:30:54 GMT Message-Id: <202203031730.223HUslO054452@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: afb08a6d0717 - main - cache: hide hash stats behind DEBUG_CACHE List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: afb08a6d07174bab1a0fc2d01eb2d1b4bf481179 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646328655; 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=S3mfsEKRvqGu8/jsSjIlD9QRN6SUuajkeOmwgww4hKQ=; b=gXpUcPNoihimiHshh3h4R0hJQN/BAA5dq9clAY5olUv8XHzJT4OIq6/0Pz5eyLaxZ0pYi8 GzidjzTT1F4jcQx2WjG2pnuIaiTCma645Sz7m8FX6/pUZTfkTB6ztFO301Ut0PCZT0AFmA 5Oh/+f/q1AsC3HuaNmZoriA1XIoX9nGOXJc0keVVCD5lNPpxNxJKW0AiI6EzmCuW5Zd3HD 4Ex1z5pA9jJ5woHbTInRKVG8pG2rDHLVwbKGTf2QB9Et7Q2hc+zKkwZ7mP0e1VvgVVtBAl ajs1romRqN6NHLip4/sJu7SzA1qOxQ8nUqPmbZxx9VACA7fYfJgTNSRRIyB8hQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646328655; a=rsa-sha256; cv=none; b=Ev/zf+7s4nZWzBJAN8cRJ5jqWHRTnolC88FEEt9ausQKdaF1Rf3uhS5YSJVtbkybUWkTtg /NV8f4KnqtPf+mAc5yEb+TvaTjbCOHJYnlx4+JYdNmkvc08TBIjvYbD5gtZkpFP12tR0HI gDApbf090WN63CiGuvQLqOLGaHc+9zg0Y++DHjcL6wOuJ9YpqaFYWDxaqIUdKkx1w9bgCh pByYzPvLVoIzjCzViu7suBz1kZoRFfMHz5sJrV9I28VnOyxy3YqEEzl/R80pPAHY+z6FV+ OAgwAemET1+y03bz36+MszycOQ1ysvA+gZhpIrSkmCc9YvJMbLiUbBQL+rQYfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=afb08a6d07174bab1a0fc2d01eb2d1b4bf481179 commit afb08a6d07174bab1a0fc2d01eb2d1b4bf481179 Author: Mateusz Guzik AuthorDate: 2022-03-03 17:21:13 +0000 Commit: Mateusz Guzik 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 */