From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yPNZEo6Bf2DlAgEAgWs5BA (envelope-from ) for ; Wed, 21 Apr 2021 03:36:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QIsXDo6Bf2CNewAA1q6Kng (envelope-from ) for ; Wed, 21 Apr 2021 01:36:14 +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 737A5AC44 for ; Wed, 21 Apr 2021 03:36:13 +0200 (CEST) Received: from localhost ([::1]:56552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZ1mk-0006vK-H8 for larch@yhetil.org; Tue, 20 Apr 2021 21:36:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZ1mc-0006u5-Jg for bug-guix@gnu.org; Tue, 20 Apr 2021 21:36:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZ1mc-0007x7-7a for bug-guix@gnu.org; Tue, 20 Apr 2021 21:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZ1mc-0001AN-3U for bug-guix@gnu.org; Tue, 20 Apr 2021 21:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47717: guix outrageously exhaust itself (freeze) when there is package build failure Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 21 Apr 2021 01:36: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.16189689434458 (code B ref 47717); Wed, 21 Apr 2021 01:36:02 +0000 Received: (at 47717) by debbugs.gnu.org; 21 Apr 2021 01:35:43 +0000 Received: from localhost ([127.0.0.1]:56507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZ1mJ-00019q-Fp for submit@debbugs.gnu.org; Tue, 20 Apr 2021 21:35:43 -0400 Received: from mail-qk1-f177.google.com ([209.85.222.177]:37796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZ1mH-00019c-Es for 47717@debbugs.gnu.org; Tue, 20 Apr 2021 21:35:41 -0400 Received: by mail-qk1-f177.google.com with SMTP id t17so13002375qkg.4 for <47717@debbugs.gnu.org>; Tue, 20 Apr 2021 18:35:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=y2Af1T7s4JBacYumBDoFIYBEtKZmNQxIoyuvOK4vQdo=; b=P4WN5zCw23Kiys/PAAM6/T5BtYkMr6nl/t+CUH6cu9R5f9aHQr07JmJKhBm569K/O0 iHfpWLjZxKpUeuEWFJmHwEaaARbGLVPfDz+kqgaBmSjIQrGnR2PUJPF9d9fj2e3+57ZA L6+zkbFhN7x/g15Ua96a5KmwRI6AcEwcBUe1s6TQ7wLBhkVfuDENXA2JLwaDuV3uTAZB IuozCKqHliBuS4fcO/eg70Tzkg7RUPzgSK5jk5wOAz5t1C5mog6nlGo30g5nYsRRjzQa i9YX17e7xXeeN0Lg1xrk59m7D3faCZ1vY6vl+dC105avES1xl3BnyO+HID1kQqZuiPkE ziTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=y2Af1T7s4JBacYumBDoFIYBEtKZmNQxIoyuvOK4vQdo=; b=ig51W2/yytTYBG4uGs0X2T31QLBGg9X0KUS9vzoZx1V8EM8FhureaAJYe7m3cy+JEv +8mbAcOM9nl1qlHtvzCY8OgztMq/g0B2fqSk249UAsbLV6BScVmJl/vCFTwFW0lnby44 cWyDc1imTTHkaJOHf6b75y+/H9tavXtJw/tgH7CaPqOgdWvxpntjYNBcK6mNfCoDTFB+ +rSdsFncQtFiXBv0KucNDZ8Ytmna3LTqnuIDRtGOnrL8rilHGCmmCyecikf1hDLx0Y+L WoDbcMh75qk7YUsKKQ+sFtOmsx+j3nxxBbN6M98JajTJvlxN/+VfekpcN1fkQlY0h5SY p7JQ== X-Gm-Message-State: AOAM532mUVggKKo4VKiT5CL5tKD0f+YBAnEbgekjD9IgCNpioKdoEFl/ JuKVc5LiTY7wIHGME1Ke3SZsWrhu8ZT89Q== X-Google-Smtp-Source: ABdhPJzDzb6Nr5hcrQBRkdjJ+BF5tREhGGczApyyKp7ZJ2F9KmU4ouPc9k8omSYgGu/c3x2qSBUhGQ== X-Received: by 2002:ae9:ed14:: with SMTP id c20mr13427890qkg.312.1618968935698; Tue, 20 Apr 2021 18:35:35 -0700 (PDT) Received: from hurd (dsl-205-151-56-5.b2b2c.ca. [205.151.56.5]) by smtp.gmail.com with ESMTPSA id q28sm831002qkm.15.2021.04.20.18.35.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 18:35:35 -0700 (PDT) From: Maxim Cournoyer 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> Date: Tue, 20 Apr 2021 21:35:34 -0400 In-Reply-To: <878s5jiann.fsf@netris.org> (Mark H. Weaver's message of "Thu, 15 Apr 2021 15:56:33 -0400") Message-ID: <871rb4fmhl.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 , 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=1618968973; 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: content-transfer-encoding:content-transfer-encoding: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:dkim-signature; bh=y2Af1T7s4JBacYumBDoFIYBEtKZmNQxIoyuvOK4vQdo=; b=sJHiKXMhrcINtBMa2PR9jI/+m2oNOYydB+QCXf3GceCeRLhoRb8qFvCjaiA64712IYHs4w f5WGiQhfxwbBGIxNH9R7ANafCBQ8gIYzwjR88zPAtcXlhEjmZw08T93HBnanM6MUW1yBlf Zb6scRV1cM8BpdQsQQ31gnwytesnxQPTZEJD9XGz8tGn+WYM1V4R3J/BH/bPgaD88olxR6 Qr5R2cLAyc7kORDQCniKAqMigUWsDzaD/JTFYdEipXgeJ3YFV3uY6REliUYqO6i08NIxzO wHIHKQYKyIwKI3XT5OlgwCx445rM6667oFjLRRqHm0Jn3HVxVGCzeE8+3cfjig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618968973; a=rsa-sha256; cv=none; b=JKxQDKAwdgmnsOVoz6CbtpxKR8WHGKnjjRRghpWI0b07X9tDKYgABcXq6pvBWd4/xtlmzg xWqnlJfW/l0685h5tAlRZk6ARRsVamvMkomqRtGrxaMCmK5ELZtmQOhmduaU9qVsStIPNF xY01cnUz4kGp3ufyfUIMzA7HP64d8CzAgGHizElodjRnFklmKRtEn/sT8to2OzJGKeKhCz jDa/KCMIN4F+zB1B2kuum96GfmkMVrP6LXcZJTuTv/jCOnJXNeoNvjAY7AB+P0gnPd1LGk +JVJQ1BEQhMjWrtfGbW2oNl3USBSP7T8FLIlYAm555vARc1g5G3YA7CnS0oJrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=P4WN5zCw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=P4WN5zCw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 737A5AC44 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: OKdXBFRsYjiZ Hi, Mark H Weaver writes: > bo0od writes: > >> > I mean the =E2=80=98outrageously=E2=80=99 part. When Linux runs out = of memory, it >> > freezes up. Moral judgment is futile. Better to adopt raingloom's >> > earlyoom suggestion or similar. >> >> Im using default guix system nothing special, If this package usable to >> solve these stuff i suggest then to include it by default. > > '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). >> > 4 GiB is absolutely not enough to build an outrageous amount of =E2= =80=98modern=E2=80=99 >> > software, especially in parallel (so not using --cores=3D1 --max-jobs= =3D1) >> > to make use of those expensive cores. >> > >> > I'm disgusted too. >> >> Yes it is, But you know this cant be a way of life with guix for end >> user no? Something by default should solve this matter otherwise this is >> not usable distro. > > Many people are happily using it, and are quite enthusiastic about it, > so evidently it's "usable". That doesn't imply that it's good for > everyone. Perhaps you would prefer a more traditional distro, or one > that has had more time to mature. If so, that's okay. 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. 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). Maxim