|
NAMEprotect —
protect processes from being killed when swap space is
exhausted
SYNOPSIS
DESCRIPTIONTheprotect command is used to mark processes as
protected. The kernel does not kill protected processes when swap space is
exhausted. Note that this protected state is not inherited by child processes
by default.
The options are:
Note that only one of the EXIT STATUSTheprotect utility exits 0 on success,
and >0 if an error occurs.
EXAMPLESMark the Xorg server as protected:pgrep Xorg | xargs protect
-p Protect all ssh sessions and their child processes: pgrep sshd | xargs protect
-dip Remove protection from all current and future processes: protect -cdi -p 1 SEE ALSOprocctl(2)BUGSIf you protect a runaway process that allocates all memory the system will deadlock.
Visit the GSP FreeBSD Man Page Interface. |