freebsd-nq/sys
Konstantin Belousov 245139c69d Fix OOM handling of some corner cases.
In addition to pagedaemon initiating OOM, also do it from the
vm_fault() internals.  Namely, if the thread waits for a free page to
satisfy page fault some preconfigured amount of time, trigger OOM.
These triggers are rate-limited, due to a usual case of several
threads of the same multi-threaded process to enter fault handler
simultaneously.  The faults from pagedaemon threads participate in the
calculation of OOM rate, but are not under the limit.

Reviewed by:	markj (previous version)
Tested by:	pho
Discussed with:	alc
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D13671
2019-08-16 09:43:49 +00:00
..
amd64 Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
arm Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
arm64 Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
bsm
cam Make camcontrol modepage support block descriptors. 2019-08-07 14:45:10 +00:00
cddl Revert r351076 and r351074 because of atomic_swap_64 on 32-bit platforms 2019-08-15 15:27:58 +00:00
compat Implement pci_enable_msi() and pci_disable_msi() in the LinuxKPI. 2019-08-14 09:36:25 +00:00
conf Move the common x86 ipmi files to files.x86. The powerpc file list is different 2019-08-14 20:58:50 +00:00
contrib MFV: r351091 2019-08-15 17:43:36 +00:00
crypto armv8crypto: add missing unlock for session (after r336439) 2019-08-08 14:34:53 +00:00
ddb Cache kernel stacks in UMA. This gives us NUMA support, better concurrency, 2019-08-06 23:15:34 +00:00
dev Fix i386 build. 2019-08-15 23:56:19 +00:00
dts dtso: allwinner: Add an overlay for H3 i2c0 2019-07-20 17:42:46 +00:00
fs fusefs: don't send the namespace during listextattr 2019-08-16 05:06:54 +00:00
gdb
geom geom_uzip(4), mkuzip(8): Add Zstd image mode 2019-08-13 23:32:56 +00:00
gnu arm: dts: am33xx: Fix the region for uart0 2019-08-07 13:11:53 +00:00
i386 Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
isa
kern Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
kgssapi Make the warning intervals for deprecated crypto algorithms tunable. 2019-06-11 23:00:55 +00:00
libkern Allow Kernel to link in both legacy libkern/zlib and new sys/contrib/zlib, 2019-08-01 06:35:33 +00:00
mips Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
modules Add NTB modules to i386 build. 2019-08-15 16:27:04 +00:00
net Properly validte arguments for route deletion 2019-08-03 14:42:07 +00:00
net80211 Enhance the comment ieee80211_add_channel() to avoid a 2019-06-10 14:31:18 +00:00
netgraph
netinet Save ip_ttl value and restore it after checksum calculation. 2019-08-13 12:47:53 +00:00
netinet6 frag6: move public structure into file local space. 2019-08-08 10:59:54 +00:00
netipsec Add missing new line in several log messages. 2019-08-09 08:58:09 +00:00
netpfil Fix rule truncation on external action module unloading. 2019-08-15 13:44:33 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Fix prio vs. nonprio tagged traffic in RDMACM 2019-06-04 06:21:31 +00:00
opencrypto Allow Kernel to link in both legacy libkern/zlib and new sys/contrib/zlib, 2019-08-01 06:35:33 +00:00
powerpc Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
riscv Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
rpc Avoid relying on header pollution from sys/refcount.h. 2019-07-29 20:26:01 +00:00
security Fix mac_veriexec_parser build after r347938 2019-08-08 16:51:49 +00:00
sparc64 Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
sys Remove deprecated GEOM classes 2019-08-13 20:06:55 +00:00
teken
tests
tools Add SDIO support. 2019-06-08 16:26:56 +00:00
ufs Clarify comment that describes how the FS_METACKHASH is managed. 2019-08-13 20:56:44 +00:00
vm Fix OOM handling of some corner cases. 2019-08-16 09:43:49 +00:00
x86 Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
xdr
xen
Makefile