From nobody Sun Sep 24 21:47:01 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 4Rv02s6mYHz4tWgG; Sun, 24 Sep 2023 21:47:01 +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 4Rv02s4Gxkz4ZrC; Sun, 24 Sep 2023 21:47:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695592021; 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=lqORKNHgXJ0Zyl0kjY09VKQ7mcVqj61p2xusFu8gGPA=; b=cm0R3/Fjn2KtfJVceluv9haBm0frvc6bgqeAATnacSXqRW43mQOZsmAPa86ZfeLTx7P2uc 7NL4fq9FdqFRu6eBJOjFEtStK9AoMgCH9lAIOakfzK5eCyoAMgXsv4rJi5Ab/IYKAuHw6l n4nTniQVwpXnMM5f57w4h9Wku5pv48crdW0WtkNUlk32LgNkPpIXBrs9qJoz95528JW+hc c7mne/e5z/qeLeBgAFbyBBVml6j+QYukeDMzv8UYs/lmPWtQ0w77sOqMPA4QFp1bn4F5NZ lMby6GDLpulEaJronjwIeznZ01For9Tk05DjmfN2qqUX1Q6tNjFIj/B5b575EQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695592021; a=rsa-sha256; cv=none; b=VN8yhHHa65Zul2OfyhyrAeyBVfAxvkmgkL2wHhqoV8tluUlgO4LVoc85a48Vsj9GUpqPbS JbeEeNeIZSyBhnEiAQ/Y0AJUpbN0igGcJQQmHbfqosv2sX7RyJcV9OdshYBRt/lyQYTXco NxWOMg4UvJKxYiPNyNFd6CxWgJBEmZYMapLZaK0cfuoDDuSLkRJ4ANHaojG8q/qbxCmkFK GyA+zPTvhV8XlLAjSM0S+yOQ7Oj9vo2yLnmvQ5zWMGcaXuScb1KqUIl65RcWW3pGaviKuX 4GKSR3JF6BFyRujxtWAYPiVMKetWf8HcGaAgSrgWviZHFeGeg53HgGAj/005dg== 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=1695592021; 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=lqORKNHgXJ0Zyl0kjY09VKQ7mcVqj61p2xusFu8gGPA=; b=x2DzmgCie7h+Bi+DEjZaLxv7Y5MmnB/OWCBhWrb4eQnPg3wrhVCrpm+fnG+5hzDoAiJb9h qfXLFZYsx+sC5R7cPiZ/lrVjWjchdG0mpmJ7JaU5kTx2VZHOSHbovLCBzYWb0hdScPRese Fufs4fCvFYPKTIsf5JOBWRPRfaujewlAoAVKq3QP6DMlGfj+MQMR/YJo/a9/RwIln971v3 oq0N8I8vMk3sv+7+MvXzNUVVD1lWyozTUMeuuHE3kuRXzhoGE07zXIS84APNQLLIeBdlzu 98wm84prYNkiGZuezW4qexcC+ig+gQZopq8S8Jn1vHmggrJfoZAf7nBlB6ReLw== 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 4Rv02s3LXyz13dR; Sun, 24 Sep 2023 21:47:01 +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 38OLl1ar030948; Sun, 24 Sep 2023 21:47:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38OLl14O030945; Sun, 24 Sep 2023 21:47:01 GMT (envelope-from git) Date: Sun, 24 Sep 2023 21:47:01 GMT Message-Id: <202309242147.38OLl14O030945@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: ba4d4882ce72 - releng/14.0 - 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/releng/14.0 X-Git-Reftype: branch X-Git-Commit: ba4d4882ce72d60b82e09c6060edf054917eec39 Auto-Submitted: auto-generated The branch releng/14.0 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=ba4d4882ce72d60b82e09c6060edf054917eec39 commit ba4d4882ce72d60b82e09c6060edf054917eec39 Author: Mateusz Guzik AuthorDate: 2023-09-16 17:26:39 +0000 Commit: Mateusz Guzik CommitDate: 2023-09-24 21:46:21 +0000 vfs: count how many times vnlru got woken up due to vnode shortage Approved by: re (gjb) (cherry picked from commit 9080190b970c7026695571f90b95fdcf7056ec67) (cherry picked from commit e5114cc203a6bef23b072d9f98f6b8501e4ce6d9) --- 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); } }