Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2018 18:59:45 -0700
From:      Ian Lepore <ian@freebsd.org>
To:        bob prohaska <fbsd@www.zefox.net>, Christoph Moench-Tegeder <cmt@burggraben.net>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: How much memory to compile www/chromium?
Message-ID:  <1544752785.76088.4.camel@freebsd.org>
In-Reply-To: <20181214012733.GA92808@www.zefox.net>
References:  <20181212165313.GA84881@www.zefox.net> <20181212184149.ol44fon2unowu35q@squirrel.exwg.net> <20181212192115.GA85583@www.zefox.net> <20181212202504.4n3mhtx7grbeh6j7@squirrel.exwg.net> <20181214012733.GA92808@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2018-12-13 at 17:27 -0800, bob prohaska wrote:
> On Wed, Dec 12, 2018 at 09:25:04PM +0100, Christoph Moench-Tegeder
> wrote:
> > 
> > ## bob prohaska (fbsd@www.zefox.net):
> > 
> > > 
> > > > 
> > > > See bsd.ports.mk: DISABLE_MAKE_JOBS (as in "make
> > > > -DDISABLE_MAKE_JOBS").
> > > > 
> > > Thank you, I think that's the information needed. Come to think
> > > of it, 
> > > will the -j option, such as -j2, work in this situation also? Two
> > > threads
> > > are much better than one 8-)
> > If you had looked into bsd.port.mk yourself... right below the docs
> > of
> > DISABLE_MAKE_JOBS (line 814) is some documentation for
> > MAKE_JOBS_NUMBER
> > and MAKE_JOBS_NUMBER_LIMIT. -j won't help because there's a lot of
> Setting MAKE_JOBS_NUMBER_LIMIT=2 seems to have the desired effect.
> Still,
> top reports four c++ processes, but only two are running and swap
> use 
> seldom exceeds 1GB at worst. So far, that's been enough to prevent
> stalling.
> 
> Editing /usr/ports/Mk/bsd.port.mk looks like it'll affect all ports;
> what's the convention for making the change local to www/chromium
> only?
> 
> Thanks for your patience!
> 
> bob prohaska
>  
> 

Put this in your /etc/make.conf...

.if ${.CURDIR:M*www/chromium}
MAKE_JOBS_NUMBER_LIMIT=2
.endif

-- Ian



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