freebsd-skq/sys
Alan Cox c70af4875e As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other
words, every architecture is now auto-sizing the kmem arena.  This revision
changes kmeminit() so that the definition of VM_KMEM_SIZE_SCALE becomes
mandatory and the definition of VM_KMEM_SIZE becomes optional.

Replace or eliminate all existing definitions of VM_KMEM_SIZE.  With
auto-sizing enabled, VM_KMEM_SIZE effectively became an alternate spelling
for VM_KMEM_SIZE_MIN on most architectures.  Use VM_KMEM_SIZE_MIN for
clarity.

Change kmeminit() so that the effect of defining VM_KMEM_SIZE is similar to
that of setting the tunable vm.kmem_size.  Whereas the macros
VM_KMEM_SIZE_{MAX,MIN,SCALE} have had the same effect as the tunables
vm.kmem_size_{max,min,scale}, the effects of VM_KMEM_SIZE and vm.kmem_size
have been distinct.  In particular, whereas VM_KMEM_SIZE was overridden by
VM_KMEM_SIZE_{MAX,MIN,SCALE} and vm.kmem_size_{max,min,scale}, vm.kmem_size
was not.  Remedy this inconsistency.  Now, VM_KMEM_SIZE can be used to set
the size of the kmem arena at compile-time without that value being
overridden by auto-sizing.

Update the nearby comments to reflect the kmem submap being replaced by the
kmem arena.  Stop duplicating the auto-sizing formula in every machine-
dependent vmparam.h and place it in kmeminit() where auto-sizing takes
place.

Reviewed by:	kib (an earlier version)
Sponsored by:	EMC / Isilon Storage Division
2013-11-08 16:25:00 +00:00
..
amd64 As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other 2013-11-08 16:25:00 +00:00
arm As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other 2013-11-08 16:25:00 +00:00
boot Extend loader_delay as-documented in beastie.4th(8) and delay.4th(8), making it available to architectures that do not use or load the beastie 2013-11-07 21:52:04 +00:00
bsm
cam Corrected definition for old_rate to match d_rotation_rate 2013-11-07 23:21:52 +00:00
cddl Use suword32 and suword64 instead of copyout(9). This fixes a bug in the 2013-11-05 06:13:46 +00:00
compat Fix build. 2013-11-05 19:17:19 +00:00
conf Remove the gross hack for the Octeon Simple Executive to the least 2013-11-06 05:26:15 +00:00
contrib Fix build. We need to include systm.h before if_var.h. 2013-10-28 15:11:37 +00:00
crypto make it so that from/to can be missaligned as it can happen (the geli 2013-11-06 19:14:49 +00:00
ddb
dev Update aacraid to version 3.2.5. 2013-11-08 13:23:26 +00:00
fs During code inspection, I spotted that there was a code path where 2013-11-03 23:17:30 +00:00
gdb
geom When zero'ing out a buffer, make sure we are using right size. 2013-11-02 01:16:10 +00:00
gnu/fs/reiserfs
i386 As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other 2013-11-08 16:25:00 +00:00
ia64 As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other 2013-11-08 16:25:00 +00:00
isa
kern As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other 2013-11-08 16:25:00 +00:00
kgssapi
libkern
mips As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other 2013-11-08 16:25:00 +00:00
modules Build the iwn2000 firmware too. 2013-11-07 19:40:52 +00:00
net Provide compat layer for OSIOCAIFADDR. 2013-11-06 19:46:20 +00:00
net80211 Don't return ENOBUFS if the transmit path handles the frame but queues it (eg in power save.) 2013-11-06 17:20:49 +00:00
netatalk The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
netgraph Restore the entropy gathering from the m_data pointer value, not the 2013-11-02 15:13:02 +00:00
netinet Make TCP_KEEP* socket options readable. At least PostgreSQL wants 2013-11-08 13:04:14 +00:00
netinet6 Changes from upstream to improve compilation when INET or INET6 2013-11-02 20:12:19 +00:00
netipsec Provide includes that are needed in these files, and before were read 2013-10-26 18:18:50 +00:00
netipx The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
netnatm Provide includes that are needed in these files, and before were read 2013-10-26 18:18:50 +00:00
netpfil Fix fallout from r257223. Since pf_test_state_icmp() can call 2013-11-05 16:54:25 +00:00
netsmb Catch up with sb_timeo type change in r255138. This fixes 2013-11-08 08:44:09 +00:00
nfs The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
nfsclient The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
nfsserver The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
nlm
ofed Fix API mismatch exposed by lagg. 2013-11-02 10:49:47 +00:00
opencrypto
pc98
pci Add preliminary support for RTL8168EP. 2013-10-29 05:37:05 +00:00
powerpc As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other 2013-11-08 16:25:00 +00:00
rpc
security The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
sparc64 As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other 2013-11-08 16:25:00 +00:00
sys Provide compat layer for OSIOCAIFADDR. 2013-11-06 19:46:20 +00:00
teken
tools
ufs UFS2: make di_extsize unsigned. 2013-10-24 00:33:29 +00:00
vm Do not coalesce if the swap object belongs to tmpfs vnode. The 2013-11-05 06:18:50 +00:00
x86 Fix powerd/states on AMD cpus. Resolves issues with system reporting: 2013-11-06 23:29:25 +00:00
xdr
xen
Makefile