From nobody Fri Aug 25 22:57:50 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 4RXb2R30n3z4qvf2; Fri, 25 Aug 2023 22:57:51 +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 4RXb2R0cQfz4JF7; Fri, 25 Aug 2023 22:57:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693004271; 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=l+tlSM2eoQ0qYYb0K7zL7qPjfOEvzL7uWbpfHdMkBbs=; b=exD5kWq9+36KhLPsixGqw2aN0dv2DEPcSi99lwZSNOYP2K9r5oAkbwTL67H8bbxmWd/M6Z Eqm+mlL9dpRqA976xhtzAyRCodSva8TJebq7NdWrQLHrCwEP/js6XVv9jIekTQkZPoqq4x d3SciRNtLnO5DIeHgRpkTcpBk2JHbjuXA24viZ3olzvS0+Y0sghzADyUSVBLr8RMxVkB7D MfcCe6jzQnhIK+83eq5yQJ3M2kho0u6rdJ8SK/fhY5j6R+O7zfvAXFqdcCfasUOmmgSSPs wcJswgYEA5ShijHSliizEq3L4mEYXC83JEFULJkZPFeKJmUreh68GWBV9O1tow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693004271; 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=l+tlSM2eoQ0qYYb0K7zL7qPjfOEvzL7uWbpfHdMkBbs=; b=MfCGkgKkYl7B0y7q6TwaJxKDIFxTT9/d7ZHcDsz1W2lML6jbj3fjHp+JVy78awWuwxsfwd RkfNdEZzuFjUKO71J3kkaaprwfNLvU2twCOYndIhRVPeGfZTCGhAiO1zvw+7AaCt0mSMid jKeJqduGRAcAWgpkOpg9qURx58GnD+Ma317XFIDCTUVnuGoakHzDctQFC3KKb43dMW3J5P L7PSJ2HhLCNwE4sb1oOQ+nCOrGoq1vohv0tmW78vFqT2ACpwIrSq/i+ZH05gjGPdKeWpK1 lK/gYvoJp9QZHUfqMSin9OnwfX7hQmiYz4cs+Sg8At0j131+pIg4pOAG9FRwoA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693004271; a=rsa-sha256; cv=none; b=D/QZpdQGhwHC733Re02OMUZYojmENCGY/aGEYYVL3818kvavIpzxc1XYCdRpMEVAr4uWN0 TvGcLQRhkfdcCQAvTBv8oWQ7MHKgPK8qIEYlTUeSQjvFzPj74A43WWPwjQ+q/CPQJK7zBy xSywUVapXE78xlPs9PqlbN3XuvNsfQ0kgq71SqqK91DbPJYN0nTvHqWTruxgvKC/xsp2zR Wve/fQvzV7DEQVYQVi6TsrHAFIjwJNfwyDND4lkf01K2BBAbqKDZNu264W2dtjRziXWvDU sJZfgZZ07n3o3N0dYk3Zn6sTLL60gk2WThSZ2heOvLJY0gTXOpbjJS4xNi56GQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RXb2Q6kJNz1QZt; Fri, 25 Aug 2023 22:57:50 +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 37PMvoUk032221; Fri, 25 Aug 2023 22:57:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37PMvoa8032218; Fri, 25 Aug 2023 22:57:50 GMT (envelope-from git) Date: Fri, 25 Aug 2023 22:57:50 GMT Message-Id: <202308252257.37PMvoa8032218@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: 35f36c3ee64f - stable/13 - vfs: track how many times vn_alloc blocked on hitting the vnode limit 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: 35f36c3ee64f5066c3de7162b1d0558c1776dd00 Auto-Submitted: auto-generated The branch stable/13 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=35f36c3ee64f5066c3de7162b1d0558c1776dd00 commit 35f36c3ee64f5066c3de7162b1d0558c1776dd00 Author: Mateusz Guzik AuthorDate: 2023-08-18 23:56:58 +0000 Commit: Mateusz Guzik CommitDate: 2023-08-25 22:56:40 +0000 vfs: track how many times vn_alloc blocked on hitting the vnode limit (cherry picked from commit 64e881f2db968bf10c4aa22668ea270e1b9dd3c1) --- 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 57e619abaa15..5cdefca60e7c 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1728,6 +1728,10 @@ vtryrecycle(struct vnode *vp) * vnlru to clear things up, but ultimately always performs a M_WAITOK allocation. */ static u_long vn_alloc_cyclecount; +static u_long vn_alloc_sleeps; + +SYSCTL_ULONG(_vfs, OID_AUTO, vnode_alloc_sleeps, CTLFLAG_RD, &vn_alloc_sleeps, 0, + "Number of times vnode allocation blocked waiting on vnlru"); static struct vnode * __noinline vn_alloc_hard(struct mount *mp) @@ -1762,6 +1766,7 @@ vn_alloc_hard(struct mount *mp) * Wait for space for a new vnode. */ vnlru_kick(); + vn_alloc_sleeps++; msleep(&vnlruproc_sig, &vnode_list_mtx, PVFS, "vlruwk", hz); if (atomic_load_long(&numvnodes) + 1 > desiredvnodes && vnlru_read_freevnodes() > 1)