svn commit: r277651 - head/sys/vm
Garrett Cooper
yaneurabeya at gmail.com
Sat Jan 24 19:34:12 UTC 2015
> On Janc 24, 2015, at 09:32, Will Andrews <will at FreeBSD.org> wrote:
>
> Author: will
> Date: Sat Jan 24 17:32:45 2015
> New Revision: 277651
> URL: https://svnweb.freebsd.org/changeset/base/277651
>
> Log:
> 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.
Hi Will!
Could you please add a kernel option to set the default from 0 to 1, or provide a tunable so the value could be set in loader.conf?
Thanks!
More information about the svn-src-all
mailing list