From owner-freebsd-hackers@freebsd.org Wed Feb 24 12:38:33 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BF2BB55BF8A for ; Wed, 24 Feb 2021 12:38:33 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from edna.lautre.net (edna.lautre.net [80.67.160.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "lautre.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DlwSm6lVqz3C7y for ; Wed, 24 Feb 2021 12:38:32 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from graf.pompo.net (graf.pompo.net [78.225.128.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by edna.lautre.net (Postfix) with ESMTPSA id 7510D11D956 for ; Wed, 24 Feb 2021 13:38:21 +0100 (CET) Received: by graf.pompo.net (Postfix, from userid 1001) id B05417C7C56; Wed, 24 Feb 2021 13:38:17 +0100 (CET) Date: Wed, 24 Feb 2021 13:38:17 +0100 From: Thierry Thomas To: freebsd-hackers@freebsd.org Subject: Re: The out-of-swap killer makes poor choices Message-ID: Mail-Followup-To: freebsd-hackers@freebsd.org References: <1984125.0OzZcVfBr4@ravel> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7RIpcGXDOQOnB0f9" Content-Disposition: inline In-Reply-To: <1984125.0OzZcVfBr4@ravel> X-Operating-System: FreeBSD 12.2-STABLE amd64 Organization: Kabbale Eros X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: X-PGP: 0xF1C516B3C8359753 X-Rspamd-Queue-Id: 4DlwSm6lVqz3C7y X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of thierry@pompo.net designates 80.67.160.88 as permitted sender) smtp.mailfrom=thierry@pompo.net X-Spamd-Result: default: False [-5.07 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_DN_NONE(0.00)[]; HAS_ORG_HEADER(0.00)[]; NEURAL_HAM_SHORT(-0.97)[-0.975]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[thierry@freebsd.org,thierry@pompo.net]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[80.67.160.88:from]; ASN(0.00)[asn:20766, ipnet:80.67.160.0/19, country:FR]; R_DKIM_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[thierry@freebsd.org,thierry@pompo.net]; TO_DOM_EQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEFALL_USER(0.00)[thierry]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[80.67.160.88:from:127.0.2.255]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2021 12:38:33 -0000 --7RIpcGXDOQOnB0f9 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le mer. 24 f=E9vr. 21 =E0 13:02:14 +0100, Olivier Certner =E9crivait=A0: > Hi, Hello, > 2 to 3 years ago, I stumbled against production problems on servers doing= =20 > heavy computations. Only a few processes (2 generally) were doing them, a= nd=20 > most of the time consumed less than 1/4 of the available RAM (2 GiB). Apa= rt=20 > from that, no other process was allocating any significant amount of memo= ry.=20 > Only some base default daemons (syslogd, cron) and sshd were running.=20 > Occasionally, very big jobs would come, and one or more of these processe= s=20 > would start eating up all available memory, until FreeBSD decided that it= was=20 > 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 ), but I do not know if such a tool exists on FreeBSD? --=20 Th. Thomas. --7RIpcGXDOQOnB0f9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJgNki5XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFNTM2QkU4NTM4NTM5OUQwMEI2RkFBNzZG MUM1MTZCM0M4MzU5NzUzAAoJEPHFFrPINZdTs7MP/1iAVsZAtvst8Y+1x8XqYYbD FwAbLh6xIvkRZYOfmnSARDR4/2ZN+F7ixoX30CnjtNSxaw/z1199HRlNpFlhDQDi Fc1PZyF55Z3NmHPelhlNuUPRlIcGHxP0V4bu1/RLgqX7EkdUjGbPJnTPeH7Ws2jG VAGdMBuaaL8ZehZlyTp5J7mGShWJQV3kH/7KvnNL4UZKSNUtpXe9sbeSwF78xu/r twvgRKk//7731ZMi4jwaWqHgAneCoXA4d9DHLFMnwAC4Og9r+KCHlTuE0DpE9zCB EHcXShTdcl+h3I7aALI2D4m3Xkd+t8q7nnNaCKPlE+KeFTOhstB31u+aWdDd1UBn /XioAYx4prGMxoZTuFPlYhxPUO9r6n/AUhMgLouNlq3uS9krncz5E6w3aeuLvEG4 4ipYkGlu60iRKrX9x8ZMltBVEZ6sO74AdT2Tr5v/Y88TBhiWicymSlBvSDKBeQnb DkuQSBInb6SOYkooIQbQfxyjopQQ37UvWg/UqM/FXwJgl/UtlbKzVaaDZWfIPfZB QAJqKkcMKW02PCXauFgrcszrfkiGKARoB6SkCZjJW38ldCUTO9LbZOEPekRedAi8 r6tacc+66BodRcpwQPDNSNu48ZGfomEbeOyaD5CJeb2uzUOLapAXhTLLrhL9ymhe H6jqFUWx2jt4qulg+Ezd =3+8/ -----END PGP SIGNATURE----- --7RIpcGXDOQOnB0f9--