Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 2021 14:26:20 +0000
From:      Bob Bishop <rb@gid.co.uk>
To:        Thierry Thomas <thierry@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: The out-of-swap killer makes poor choices
Message-ID:  <500F4BE2-87C4-45F8-85A9-326498F47CC5@gid.co.uk>
In-Reply-To: <YDZIuXCgcpbvm57d@graf.pompo.net>
References:  <CAOtMX2jYmrK7ftx62_NEfNCWS7O=giHKL1p9kXCqq1t5E1arxA@mail.gmail.com> <CAOtMX2i3Njo=KBP=99_G0%2BKuSa00CVgNvacmzhTaoZUYEhwPPA@mail.gmail.com> <YDYyQ1V/hEAGV%2ByJ@kib.kiev.ua> <1984125.0OzZcVfBr4@ravel> <YDZIuXCgcpbvm57d@graf.pompo.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi,

> On 24 Feb 2021, at 12:38, Thierry Thomas <thierry@freebsd.org> wrote:
> 
> Le mer. 24 févr. 21 à 13:02:14 +0100, Olivier Certner <olivier.freebsd@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@gid.co.uk





[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQR+a6Wh87I/iYwcbE+8xpPppLfFvwUCYDZiDAAKCRC8xpPppLfF
v6H2AKCGszzAPANOMH0st0NkTjrNc1VcZQCfcK2VMcf0P9pIsLZuR5xnHx2u6qs=
=sT/v
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?500F4BE2-87C4-45F8-85A9-326498F47CC5>