From nobody Sat Sep 16 17:28:08 2023 X-Original-To: dev-commits-src-main@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 4Rnygr5LyTz4sjYx; Sat, 16 Sep 2023 17:28:08 +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 4Rnygr4gZtz3MxY; Sat, 16 Sep 2023 17:28:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694885288; 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=MWPRmjOKZ5Gcpgfcs5Z2JVzH61/uQfcSWkaamvuwMVg=; b=C3xSWCmkCb9aI4U9CXNInUjNRvOAHZPpeI3mKLbLwYFK9lTrh6bjMXodrh5elLkcFGcwKo jLxF5Kn5oDyKG/fsTaToGL8cuvhiIAYNT0mo+m+2uJ7A46TrYXFniqGWCiCOT2vcSClbl3 w/GEHuADHEVG6B26GL1zkSYuaQ5Lljc2YYfV3oDsXHPYWcMGpgTZkhxm8+NamrgYQ1chgV njqV/sVEu/EhFvhrTFRHLAx2DkFTxRJmrb/a1GiBUfW1JhZuI2BrxzY6xqOFrlKWUuAjuh 6LnAfjVW3xUxTEgbefs/Y3oi79VOIAKRp1pc51sllmEM/DHQ6jrzUw3isKHjCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694885288; a=rsa-sha256; cv=none; b=tYVMsWCUzv2WFMJ6KpIa23Arvnj9kjIXIsoidpqdLeCYFmU9Sla5UryPWBkkE58eadABeE CzsYZTF2IdcVIVFr931qr/mfkjcsO/4u1tXXYGs/lY7wsr1sCrdAaGwgDJWKjIrdUGXbqb FormhsFYWaCn8TdahBOSgH243B/1GFF/bl4Q8CET0BByBUzTCWv7MTAB2AFzcl7RXKiD4S inNJ6Xzhs9Yi6djVB8hV6zx/itoxBsticLy2h/EwJgIZJMNHpeD1MUZp6/xQFwqJufRPqN Sn73CaTHal8jntllNqBC/Y/c87SU2RtL/RgI46wmBR4Nb1DRxyTxAft1khzz5A== 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=1694885288; 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=MWPRmjOKZ5Gcpgfcs5Z2JVzH61/uQfcSWkaamvuwMVg=; b=eBC4siaqnMpzPCcIfQJeH6e9PU6o0jhv+a8NaV5t2mVQNOvGuCw0/foGfynk7z07VItste klvT5vD0ltKFcl/4Fv74+8QGBrjengjCl0v0cpQXFyl9Zwzq0ACWnDAYZpiVfI12jDEimK FxEmBwVWpw8HMyg1Q7s+FBi9LAJofDYt7rSOJRkz7sYy+FrPu49+I/kXsDz2M1f5YEll4W esCXMq2w1k3qqWFT2DgUSC4Fx+OpsIv8gxnW52V2N2RAzxxcu8dXs943N918HEP9BbV6XC HVApzmIJuUX5yjICYuA5RRrPbqj3xYv2ivbU5mHAbRAEhjPnwbvvq71mSc5uFg== 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 4Rnygr3m2Yzl6; Sat, 16 Sep 2023 17:28:08 +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 38GHS8mK014524; Sat, 16 Sep 2023 17:28:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38GHS8vK014521; Sat, 16 Sep 2023 17:28:08 GMT (envelope-from git) Date: Sat, 16 Sep 2023 17:28:08 GMT Message-Id: <202309161728.38GHS8vK014521@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: 9080190b970c - main - vfs: count how many times vnlru got woken up due to vnode shortage List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 9080190b970c7026695571f90b95fdcf7056ec67 Auto-Submitted: auto-generated The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=9080190b970c7026695571f90b95fdcf7056ec67 commit 9080190b970c7026695571f90b95fdcf7056ec67 Author: Mateusz Guzik AuthorDate: 2023-09-16 17:26:39 +0000 Commit: Mateusz Guzik CommitDate: 2023-09-16 17:26:39 +0000 vfs: count how many times vnlru got woken up due to vnode shortage --- sys/kern/vfs_subr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 11cdea5a7dc1..0251525a50c7 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1477,6 +1477,10 @@ vnlru_recalc(void) */ static struct proc *vnlruproc; static int vnlruproc_sig; +static u_long vnlruproc_kicks; + +SYSCTL_ULONG(_vfs_vnode_vnlru, OID_AUTO, kicks, CTLFLAG_RD, &vnlruproc_kicks, 0, + "Number of times vnlru got woken up due to vnode shortage"); /* * The main freevnodes counter is only updated when a counter local to CPU @@ -1571,6 +1575,7 @@ vnlru_kick_locked(void) mtx_assert(&vnode_list_mtx, MA_OWNED); if (vnlruproc_sig == 0) { vnlruproc_sig = 1; + vnlruproc_kicks++; wakeup(vnlruproc); } }