From nobody Wed Oct 04 12:08:59 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 4S0tlH6M8Hz4vpFC; Wed, 4 Oct 2023 12:08: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 4S0tlH5XZ6z3JQ3; Wed, 4 Oct 2023 12:08:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696421339; 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=UsCxaAQ52WH3gXEYXB3bpopmG0cpHYTQDWSeKbhh5Uk=; b=ImjxzRmnb/snvkuUvl67/heMk/+XX44g0RtIyLGSiG8209j7mPn9nO6p9nKBcBM0T1pz9L eaOLxYec7z5Gz0VVDdWa+/G9SZWm68T9p32jveAOj2wYVbKc+MUkw7uONbWqC2wqP8mGzW jrXC/4k/kzvbtaWlW13jE0j51JxpXTZKp+Z48ghgqFOB3QQSQgkh41pmaTU5sjJojRDszb CWjnLfAwhfgpBNNJ8HFBKbjI1Vxi3XPlV8EgjfSfU3AU8vx1wJCH/EhAqk0QqtBX3wmltx dyt+FOmYmMkmQIQ7igS1Ao4HIBBbhDpegkZGL3XC03xPu8KtGYHauWiZ5jLSxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696421339; a=rsa-sha256; cv=none; b=sKW/Ffj1j2HaWLGq218cDT+RolYnS3hDptWDg8rGnx+3+JyCf9c6CWafnwKYITtVxI7+1G aYFtCxB+2gWRzeUcliG7qCY0CV3OW24kwMxuINUK2dj+WVRaajbFCw1tHbD+SMPf3XQqq7 lEwlNxOgU9YgrUeFGOdse1cQgPUyWQZpDX9lb/UjmOM7ls9N6+HsfICArk7VwJObFjmeLp Tge9CTnDWqkrOiJHhVPnRqDc3qQxFTRyTeiWOqOPnRhpk1EaNjICGKeIrzOZpmcZ4RG0kP hsr3hX9E1/gB6VIA7MFNXLudyMBHVZyNttDHuGJ3pxG//jvuSY8ij300mw3zZA== 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=1696421339; 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=UsCxaAQ52WH3gXEYXB3bpopmG0cpHYTQDWSeKbhh5Uk=; b=ZRWG08vpsuaLR4J+0kw/2IyyO737Nkv/cDcV3S9A8wafgvGU3/MOEXhzCP/XKs+Z7QLIFe c9BAFOhN1aZOVLI+QNl5VEH4vxMr+JWSyyN5W/ya+Q1ZVXQ78rHOOmZ9mxXatHdNX164js DYKgj+LqTKWo/YpMjdEdgRgj17xWIvKIorg6dkcDvVwvmyLf17TU4YpHDcMwXOow9hqbsB Gj6I3le2cm2WuzeptAnp5CYv9L94fSpL/LYen3Ou7N5VM+uQ8WZrinSA8XRNyc0eYfp+gV a8BeXQ99iBfycxCW92ZqIVaeppi6WNnE9DYf0arJwMGM+Cl5VHqovuMWQ/HaLw== 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 4S0tlH4ZVGzcWm; Wed, 4 Oct 2023 12:08:59 +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 394C8xhP053557; Wed, 4 Oct 2023 12:08:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 394C8xl9053553; Wed, 4 Oct 2023 12:08:59 GMT (envelope-from git) Date: Wed, 4 Oct 2023 12:08:59 GMT Message-Id: <202310041208.394C8xl9053553@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: 7110784928f9 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 7110784928f9fc9dccbf9315230eabbd57a24702 Auto-Submitted: auto-generated The branch stable/13 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=7110784928f9fc9dccbf9315230eabbd57a24702 commit 7110784928f9fc9dccbf9315230eabbd57a24702 Author: Mateusz Guzik AuthorDate: 2023-09-16 17:26:39 +0000 Commit: Mateusz Guzik CommitDate: 2023-10-04 12:05:58 +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 37554858173f..7d8e6c6c6cc5 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1494,6 +1494,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 @@ -1588,6 +1592,7 @@ vnlru_kick_locked(void) mtx_assert(&vnode_list_mtx, MA_OWNED); if (vnlruproc_sig == 0) { vnlruproc_sig = 1; + vnlruproc_kicks++; wakeup(vnlruproc); } }