Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/vfs_subr.c
Show First 20 Lines • Show All 343 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
PCTRIE_DEFINE(BUF, buf, b_lblkno, buf_trie_alloc, buf_trie_free); | PCTRIE_DEFINE(BUF, buf, b_lblkno, buf_trie_alloc, buf_trie_free); | ||||
/* | /* | ||||
* Initialize the vnode management data structures. | * Initialize the vnode management data structures. | ||||
* | * | ||||
* Reevaluate the following cap on the number of vnodes after the physical | * Reevaluate the following cap on the number of vnodes after the physical | ||||
* memory size exceeds 512GB. In the limit, as the physical memory size | * memory size exceeds 512GB. In the limit, as the physical memory size | ||||
* grows, the ratio of the memory size in KB to to vnodes approaches 64:1. | * grows, the ratio of the memory size in KB to vnodes approaches 64:1. | ||||
*/ | */ | ||||
#ifndef MAXVNODES_MAX | #ifndef MAXVNODES_MAX | ||||
#define MAXVNODES_MAX (512 * 1024 * 1024 / 64) /* 8M */ | #define MAXVNODES_MAX (512 * 1024 * 1024 / 64) /* 8M */ | ||||
#endif | #endif | ||||
/* | /* | ||||
* Initialize a vnode as it first enters the zone. | * Initialize a vnode as it first enters the zone. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 5,206 Lines • Show Last 20 Lines |