From owner-freebsd-current@freebsd.org Sat Jan 25 23:54:10 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 59D271FF5D9 for ; Sat, 25 Jan 2020 23:54:10 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 484tC5220lz4Gv1 for ; Sat, 25 Jan 2020 23:54:08 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id 00PNs5bW050447 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 25 Jan 2020 15:54:05 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id 00PNs5FE050446; Sat, 25 Jan 2020 15:54:05 -0800 (PST) (envelope-from sgk) Date: Sat, 25 Jan 2020 15:54:05 -0800 From: Steve Kargl To: Cy Schubert Cc: 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' Message-ID: <20200125235405.GA50378@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <20200125215203.GA49253@troutmask.apl.washington.edu> <3B744DB0-35ED-44FE-8235-A16EE5F925CA@cschubert.com> <20200125233116.GA49916@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200125233116.GA49916@troutmask.apl.washington.edu> User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 484tC5220lz4Gv1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=washington.edu (policy=none); spf=none (mx1.freebsd.org: domain of sgk@troutmask.apl.washington.edu has no SPF policy when checking 128.95.76.21) smtp.mailfrom=sgk@troutmask.apl.washington.edu X-Spamd-Result: default: False [-2.10 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[sgk@troutmask.apl.washington.edu]; DMARC_POLICY_SOFTFAIL(0.10)[washington.edu : No valid SPF, No valid DKIM,none]; NEURAL_HAM_MEDIUM(-0.98)[-0.975,0]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-0.91)[-0.912,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-0.21)[ip: (0.05), ipnet: 128.95.0.0/16(-0.24), asn: 73(-0.83), country: US(-0.05)]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Sat, 25 Jan 2020 23:54:10 -0000 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 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. -- Steve