From nobody Fri Oct 13 23:53:58 2023 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 4S6jyb1MrZz4wyK8; Fri, 13 Oct 2023 23:53:59 +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 4S6jyb0Mhsz3KYn; Fri, 13 Oct 2023 23:53:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697241239; 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=2VJQqw6dVftiowUeVh8+hbJ2E2jb6kL0ZB8TzF9u8uQ=; b=c6e0rOae9Y4mKPfeLJFm0R88f0eP/BITPoexht3Y/pCnyDNz1MEpz/0eougxHOy9wZzI2U jruIPLsuAm2v38ewAAkOgOQaK3jwWt1csV1mMhUsohvluhhzPrk6D6Y9F50qtZv0bJBQZi mm5UW8xpyRRpWmT1hk1fnrQaS1Ql2MnGbx+uiRHtoxcwHsthkUzwNnfiByv4Bh0kyzycPO ARSyYqi1bW412F5GsqaWdJl/lcfeAO4sK5IEhoaUV5hJ/NwhsaZcv1NZLRDLPWsgvDOG1X 32hFdx0V3seOhw0xUhv5Bps+HYEqQJeefRdbPbfmdYlt/sVaUdOtoARBkBR+yQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697241239; a=rsa-sha256; cv=none; b=eMjgtFOb/loh0rzCuFI4B2W/xzRizdUo7BrI/syNgBPX2ChAQ3rezUi+3AuE64YCIiR/NY DDVdiHBVPb+R5vfU4NJFFwcxlFUhcrKrZB5S0CCtGRz3B0N5rrTnItTOLrDMHep+YAKuj7 dEc0Hvv3S5uz7ZzH8GM/dChAdc3Da8Z8kRAFiADQFHFz4KP5Z7SsMCAhT76cxTiJoULV1D VfE8zi90fINOXieh85ffkbU3OP+qoy5M14QA4noFSTovd9E6g4wxieBknsV6BHRDayei8M FHkpZ6YD+hxKuJ3lD/6HM+VopXmUL753Ll4bSyb6NjOgL95t8Zmvz/90fDZfJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697241239; 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=2VJQqw6dVftiowUeVh8+hbJ2E2jb6kL0ZB8TzF9u8uQ=; b=Pg/Smin49FpjROz1P3UlJ4OQvJFDp18iwhHshFtrMxHs18tPa1ZwyZy8gVSjysCuwHBDVf insxEDE1RITUIKCVa5bFo1hHuiyzOnBkce4plRXb5A65MiFulC0MFkG5eQYfc7e50fSbG/ frF8uP8l/eD6lNxFehfiC4yGF+YAETdHNA1thTWa+kSnfbbNXEGgbd/Sjbeo9TiuBLn1eZ c90tNaddvuudXGi56zGVllWACO2UPl/8yngSQkDeke7yMCP+vnXuWrePVaH1V6XY5rL2iA 4GogcQ87R1+c1C+uAnSIlZJDk7mHeaTmJ+NkFgc6WsafCRu+oj1HcTXIeAbMxQ== 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 4S6jyZ6YHrz17ql; Fri, 13 Oct 2023 23:53:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39DNrw5Z032427; Fri, 13 Oct 2023 23:53:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39DNrwQv032424; Fri, 13 Oct 2023 23:53:58 GMT (envelope-from git) Date: Fri, 13 Oct 2023 23:53:58 GMT Message-Id: <202310132353.39DNrwQv032424@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: a0fb0a72b15c - stable/13 - vfs: add max_vnlru_free to the vfs.vnode.vnlru tree 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/stable/13 X-Git-Reftype: branch X-Git-Commit: a0fb0a72b15cc6cf36b402d35f5b63680e2ab282 Auto-Submitted: auto-generated The branch stable/13 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=a0fb0a72b15cc6cf36b402d35f5b63680e2ab282 commit a0fb0a72b15cc6cf36b402d35f5b63680e2ab282 Author: Mateusz Guzik AuthorDate: 2023-10-11 13:05:43 +0000 Commit: Mateusz Guzik CommitDate: 2023-10-13 23:48:14 +0000 vfs: add max_vnlru_free to the vfs.vnode.vnlru tree While here rename the var internally. (cherry picked from commit 281a9715b582861fe4097c2f27eb27b208d752b1) --- sys/kern/vfs_subr.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 8c831034a8e5..a8e4714a7a79 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1296,9 +1296,11 @@ next_iter: return (done); } -static int max_vnlru_free = 10000; /* limit on vnode free requests per call */ -SYSCTL_INT(_debug, OID_AUTO, max_vnlru_free, CTLFLAG_RW, &max_vnlru_free, - 0, +static int max_free_per_call = 10000; +SYSCTL_INT(_debug, OID_AUTO, max_vnlru_free, CTLFLAG_RW, &max_free_per_call, 0, + "limit on vnode free requests per call to the vnlru_free routine (legacy)"); +SYSCTL_INT(_vfs_vnode_vnlru, OID_AUTO, max_free_per_call, CTLFLAG_RW, + &max_free_per_call, 0, "limit on vnode free requests per call to the vnlru_free routine"); /* @@ -1313,8 +1315,8 @@ vnlru_free_impl(int count, struct vfsops *mnt_op, struct vnode *mvp) bool retried; mtx_assert(&vnode_list_mtx, MA_OWNED); - if (count > max_vnlru_free) - count = max_vnlru_free; + if (count > max_free_per_call) + count = max_free_per_call; if (count == 0) { mtx_unlock(&vnode_list_mtx); return (0);