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 SOYHBvckd2AY2wAAgWs5BA (envelope-from ) for ; Wed, 14 Apr 2021 19:23:03 +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 CCKaO/Ykd2B1dwAA1q6Kng (envelope-from ) for ; Wed, 14 Apr 2021 17:23:02 +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 5F7921576F for ; Wed, 14 Apr 2021 19:23:02 +0200 (CEST) Received: from localhost ([::1]:44022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWjED-0002rp-24 for larch@yhetil.org; Wed, 14 Apr 2021 13:23:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWj0j-0006dm-5T for bug-guix@gnu.org; Wed, 14 Apr 2021 13:09:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52284) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWj0f-0001eZ-Um for bug-guix@gnu.org; Wed, 14 Apr 2021 13:09:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWj0f-0003Su-Pj for bug-guix@gnu.org; Wed, 14 Apr 2021 13:09:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47717: guix becomes unresponsive while building the 'vigra' package Resent-From: bo0od Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 14 Apr 2021 17:09:01 +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 , Leo Famulari Received: via spool by 47717-submit@debbugs.gnu.org id=B47717.161842013413306 (code B ref 47717); Wed, 14 Apr 2021 17:09:01 +0000 Received: (at 47717) by debbugs.gnu.org; 14 Apr 2021 17:08:54 +0000 Received: from localhost ([127.0.0.1]:35597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWj0X-0003SX-Rz for submit@debbugs.gnu.org; Wed, 14 Apr 2021 13:08:54 -0400 Received: from mx1.riseup.net ([198.252.153.129]:39040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWj0W-0003SJ-DQ for 47717@debbugs.gnu.org; Wed, 14 Apr 2021 13:08:53 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4FL87y6TmlzDxWp; Wed, 14 Apr 2021 10:08:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1618420126; bh=LUTOTHx3WkthwtxabOk/6OUgGQAEc7WL3LSvBr4Qe44=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=K1eMNpA8cbo845N47LwNaAp8Sq/O4vsg1Ws+Htuvy62r4sbSbvsQmYUuhMQmu8ky+ JPWRpD6cwFxys1xOyKJCv1JiYFToQtmsF5bZGL3/wUObxZYng2xhWZ4KyWgQzl/aH0 e0TbfBqIF2gLaQDH4cUTEjjusatDST9m/rGW2I1Y= X-Riseup-User-ID: DC098975B229CE4FE849A6AA799E8CADD12CB21C2BBFC13F23385F3E44B23152 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4FL87s0rtWz1xmv; Wed, 14 Apr 2021 10:08:39 -0700 (PDT) References: <73e4e511-b66a-e62b-7ce8-bb6029ef0d2c@riseup.net> <87im4pqnrg.fsf@netris.org> From: bo0od Message-ID: <660cd94a-1983-a59d-96d5-dd79794b2460@riseup.net> Date: Wed, 14 Apr 2021 17:08:33 +0000 MIME-Version: 1.0 In-Reply-To: <87im4pqnrg.fsf@netris.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 14 Apr 2021 13:12:52 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 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=1618420982; 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=yInvNPm9/cWOlD3CI4JP0WfTqB1t93nlzgTzjE50s8c=; b=q3eLe4QMmO6UR6iVeSBTjV2kKA9DkRAgs25De8+dDVF2L9o2TN9mkpC9g3hiAOcMXebVRS RqOLp9ehhpPghfPTKtSYQujjDixkW4xS+8hfKD4JL9/n/hAc5BA2gUVN39xJ16MI8rb0P3 QQ2vFFPVBPiJiD+rLjjPMY80C6jixpMaejlIOjSeEym2eQCXv08duvqLFyEvWltYLGpYAb 8Lv1yd1YyWJMVANBGE1olq0VI/6rIhRHVjsGTxBVxeXFnDr2Qz27D5JVhWfy6ym4JKZ26Z m+gTYPdVpRIo9+emJGEyFqkuKhVtXR13D46UAenC2rEgjsn6SQcNNq8ZBFnRYQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618420982; a=rsa-sha256; cv=none; b=foy7sREJAQGWshYWOv68B6gWjxjYiJ3+yLcTB2S8UGEOJnQqI4Ygu8g8dvx1d4Gy+DtY7s fOjADQ/yLlMWSH+VqD28UrHFhaUAjRW3JlOp3hsCX26vumkaSRQuSx5bwWMZRfiQDVSLW4 Az5tDLRIG57E1oOIYY/47eELQK1oUVbfx8bzwoYIcE0CBGNVsthGpjxRh8L+WqsVYCmKDK yFvwC9G+QvRqP/Z/5defRi4a2CA8QrEhwdr/ACHbVgVtyy86gueG5094fYgJGuXXBnysSA wlNL4b4kMnEmKE4ytrWNAOwvtK+ipux9rGrJRwUi8cj4Tq3mE1lxboBHs6Lcbg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=K1eMNpA8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (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=riseup.net header.s=squak header.b=K1eMNpA8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (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: 5F7921576F X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: M+zm4Ah1PGgS > It might help to pass --cores=2 (or perhaps even --cores=1) to > guix-daemon, which should hopefully be honored by the build systems of > most of our packages, but probably not all (bug reports welcome). Thanks for the suggestion, But you know this is gonna be mouse and cat issue if its not fixed by default for the end user. - No warning in the docs saying that guix not intended to be for end user with average pc resources (if no body willing to give solution by default). - No popup telling the user your pc resources/rams (whatever) are low please allow the usage of substitutes for this package in order to avoid possible machine exhausting/freezing <- or any similar message. ...etc from similar ideas. But leaving it to the air whenever happen it happen and user later discover that guix just refrigerator/freezer tool then wonder why would the user keep using it... Mark H Weaver: > bo0od writes: > >> > What kind of computer are you using? Are you using swap? >> >> 4GB DDR3 rams, i7 4th generation , 20GB for Guix about 9GB swap > > For the record: I don't use binary substitutes at all, and I build my > GNOME system plus IceCat locally, using Guix, on a modest Thinkpad X200 > with 4GB of RAM and 8GB of swap, all while running a GNOME session with > Emacs. > > I can build _most_ (but not all) packages while running IceCat. > However, some builds, e.g. IceCat and WebKitGTK, require too much memory > to build while simultaneously running a modern web browser. > > I haven't tried to build Libreoffice recently, but I did so regularly a > few years ago. > > * * * > > I suspect that your problem is that you have too many CPUs relative to > your relatively modest 4GB of RAM. The more CPUs you have, the more > compilers will be run concurrently (by default), and the more RAM you > will need. > > In my case, I have only 2 CPUs on my system, so I have only two > instances of GCC (or whatever compiler) running at any given time. > > It might help to pass --cores=2 (or perhaps even --cores=1) to > guix-daemon, which should hopefully be honored by the build systems of > most of our packages, but probably not all (bug reports welcome). > > On a Guix system, you can arrange for this in your OS config with > something like the following (untested): > > __ (modify-services %desktop-services > ____ (guix-service-type config => > _______________________ (guix-configuration > _________________________ (inherit config) > _________________________ (extra-options '("--cores=2"))))) > > Mark >