freebsd-skq/sys
andre 87ef00d48c Base the calculation of maxmbufmem in part on kmem_map size
instead of kernel_map size to prevent kernel memory exhaustion
by mbufs and a subsequent panic on physical page allocation
failure.

On architectures without a direct map all mbuf memory (except
for jumbo mbufs larger than PAGE_SIZE) comes from kmem_map.
It is the limiting factor hence.

For architectures with a direct map using the size of kmem_map
is a good proxy of available kernel memory as well.  If it is
much smaller the mbuf limit may be sub-optimal but remains
reasonable, while avoiding panics under exhaustion.

The overall mbuf memory limit calculation may be reconsidered
again later, however due to the many different mbuf sizes and
different backing KVM maps it is a tricky subject.

Found by:	pho's new network stress test
Pointed out by:	alc (kmem_map instead of kernel_map)
Tested by:	pho
2013-04-24 13:54:55 +00:00
..
amd64 Print RDSEED, ADX, and SMAP. 2013-04-18 01:21:44 +00:00
arm Initialize GIC_PMRR register on ARM GIC. 2013-04-22 08:28:53 +00:00
boot Split BeagleBone DTS to generic AM335x part and Beagle-bone specific 2013-04-22 18:53:36 +00:00
bsm Implement chflagsat(2) system call, similar to fchmodat(2), but operates on 2013-03-21 22:59:01 +00:00
cam Fix compilation. 2013-04-20 14:33:55 +00:00
cddl The zfs synctask code restructuring introduced a new bug that makes it 2013-04-23 06:28:35 +00:00
compat Regen. 2013-04-02 05:30:52 +00:00
conf wiigpio depends on options WII. 2013-04-24 01:20:10 +00:00
contrib Merge ACPICA 20130418. 2013-04-19 23:49:34 +00:00
crypto When porting XTS-related code from OpenBSD I forgot to update copyright (only 2013-02-20 22:59:53 +00:00
ddb
dev Fix playback for Focusrite Scarlett 2i2 USB recording interface. 2013-04-24 06:05:33 +00:00
fs When an NFS unmount occurs, once vflush() writes the last dirty 2013-04-18 23:20:16 +00:00
gdb
geom Comment typo fix. 2013-04-16 22:42:40 +00:00
gnu/fs/reiserfs Garbage collect XFS bits which are now already completely disconnected 2013-03-02 15:33:54 +00:00
i386 Remove redundant definitions of _ALIGN and _ALIGNBYTES. 2013-04-21 11:12:44 +00:00
ia64 Remove ctl(4) from GENERIC. Also remove 'options CTL_DISABLE' 2013-04-12 16:25:03 +00:00
isa
kern Base the calculation of maxmbufmem in part on kmem_map size 2013-04-24 13:54:55 +00:00
kgssapi
libkern Attempt to mitigate poor initialization of arc4 by one-shot 2013-04-19 00:30:52 +00:00
mips Update trapframe to be consistent with the changes made to regnum.h. This 2013-04-23 09:38:18 +00:00
modules Build uart_dev_lpc.c on arm only. This fixes pc98 build. 2013-04-22 13:02:41 +00:00
net Recover missing arp_ifinit() call. 2013-04-18 20:13:33 +00:00
net80211 Implement a utility function to return the current TX power cap for 2013-04-16 20:36:32 +00:00
netatalk
netgraph - Correct mispellings of the word necessary 2013-04-17 11:42:40 +00:00
netinet When doing RFC3042 limited transmit on the first on second 2013-04-23 14:06:32 +00:00
netinet6 Remove unused variable. 2013-04-24 10:24:01 +00:00
netipsec Use IP6STAT_INC/IP6STAT_DEC macros to update ip6 stats. 2013-04-09 07:11:22 +00:00
netipx
netnatm
netpfil Fix ipfw rule validation partially broken by r248552. 2013-04-01 11:28:52 +00:00
netsmb MFC 2013-03-09 18:40:37 +00:00
nfs Move the NFS FHA (File Handle Affinity) code from sys/nfsserver to 2013-04-17 22:42:43 +00:00
nfsclient When an NFS unmount occurs, once vflush() writes the last dirty 2013-04-18 23:20:16 +00:00
nfsserver Move the NFS FHA (File Handle Affinity) code from sys/nfsserver to 2013-04-17 22:42:43 +00:00
nlm
ofed Check for SS_NBIO in the socket state field rather than socket buffer 2013-04-03 20:31:10 +00:00
opencrypto When porting XTS-related code from OpenBSD I forgot to update copyright (only 2013-02-20 22:59:53 +00:00
pc98 - Correct mispellings of word resource 2013-04-17 11:47:32 +00:00
pci - Corrrect mispellings of word useful 2013-04-17 11:45:15 +00:00
powerpc Handle the IRQ for the reset button. 2013-04-24 01:36:35 +00:00
rpc Fix a potential socket leak in the NFS server. If a client closes its 2013-04-08 19:03:01 +00:00
security MFC 2013-03-08 00:03:07 +00:00
sparc64 Remove ctl(4) from GENERIC. Also remove 'options CTL_DISABLE' 2013-04-12 16:25:03 +00:00
sys Update chio(1) and ch(4) to support reporting element designators. 2013-04-19 20:03:51 +00:00
teken
tools MFC 2013-02-21 21:59:35 +00:00
ufs - Correct mispellings of the word occurrence 2013-04-17 11:40:10 +00:00
vm Panic if UMA_ZONE_PCPU is created at early stages of boot, when mp_ncpus 2013-04-22 09:02:23 +00:00
x86 Introduce kern.timecounter.smp_tsc_adjust tunable (disabled by default) and 2013-04-18 17:07:04 +00:00
xdr Use m_get() and m_getcl() instead of compat macros. 2013-03-15 10:21:18 +00:00
xen
Makefile MFC 2013-03-13 01:05:42 +00:00