From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] DRAFT: build: Compile scheme modules in batches (was Re: Release!) Date: Sun, 08 Oct 2017 14:03:53 +0200 Message-ID: <87376tonh2.fsf@elephly.net> References: <877f16z9eo.fsf@gnu.org> <87infv54m3.fsf@gnu.org> <87efqgnn7x.fsf@elephly.net> <87fuavzjms.fsf_-_@netris.org> <8760bqngiz.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1B1j-0001Xs-4j for guix-devel@gnu.org; Sun, 08 Oct 2017 08:49:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1B1e-0005kZ-9N for guix-devel@gnu.org; Sun, 08 Oct 2017 08:49:51 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21110) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e1B1d-0005jt-Vv for guix-devel@gnu.org; Sun, 08 Oct 2017 08:49:46 -0400 In-reply-to: <8760bqngiz.fsf@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Mark H Weaver Cc: guix-devel@gnu.org Ricardo Wurmus writes: >> I've attached a workaround that I've been using for the last 6 weeks on >> my MIPS-based Yeeloong running GuixSD, since it only has 1 GB of RAM and >> otherwise it would not be able to successfully build the 'guix' package. >> >> Note that I never use 'guix pull', so I'm not sure off-hand whether this >> solves the problem there, but it certainly greatly reduces the memory >> needed to run 'make' and thus to build the 'guix' package. > > thank you for this patch. I’m trying it on my i686 with 1GB of RAM now. > My own attempt to revert the commit to build all files in one process > resulted in a guix pull that would only go to 20.4% and then sit there > doing nothing. > > I’ll report back once I manage to run “guix pull --url=/path/to/guix” > with this patch. 20 files at once is still too much when running “guix pull” on my i686 netbook. I tried lowering this to 10 files and still ran out of memory (after 70 minutes of compiling). I’m now trying with 3 files at a time. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net