Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2025 18:37:16 GMT
From:      Olivier Certner <olce@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e5baab94b0b0 - stable/14 - Revert "VFS cache: Fix initial sizing for non-default 'ncsizefactor'"
Message-ID:  <202505081837.548IbGhb056032@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by olce:

URL: https://cgit.FreeBSD.org/src/commit/?id=e5baab94b0b096f772d40cf204875992d09a70c4

commit e5baab94b0b096f772d40cf204875992d09a70c4
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2025-05-08 18:34:44 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-05-08 18:34:44 +0000

    Revert "VFS cache: Fix initial sizing for non-default 'ncsizefactor'"
    
    Because it unadvertently was committed without the proper tags.  Will be recommitted with them.
    
    This reverts commit 455203ec8885 (VFS cache: Fix initial sizing for non-default 'ncsizefactor', 2025-05-01).
---
 sys/kern/vfs_cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 300173347401..92e9d77eb891 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -2685,7 +2685,7 @@ nchinit(void *dummy __unused)
 
 	ncsize = desiredvnodes * ncsizefactor;
 	cache_recalc_neg_min();
-	nchashtbl = nchinittbl(ncsize, &nchash);
+	nchashtbl = nchinittbl(desiredvnodes * 2, &nchash);
 	ncbuckethash = cache_roundup_2(mp_ncpus * mp_ncpus) - 1;
 	if (ncbuckethash < 7) /* arbitrarily chosen to avoid having one lock */
 		ncbuckethash = 7;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505081837.548IbGhb056032>