From nobody Fri Sep 22 21:51:25 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 4RsmDt156wz4tTXM; Fri, 22 Sep 2023 21:51:26 +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 4RsmDt0KmDz3QTX; Fri, 22 Sep 2023 21:51:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695419486; 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=9B9f+SCR1jiwVrJgWC5qwoyTmu6mK5KWyA2Hi76pSZs=; b=ikHe8CJj6Lra8YGmTy9+A9wSR1hVlFwiHzHWUN7XHFUqFFmxqqME9VTeP/cK9WAlXjmWNB QVoB1X7huLBdKWQ1QyyNdEkzLYfswoRZfmEKhrCScn6cHXyi8J5JqQpyV0gOe1lCaI78sR u6jH0I1gugOc4WFpT7E9ptK0cG0M6JXkZIE/ct8PfOrElPKiXcyT+n34eyOIRz1v92wI3z GaswzdRpi3Z3X8783tguSvHmbFNoJjaXg4Kwyw0HHCunktFeDHwIrDfDsMn+oP/s2IiIYk Y9VkkVx79+Y4NftzSBaeH+l67oaelrnux7GYjZpn/vC8ejsw7RrJBq6b//bujA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695419486; a=rsa-sha256; cv=none; b=NQKWIKtutJ/1E77tXoosYYkUhUqZL0aVUK6ymrLgj7xmkK5+H0mU5Fhx+v/btEGBaNL3sx ftSHo+EUi6P0ttCIahjBQrST2KG25dkn7Ad9TyeSuCM8FT+vWhNE6Qisos9Q+x3u/MrbQT GkwaSIoTPJCDg9PT7Le4GlP98u1prF3bmIYxH7VTrro3kmdMgVyXvUm+c+mqgKcjR4iLeP bfxD8pcnNv1aNRp7L4qdkUeeBGLI55URTJGB2uTW0spnXnYZQXKeO1qY2rbgGeCvRF5uzw wbZWBUp4YiotdqAEncyqjZkThDimvRcDpFAzLJdrevT7RTmbsi30h7RxALMrPA== 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=1695419486; 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=9B9f+SCR1jiwVrJgWC5qwoyTmu6mK5KWyA2Hi76pSZs=; b=ei7/sdNR9aDLB6N/LKvWZD/2B5BMnTtcUglzfe6utpoFXpjDZMbSx5nmXTFiynoIkAkhDR uFrhu12HiyBbIZ4Z8iZYmvDDH/wNfJyg70Nj488fcx2OiCZ9PRctK9L3nLvaDEe0FE4Cf2 GkAdMM5GBfISaeUGeFMquxu96s25rXWUPKYZJCbo84ul5mkEHoc7arWI6kT2IzA+2Urwtb AG2OzVQJO6nzWtc3shbPQRddqLg/cGnGD44JwUpRY2lAIUAioOe60q4Jbk1wVaeCnA5ecY x78vu9DMP0l/dzL+2SWlHO7LjO6u4VvqRzKIA96GbgB5/UjR1ip0VpB/c7HZIg== 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 4RsmDs672dzdkP; Fri, 22 Sep 2023 21:51:25 +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 38MLpPnZ039686; Fri, 22 Sep 2023 21:51:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38MLpPDX039683; Fri, 22 Sep 2023 21:51:25 GMT (envelope-from git) Date: Fri, 22 Sep 2023 21:51:25 GMT Message-Id: <202309222151.38MLpPDX039683@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: e5114cc203a6 - stable/14 - vfs: count how many times vnlru got woken up due to vnode shortage 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/14 X-Git-Reftype: branch X-Git-Commit: e5114cc203a6bef23b072d9f98f6b8501e4ce6d9 Auto-Submitted: auto-generated The branch stable/14 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=e5114cc203a6bef23b072d9f98f6b8501e4ce6d9 commit e5114cc203a6bef23b072d9f98f6b8501e4ce6d9 Author: Mateusz Guzik AuthorDate: 2023-09-16 17:26:39 +0000 Commit: Mateusz Guzik CommitDate: 2023-09-22 21:50:48 +0000 vfs: count how many times vnlru got woken up due to vnode shortage (cherry picked from commit 9080190b970c7026695571f90b95fdcf7056ec67) --- 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); } }