From owner-freebsd-questions@freebsd.org Sun Jul 26 15:18:38 2020 Return-Path: Delivered-To: freebsd-questions@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 A8D6F362CF8 for ; Sun, 26 Jul 2020 15:18:38 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BF65n3wMHz3SFZ for ; Sun, 26 Jul 2020 15:18:37 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=ReaC3zgjcEYIp0qIFZJ8j9e9xKyx7IcqUfDHth1hfy8=; b=ka3GF0LBBNH8hncn2IqfUIVfIX NVWcmoArws1bwBUEbKWSG5rS2uqpcimw+GC2aRIRb90ia7+vKWvAryNvDKeWWDg30rFE6S6SQKZ2S KIDPy1tHJRvA0YT0Zehq8gSTfft+nlS5YTySz/YsCpiM2sMhnvj8sZP477GG90zLiayQ=; Received: from vas by admin.sibptus.ru with local (Exim 4.94 (FreeBSD)) (envelope-from ) id 1jziQ7-0009Ni-Tv for freebsd-questions@freebsd.org; Sun, 26 Jul 2020 22:18:35 +0700 Date: Sun, 26 Jul 2020 22:18:35 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: Ask stupid questions and you'll get a stupid answers, was: Technological advantages over Linux Message-ID: <20200726151835.GA35966@admin.sibptus.ru> References: <20200725152412.GJ92589@admin.sibptus.ru> <20200725162403.GA4721@admin.sibptus.ru> <20200725182554.deffc63058a7c9f6d343ef06@sohara.org> <04df312d-9b2b-1873-2117-79a49e089bd9@kicp.uchicago.edu> <20200726063256.GA22924@admin.sibptus.ru> <20200726093909.ee5e14e643d31da4dad5c804@sohara.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline In-Reply-To: <20200726093909.ee5e14e643d31da4dad5c804@sohara.org> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 X-Rspamd-Queue-Id: 4BF65n3wMHz3SFZ X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=ka3GF0LB; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-5.71 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.02)[-1.025]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.01)[-1.012]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; NEURAL_HAM_SHORT(-0.57)[-0.574]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jul 2020 15:18:38 -0000 --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Steve O'Hara-Smith wrote: >=20 > > FreeBSD freezes, then kills some innocent random processes like > > local_unbound, then it may slowly recover. Sometimes it guesses > > correctly and kills the offender (firefox most often). >=20 > What else would you have it do ? Kill the largest process ? Kill > the last process to call malloc ? There is no good response to OOM. The OS > has no way to know which processes you care about most. AFAIK the Linux OOM killer uses multiple weighted criteria to decide which process to kill. Each process has an oom_score showing its eligibility to be killed. So at least Linux attemps intelligent killing. What about FreeBSD? --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJfHZ7LAAoJEA2k8lmbXsY0Ff0IAJ1/CtC8LeWyBnsTao0i+YcD adAKSs1/WbqJ/hW/vEgNPHhbfENuFEqB2FoKeE4DTboqTo2xFBeRoJXqyobOF8wA THKjzEWbCSiKAyO+nn19LwixiwuOx8LDrI/8R2SJZKHujmbC503Sm1cDR7wvjqp2 TTLSjH4gSbOwmv41QIYhn8EVERKd6dy0LYe0J1mBfrfi4ND8uGQ81d0XhVcgYhe7 4VyUu+2KWsfg7XAPo9CnDBNf9+tlMnsZjqSsZHPm9fnImve2ggbdku0sYuMJHodj gsDj6KpGymDpwx19VM9qI8cV/V6qaKiN1vny5167+C8AoPhrzghPnOSYf019WcU= =cWP+ -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J--