freebsd-skq/sys
will 2e062600fe Add vm.panic_on_oom sysctl, which enables those who would rather panic than
kill a process, when the system runs out of memory.  Defaults to off.

Usually, this is most useful when the OOM condition is due to mismanagement
of memory, on a system where the applications in question don't respond well
to being killed.

In theory, if the system is properly managed, it shouldn't be possible to
hit this condition. If it does, the panic can be more desirable for some
users (since it can be a good means of finding the root cause) rather than
killing the largest process and continuing on its merry way.

As kib@ mentions in the differential, there is also protect(1), which uses
procctl(PROC_SPROTECT) to ensure that some processes are immune.  However,
a panic approach is still useful in some environments.  This is primarily
intended as a development/debugging tool.

Differential Revision:	D1627
Reviewed by:		kib
MFC after:		1 week
2015-01-24 17:32:45 +00:00
..
amd64 Add macro to identify AVIC capability (advanced virtual interrupt controller) 2015-01-24 00:35:49 +00:00
arm Add support for audio transmitting, include drivers for: 2015-01-24 13:07:07 +00:00
boot Add support for audio transmitting, include drivers for: 2015-01-24 13:07:07 +00:00
bsm
cam Fix wrong LUN reference in XCOPY block-to-block operation. 2015-01-24 15:40:52 +00:00
cddl When creating or updating a node, use vfs_timestamp() for "now" instead 2015-01-24 00:43:02 +00:00
compat Run make sysent. 2015-01-23 21:08:24 +00:00
conf Make sure the compiler flag to get cxgbe(4) to compile with gcc is used 2015-01-24 04:41:14 +00:00
contrib Add missing linuxapi module dependencies and always use the FreeBSD 2015-01-19 21:53:00 +00:00
crypto Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
ddb ddb: ANSI-fy function declarations. 2014-10-12 18:01:52 +00:00
dev Remove Giant from /dev/mem and /dev/kmem. It is definitely not needed 2015-01-24 12:51:15 +00:00
fs Stop enforcing additional reference on all cdevs, which was introduced 2015-01-19 17:36:52 +00:00
gdb
geom Add devd(8) notifications for creation and destruction of GEOM devices. 2015-01-14 11:15:57 +00:00
gnu reiserfs: Use signed i_nlink 2014-09-25 19:10:32 +00:00
i386 Remove Giant from /dev/mem and /dev/kmem. It is definitely not needed 2015-01-24 12:51:15 +00:00
isa
kern Run make sysent. 2015-01-23 21:08:24 +00:00
kgssapi Avoid dynamic syscall overhead for statically compiled modules. 2014-10-26 19:42:44 +00:00
libkern Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
mips Remove Giant from /dev/mem and /dev/kmem. It is definitely not needed 2015-01-24 12:51:15 +00:00
modules Make sure the compiler flag to get cxgbe(4) to compile with gcc is used 2015-01-24 04:41:14 +00:00
net Improve the distribution of LAGG port traffic. 2015-01-23 00:06:35 +00:00
net80211 Switch around the order of static inline to be in line with how it's 2015-01-11 18:43:45 +00:00
netgraph When the node receives NGM_FLOW_COOKIE update the if_link_state, instead 2015-01-12 09:50:42 +00:00
netinet Log hardware interface up/down as "hardware" rather than just "hw". 2015-01-23 14:30:24 +00:00
netinet6 Refactor / restructure the RSS code into generic, IPv4 and IPv6 specific 2015-01-18 18:06:40 +00:00
netipsec In order to reduce use of M_EXT outside of the mbuf allocator and 2015-01-06 12:59:37 +00:00
netnatm
netpfil Back out r276841, r276756, r276747, r276746. The change in r276747 is very 2015-01-22 01:23:16 +00:00
netsmb
nfs Remove the old NFS client and server from head, 2014-12-23 00:47:46 +00:00
nfsclient Remove the old NFS client and server from head, 2014-12-23 00:47:46 +00:00
nfsserver Use M_SIZE() instead of hand-crafted (and mostly correct) NFSMSIZ() macro 2015-01-07 17:22:56 +00:00
nlm Avoid dynamic syscall overhead for statically compiled modules. 2014-10-26 19:42:44 +00:00
ofed Revert for r277213: 2015-01-22 11:12:42 +00:00
opencrypto Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
pc98 Factor out duplicated code from dumpsys() on each architecture into generic 2015-01-07 01:01:39 +00:00
powerpc Fix typo in r277561. 2015-01-24 01:58:15 +00:00
rpc Add facility to stop all userspace processes. The supposed use of the 2014-12-13 16:18:29 +00:00
security Adjust printf format specifiers for dev_t and ino_t in kernel. 2014-12-17 07:27:19 +00:00
sparc64 Remove Giant from /dev/mem and /dev/kmem. It is definitely not needed 2015-01-24 12:51:15 +00:00
sys Provide individual prototype and generate macros for the red-black tree. 2015-01-24 12:43:36 +00:00
teken mdoc: improvements to SEE ALSO. 2014-12-27 07:07:37 +00:00
tools
ufs Handle MAKEENTRY cnp flag in the VOP_CREATE(). Curiously, some 2014-12-21 13:29:33 +00:00
vm Add vm.panic_on_oom sysctl, which enables those who would rather panic than 2015-01-24 17:32:45 +00:00
x86 loader: fix the size of MODINFOMD_MODULEP 2015-01-20 12:28:24 +00:00
xdr
xen Pacify clang 3.3 by ending the file with a newline. This is common 2015-01-06 21:26:35 +00:00
Makefile Remove "pci" from CSCOPEDIRS. 2014-09-23 06:32:19 +00:00