Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142244009
D50314.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1012 B
Referenced Files
None
Subscribers
None
D50314.diff
View Options
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -762,13 +762,12 @@
* KVA).
*
* Currently, on 64-bit platforms, 'desiredvnodes' is set to
- * 'virtvnodes' up to a physical memory cutoff of ~1674MB, after which
+ * 'virtvnodes' up to a physical memory cutoff of ~1722MB, after which
* 'physvnodes' applies instead. With the current automatic tuning for
- * 'maxfiles' (32 files/MB), 'desiredvnodes' becomes smaller than it at
- * ~5136MB.
+ * 'maxfiles' (32 files/MB), 'desiredvnodes' is always greater than it.
*/
- physvnodes = maxproc + pgtok(vm_cnt.v_page_count) / 64 +
- 3 * min(98304 * 16, pgtok(vm_cnt.v_page_count)) / 64;
+ physvnodes = maxproc + pgtok(vm_cnt.v_page_count) / 32 +
+ min(98304 * 16, pgtok(vm_cnt.v_page_count)) / 32;
virtvnodes = vm_kmem_size / (10 * (sizeof(struct vm_object) +
sizeof(struct vnode) + NC_SZ * ncsizefactor + NFS_NCLNODE_SZ));
desiredvnodes = min(physvnodes, virtvnodes);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 18, 5:59 PM (11 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27714308
Default Alt Text
D50314.diff (1012 B)
Attached To
Mode
D50314: vfs: vntblinit(): Raise default 'kern.maxvnodes' higher than 'kern.maxfiles'
Attached
Detach File
Event Timeline
Log In to Comment