From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4Cx4HBMlhWAGbgAAgWs5BA (envelope-from ) for ; Sun, 25 Apr 2021 10:15:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yLIxFxMlhWDwVwAA1q6Kng (envelope-from ) for ; Sun, 25 Apr 2021 08:15:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B5ABA1AF9D for ; Sun, 25 Apr 2021 10:15:13 +0200 (CEST) Received: from localhost ([::1]:52542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laZv5-0005XX-NU for larch@yhetil.org; Sun, 25 Apr 2021 04:15:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laZuw-0005XE-Ub for bug-guix@gnu.org; Sun, 25 Apr 2021 04:15:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1laZuw-0008QM-NH for bug-guix@gnu.org; Sun, 25 Apr 2021 04:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1laZuw-0000sb-IZ for bug-guix@gnu.org; Sun, 25 Apr 2021 04:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47717: guix outrageously exhaust itself (freeze) when there is package build failure Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 25 Apr 2021 08:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47717 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mark H Weaver Received: via spool by 47717-submit@debbugs.gnu.org id=B47717.16193385003356 (code B ref 47717); Sun, 25 Apr 2021 08:15:02 +0000 Received: (at 47717) by debbugs.gnu.org; 25 Apr 2021 08:15:00 +0000 Received: from localhost ([127.0.0.1]:41936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1laZut-0000s4-U3 for submit@debbugs.gnu.org; Sun, 25 Apr 2021 04:15:00 -0400 Received: from flashner.co.il ([178.62.234.194]:59802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1laZus-0000rq-2n for 47717@debbugs.gnu.org; Sun, 25 Apr 2021 04:14:59 -0400 Received: from localhost (unknown [31.210.177.125]) by flashner.co.il (Postfix) with ESMTPSA id 7E80240363; Sun, 25 Apr 2021 08:14:51 +0000 (UTC) Date: Sun, 25 Apr 2021 11:14:04 +0300 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Mark H Weaver , Maxim Cournoyer , bo0od , 47717@debbugs.gnu.org References: <87fszvfirn.fsf@nckx> <0dbc191f-f567-01f0-b20e-67c00fd28937@riseup.net> <87czuxem1r.fsf@nckx> <4e1f8d67-2329-6ba1-4e21-9ec978de3cb3@riseup.net> <878s5jiann.fsf@netris.org> <871rb4fmhl.fsf@gmail.com> <87k0ouyxpy.fsf@netris.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NgstUe9iKRclTmTL" Content-Disposition: inline In-Reply-To: <87k0ouyxpy.fsf@netris.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bo0od , Maxim Cournoyer , 47717@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619338514; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=SAEEilXvd7KXgD0jTcYqHJphBfZMh1C3X9jzHYkjoVo=; b=U6TfmMKkvZVJe8/VFGVpArIRbl3KopQIVG3ddUldFUWvKptdcdPXnvTz1bJ3B6h2SgljSP aMgElLM5V9QAOPC5rhgvbVauAP4Rj3ouqBnJmTR9e49p6KVg5r7c5ikAyLfaxzJrXEqXxN 5gI4RS3xVCjX0OYGsmIL8tnyPkdUbD47LfTZ9qCbszRvuJr0601yMcr2a06KYSsdKUXL4B lfDfUmPMoxMKNS7+M94HPqvV1Gj7wx6hbqGLB4nn+aTdOF4JiQ5biod8eURVps4Ts9Ik8E zoz4vfvk2T396pMmRMbZxQhnpkulw2jNSwgi9DqJ5D5CeHwm0PKzGn/sELH+aQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619338514; a=rsa-sha256; cv=none; b=j9E6xfHc9IXmfT7MEapaIlNr3T5YrnJmwAZTGISYShPPZ01X2HQkmYbJDbFci9GSgzc0Jn h+SCahPuQcPAeMluwjTOxYCmyCawPpcorgEo4hQzS6vhEwyhNoS6x0XJPilw9t9EICcrzh hDRpBB/dBrMVPCrbXPhW8kTx5Z15JPLFC4DhbsGc02tnaTyt6NlsNIPQP3LfizH6OdZf/k cy3Nvy9M3e6rJbcEMPRPgs7MNo1mzdpb2kjW0Sqsa6CzkbRcQ9PRrJlTgGl09xNNtdmMEL R0ZJt3CK4CyvGJG5i2nWnbwA4wv6u9uAZ+pi9IfTC3XXYqsBKjh6/22yqq/tHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.54 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: B5ABA1AF9D X-Spam-Score: -2.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: 70qLvP6EocAl --NgstUe9iKRclTmTL Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 22, 2021 at 02:34:22PM -0400, Mark H Weaver wrote: > Hi Maxim, >=20 > Maxim Cournoyer writes: >=20 > > Mark H Weaver writes: > > > >> 'earlyoom' behavior is not necessarily desirable. I, for one, have a > >> fairly old computer by today's standards, and sometimes I ask it to do > >> intensive things that are at the edge of its capabilities, such as > >> compiling GNU IceCat. An aggressive 'earlyoom' might prematurely abort > >> jobs that could have completed, and thereby make it impossible for me = to > >> continue using this old computer for development. > >> > >> With that in mind, it's far from clear that 'earlyoom' should be our > >> default behavior. It's good to have it as an option, though. > > > > Earlyoom's default config is to only kills processes when both the > > physical memory *and* the swap have been used by more than 90%; in such > > as serious resource depletion situation, that usually mean having to > > hard reset the machine, or waiting one night not knowing if it'll be > > done doing whatever it's doing the next morning (probably getting OOM'd > > anyway by the kernel, Linux). > [...] > > My 2 cents here is that earlyoom makes Guix System more usable on dated > > hardware than Linux's default OOM behavior; from my experience of using > > it on a 4 GiB RAM 2010-era laptop for a good while. >=20 > Okay, I trust your judgment on this. I haven't tried 'earlyoom' myself. > Moreover, my use case is very unusual, and so it doesn't make sense to > choose a default behavior based on my needs. >=20 > So, I've changed my mind. Thanks for talking me through it. >=20 > > I personally would see it a good option for our users to have it on by > > default *if* we could manage to connect Earlyoom's notification system > > with the desktop (via D-Bus, I think it supports that), so that when a > > process is killed, the users has some feedback about it (the stock Linux > > OOMK is sure to not let you wondering what's going on -- everything > > stops to a crawl, and your hard drive gets thrashed). >=20 > That sounds excellent, if it can be done. Otherwise, it might still > make sense to have 'earlyoom' on by default in Guix. I'll leave it to > others to decide. >=20 > Thanks, > Mark FWIW I setup OOM so that it would specifically kill build processes or icecat but not my desktop. (service earlyoom-service-type (earlyoom-configuration (prefer-regexp "(cc1(plus)?|.rustc-real|ghc|Web Conte= nt)") (avoid-regexp "enlightenment"))) --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --NgstUe9iKRclTmTL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmCFJMoACgkQQarn3Mo9 g1EPAQ//ZMvZNOls+zMILSUUbQte/tsnOEpW1FBqpTQJddZDtgOVCQEzR9LjfNSF mxcyHVyTRvXBbkeb06RuMTtWzFGJwXPBQitXytDt/5J5UHHQ+1Ew86MOMNfluxQ2 j1Mucqz8iRMu1GkjeTKpp5obYwHo0jq6D8h31dUIILwXwB2tLov7jaQ1ZQQhux8Q Jnf/wP4RoV2AQLhYtoXh8dOOsYDJg7Ii9BO8a1Frh4hHaeBR94ZLzodxdRrE4FHM HNQOuOkYaSjU1Z/upc3C/IbkPmJ7RwgzFrY/raR8N235qlARRvQeGMCtWVacpMEA FYySbwHSh7uHf1zfpx2eU4a2U4KYSywLq9RI/w01VwBQJigVixbF3oru9pQf7cK6 Chp50Oq7yOdm8tS2d0DCIGllrTLPKOjuFElNiu9n6AwHhBThEb1QmByzGDbM7tR4 diExmDhMCYViM25qKjvYvJ7rKPKesBz3Xe30A43Ah8jmbznQ9ykmr2CuyCmB0KgJ E/wxF9ByRA1ddEFZ6kvNKBKuXJ0pmuLvyKoDV3nH/1TvdJOq7ep4Gsmgl0ZgLlMc 72jlc3cfMOwFXa6I9u/g5n1h9OTPSsDP5MOoz3cqjR2AYn2bmtjjVzKxRbVwPZFa 3WxJKM3TpPfVLFEoadKN2ImlRaKf6six+gQMhPnP4jTo0E2OtKM= =JyLY -----END PGP SIGNATURE----- --NgstUe9iKRclTmTL--