vmiodirenable is now on by default; reflect that change in default,

and talk more about the reasons to turn it off (restricted memory
environments), and less about why to turn it on.
This commit is contained in:
Robert Watson 2001-12-06 19:39:33 +00:00
parent 32a124764d
commit 48c1691ebf

View File

@ -387,8 +387,7 @@ the shared memory into core, making it unswappable.
.Pp
The
.Va vfs.vmiodirenable
sysctl defaults to 0 (off) (though soon it will default to 1) and may be
set to 0 (off) or 1 (on).
sysctl defaults to 1 (on).
This parameter controls how directories are cached
by the system.
Most directories are small and use but a single fragment
@ -404,14 +403,15 @@ memory is now available for caching directories.
The disadvantage is that
the minimum in-core memory used to cache a directory is the physical page
size (typically 4K) rather than 512 bytes.
We recommend turning this option
on if you are running any services which manipulate large numbers of files.
We recommend turning this option off in memory-constrained environments;
however, when on, it will substantially improve the performance of services
which manipulate large numbers of files.
Such services can include web caches, large mail systems, and news systems.
Turning on this option will generally not reduce performance even with the
wasted memory but you should experiment to find out.
.Pp
There are various buffer-cache and VM page cache related sysctls.
We do not recommend messing around with these at all.
We do not recommend modifying those values.
As of
.Fx 4.3 ,
the VM system does an extremely good job tuning itself.