]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Add a global option where we can protect processes when swap space
authoraraujo <araujo@FreeBSD.org>
Wed, 24 Feb 2016 01:32:12 +0000 (01:32 +0000)
committeraraujo <araujo@FreeBSD.org>
Wed, 24 Feb 2016 01:32:12 +0000 (01:32 +0000)
commitbd6a91854eae451ea33663192a4183e0e2b8d2dd
tree7283f29397f0b9e2ec643a5b81c186aee1b19d71
parentc2197759a2059fe92bc16e6763e6b3a0c7e4e5c4
- Add a global option where we can protect processes when swap space
  is exhausted.

How to use:

Basically we need to add on rc.conf an another option like:

    If we want to protect only the main processes.
    syslogd_oomprotect="YES"

    If we want to protect all future children of the specified processes.
    syslogd_oomprotect="ALL"

PR: 204741 (based on)
Submitted by: eugen@grosbein.net
Reviewed by: jhb, allanjude, rpokala and bapt
MFC after: 4 weeks
Relnotes: Yes
Sponsored by: gandi.net
Differential Revision: https://reviews.freebsd.org/D5176
etc/defaults/rc.conf
etc/rc.subr
share/man/man8/rc.subr.8