Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2020 16:01:59 -0800
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        sgk@troutmask.apl.washington.edu
Cc:        Cy Schubert <Cy.Schubert@cschubert.com>, freebsd-current@freebsd.org, Mark Millard <marklmi@yahoo.com>, yasu@utahime.org
Subject:   Re: After update to r357104 build of poudriere jail fails with  'out of swap space'
Message-ID:  <202001260001.00Q01xcs007218@slippy.cwsent.com>
In-Reply-To: <20200125235405.GA50378@troutmask.apl.washington.edu>
References:  <DAA3A910-25F2-447A-B540-C35985DA822E.ref@yahoo.com>  <DAA3A910-25F2-447A-B540-C35985DA822E@yahoo.com> <A6C8D5FD-EC99-4846-8F43-ABE7B6D27D03@cschubert.com> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <sgk@troutmask.apl.washin
> 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 <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001260001.00Q01xcs007218>