Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142971698
D50120.id54425.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
454 B
Referenced Files
None
Subscribers
None
D50120.id54425.diff
View Options
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -2772,7 +2772,7 @@
ncsize = desiredvnodes * ncsizefactor;
cache_recalc_neg_min();
- nchashtbl = nchinittbl(desiredvnodes * 2, &nchash);
+ nchashtbl = nchinittbl(ncsize, &nchash);
ncbuckethash = cache_roundup_2(mp_ncpus * mp_ncpus) - 1;
if (ncbuckethash < 7) /* arbitrarily chosen to avoid having one lock */
ncbuckethash = 7;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 26, 12:42 AM (9 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27967619
Default Alt Text
D50120.id54425.diff (454 B)
Attached To
Mode
D50120: VFS cache: Fix initial sizing for non-default 'ncsizefactor'
Attached
Detach File
Event Timeline
Log In to Comment