Re: Out-of-swap killer and SIGTERM signal

From: Eugene Grosbein <eugen_at_grosbein.net>
Date: Mon, 10 Jan 2022 13:14:57 UTC
10.01.2022 19:55, ralph41096 wrote:

> Do you think it would be a good idea to introduce the following soft
> mode for the Out-of-swap killer?
> 
> Old behaviour:
>   1) If there is no free swap space left, send SIGKILL signals to the
>      condemned processes. (This is the hard mode.)
> 
> New behaviour:
>   1) If there is less than 2 GiB of free swap space, send SIGTERM

Keep in mind that swap is optional feature and there are systems running without any swap configured.