From owner-freebsd-current@freebsd.org Sun Jan 26 00:02:05 2020 Return-Path: Delivered-To: freebsd-current@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 CFEFC228169 for ; Sun, 26 Jan 2020 00:02:05 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 484tND5Lv7z4Hvp for ; Sun, 26 Jan 2020 00:02:04 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id vVNJiq6JE17ZDvVNKiuIQB; Sat, 25 Jan 2020 17:02:02 -0700 X-Authority-Analysis: v=2.3 cv=ZsqT1OzG c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=Jdjhy38mL1oA:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=c6mPj2GN9QQFLjMPNbYA:9 a=Hyxa5-U28yG75ZZN:21 a=F_7FnpcVgq6rfmR4:21 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id BAF6D6A2; Sat, 25 Jan 2020 16:02:00 -0800 (PST) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id 00Q020Mx007221; Sat, 25 Jan 2020 16:02:00 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id 00Q01xcs007218; Sat, 25 Jan 2020 16:01:59 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <202001260001.00Q01xcs007218@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: sgk@troutmask.apl.washington.edu cc: Cy Schubert , freebsd-current@freebsd.org, Mark Millard , yasu@utahime.org Subject: Re: After update to r357104 build of poudriere jail fails with 'out of swap space' In-reply-to: <20200125235405.GA50378@troutmask.apl.washington.edu> References: <20200125215203.GA49253@troutmask.apl.washington.edu> <3B744DB0-35ED-44FE-8235-A16EE5F925CA@cschubert.com> <20200125233116.GA49916@troutmask.apl.washington.edu> <20200125235405.GA50378@troutmask.apl.washington.edu> Comments: In-reply-to Steve Kargl message dated "Sat, 25 Jan 2020 15:54:05 -0800." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 25 Jan 2020 16:01:59 -0800 X-CMAE-Envelope: MS4wfNhqWoZ46MpNiGajDqtsdGlRsy/K6+4eWuDw5lezT3mQwH78aRPnwTbdXWtMzHZBU1HE0KoI+Vsr8EqIC4e0IrPGDiwvxogupIr15t1sXtRWjIxKm/nm wrTnNFgVfDQrYJaccVwUX6dVdcHC3CmpxbeaalOjJp25NS+poBBt2Isg49+YaY92trqSd23EtPuyRfTIFFsBplbS+D/5YxZluF/M5QiGDk1BzIkbs//CCNHR jTi97UFZGnwK25Z5hoIxTwyIo3/GbGmHn1VOtuVsJZaB+Aoni8OgsB/h1gQmeMLa X-Rspamd-Queue-Id: 484tND5Lv7z4Hvp X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 64.59.136.138) smtp.mailfrom=cy.schubert@cschubert.com X-Spamd-Result: default: False [-4.09 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCPT_COUNT_FIVE(0.00)[5]; REPLYTO_EQ_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-2.39)[ip: (-6.24), ipnet: 64.59.128.0/20(-3.17), asn: 6327(-2.47), country: CA(-0.09)]; RCVD_IN_DNSWL_LOW(-0.10)[138.136.59.64.list.dnswl.org : 127.0.5.1] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jan 2020 00:02:05 -0000 In message <20200125235405.GA50378@troutmask.apl.washington.edu>, Steve Kargl w rites: > On Sat, Jan 25, 2020 at 03:31:16PM -0800, Steve Kargl wrote: > > On Sat, Jan 25, 2020 at 02:09:29PM -0800, Cy Schubert wrote: > > > On January 25, 2020 1:52:03 PM PST, Steve Kargl gton.edu> wrote: > > > >On Sat, Jan 25, 2020 at 01:41:16PM -0800, Cy Schubert wrote: > > > >> > > > >> It's not just poudeiere. Standard port builds of chromium, rust > > > >> and thunderbird also fail on my machines with less than 8 GB. > > > >> > > > > > > > >Interesting. I routinely build chromium, rust, firefox, > > > >llvm and few other resource-hunger ports on a i386-freebsd > > > >laptop with 3.4 GB available memory. This is done with > > > >chrome running with a few tabs swallowing a 1-1.5 GB of > > > >memory. No issues. > > > > > > Number of threads makes a difference too. How many core/threads does your > laptop have? > > > > 2 cores. > > > > > Reducing number of concurrent threads allowed my builds to complete > > > on the 5 GB machine. My build machines have 4 cores, 1 thread per > > > core. Reducing concurrent threads circumvented the issue. > > > > I use portmaster, and AFIACT, it uses 'make -j 2' for the build. > > Laptop isn't doing too much, but an update and browsing. It does > > take a long time especially if building llvm is required. > > > > In thinking about this and recalling watching top(1) during > my last firefox rebuild, it seems that the compiler can use > 0.5-1 GB when compiling files. I see how doing a parallel > build with "-j NCPU" could stress a <4 GB system. It stresses my 5 GB 4 core system whereas my 8 GB 4 core machine handles it quite nicely. 3 GB doesn't seem like a lot more but the extra 60% more RAM is a lot. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.