On Wed, Nov 07, 2018 at 11:24:39AM -0600, renodr via blfs-support wrote:
> On 2018-11-06 13:51, Christopher Gregory via blfs-support wrote:
> > Hello,
> > 
> > I have just built WebKitGTK+-2.22.3 and it was the most unpleasant
> > experience I have ever had with building blfs.  The build killed off
> > the process a total of 4 times due to running out of memory.  I have a
> > 6 core machine and 8 gig of ram with a swap partition of 6 gigs.
> > 
> 
> Try using "export NINJAJOBS=1" and recompile WebKit.
> 
I thought I would try this on my 4-core machine - unfortunately, I
accidentally booted the old BLFS-8.3 system instead of the later
build, and had installed all the added extra dependencies before I
realised that.

This is a ryzen3 with 4 cores, and according to top 7.8 GiB of
memory and 6.0 GiB of swap.

Using 2.22.3 with the book's instructions for 2.22.2, and not
forcing NINJAJOBS because I figured running 4+2 jobs would probably
be ok, even if slightly slower than forcing 4).  A DESTDIR install.

I was using X, firefox with about 34 tabs, falkon with about 5 tabs,
and 6 instances of urxvt.

These figures from free, and from du for the directory space,
probably give a fairly accurate indication of the space used.

Max real mem noted      7214692
Initial real mem        1363476 (includes the extracted tarball)
change                  5851219
max swap                1339648
approx total mem        7190857 plus the build space
added directory space    616852
        total           7807709 (7624MiB)

wkit space starts at     181884 (178MiB)
after install            658408 (643MiB)
change                   476524
and the install          140328 (128MiB)
directory space at end   616852 (602MiB)

Summary - with (only) 4 jobs, 8GB RAM might be enough if nothing
else is running.

I'm _surprised_ that Christopher's machine OOM'd with a total of
14GB RAM+swap and "only" 6 cores (that implies 8 jobs by default in
ninja) - I guess that hyperthreading, if available, was turned off
so that 'top' only shows 8 CPUs.

ĸen
-- 
                        Is it about a bicycle ?
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to