Page MenuHomeFreeBSD

D50314.diff
No OneTemporary

D50314.diff

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

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)

Event Timeline