The out-of-swap killer makes poor choices
Bob Bishop
rb at gid.co.uk
Wed Feb 24 14:26:29 UTC 2021
Hi,
> On 24 Feb 2021, at 12:38, Thierry Thomas <thierry at freebsd.org> wrote:
>
> Le mer. 24 févr. 21 à 13:02:14 +0100, Olivier Certner <olivier.freebsd at free.fr>
> écrivait :
>
>> Hi,
>
> Hello,
>
>> 2 to 3 years ago, I stumbled against production problems on servers doing
>> heavy computations. Only a few processes (2 generally) were doing them, and
>> most of the time consumed less than 1/4 of the available RAM (2 GiB). Apart
>> from that, no other process was allocating any significant amount of memory.
>> Only some base default daemons (syslogd, cron) and sshd were running.
>> Occasionally, very big jobs would come, and one or more of these processes
>> would start eating up all available memory, until FreeBSD decided that it was
>> time to take action.
>
> For such cases, another solution exists on Linux to dynamically enlarge
> the swap partition (something like dphys-swapfile or SwapSpace - see
> <https://github.com/Tookmund/Swapspace> ), but I do not know if such a
> tool exists on FreeBSD?
You can of course add swap to a running system using swapon(8), but I have no idea whether this will improve behaviour if the system is already low on resources.
> --
> Th. Thomas.
--
Bob Bishop
rb at gid.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20210224/29c6dd55/attachment.sig>
More information about the freebsd-hackers
mailing list