freebsd-src/share/man
Mike Karels 636592343c tmpfs: increase memory reserve to a percent of available memory + swap
The tmpfs memory reserve defaulted to 4 MB, and other than that,
all of available memory + swap could be allocated to tmpfs files.
This was dangerous, as the page daemon attempts to keep some memory
free, using up swap, and then resulting in processes being killed.
Increase the reserve to a fraction of available memory + swap at
file system startup time.  The limit is expressed as a percentage
of available memory + swap that can be used, and defaults to 95%.
The percentage can be changed via the vfs.tmpfs.memory_percent sysctl,
recomputing the reserve with the new percentage but the initial
available memory + swap.  Note that the reserve can also be set
directly with an existing sysctl, ignoring the percentage.  The
previous behavior can be specified by setting vfs.tmpfs.memory_percent
to 100.

Add sysctl for vfs.tmpfs.memory_percent and the pre-existing
vfs.tmpfs.memory_reserved to tmpfs(5).

PR:		275436
MFC after:	1 month
Reviewed by:	rgrimes
Differential Revision:	https://reviews.freebsd.org/D43011
2023-12-19 09:33:33 -06:00
..
man1 share: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
man3 share: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
man3lua Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
man4 tcp: Remove the documented dependency of TCPHPTS for RACK and BBR 2023-12-17 19:31:16 +01:00
man5 tmpfs: increase memory reserve to a percent of available memory + swap 2023-12-19 09:33:33 -06:00
man6 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
man7 share: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
man8 share: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
man9 kqueue.9: Update the description of knlist_clear() 2023-12-18 13:16:48 -05:00
Makefile share: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00