public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Pandu Poluan <pandu@poluan.info>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] emerge -j, make -j and make -l
Date: Mon, 28 Nov 2011 12:13:05 +0700	[thread overview]
Message-ID: <CAA2qdGVy5=Va6vz54GVi-BatH2wQ9b5sDoZt+s35U77Xi2B14g@mail.gmail.com> (raw)
In-Reply-To: <CA+czFiDNeBusc4izgsvdBFXC6e+JQ-Ax6K+2xdhrMiJ20A34jg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2109 bytes --]

On Nov 28, 2011 11:38 AM, "Michael Mol" <mikemol@gmail.com> wrote:
>
> On Sun, Nov 27, 2011 at 7:54 PM, Pandu Poluan <pandu@poluan.info> wrote:
> >
> > On Nov 28, 2011 6:24 AM, "Neil Bothwick" <neil@digimed.co.uk> wrote:
> >>
> >> On Mon, 28 Nov 2011 00:56:17 +0700, Pandu Poluan wrote:
> >>
> >> > I don't know where the 'blame' lies, but I've found myself
> >> > standardizing on MAKEOPTS=-j3, and PORTAGE_DEFAULT_OPTS="--jobs
> >> > --load-average=<1.6*num_of_vCPU>"
> >> >
> >> > (Yes, no explicit number of jobs. The newer portages are smart
enough to
> >> > keep starting new jobs until the load number is reached)
> >>
> >> The problem I found with that is the ebuilds load the system lightly to
> >> start with, before they enter the compile phase, to portage starts
dozens
> >> of parallel ebuilds, then the system gets completely bogged down when
> >> they start compiling.
> >>
> >
> > Yes, sometimes that would happen if at the beginning there are
network-bound
> > ebuilds all downloading their respective distfiles. The load stays low
until
> > they all start ./configure-ing roughly at the same time. Then all hell
> > breaks loose.
> >
> > I successfully mitigate such "load-explosion" by doing a --fetchonly
step
> > first, and keeping MAKEOPTS at low -j (which, in my case, is actually
> > required).
> >
> > Just to add more info: I use USE=graphite (with some CFLAGS, uh,
> > 'enhancements') with gcc-4.5.3. IIRC, I could push MAKEOPTS up to -j5
(and
> > even more, but I ran out of cores) when I was still using gcc-4.4.x and
no
> > USE=graphite.
> >
> > Won't file a bug report, though. I have a feeling that my bug report re:
> > emerge failure will be marked WONTFIX thanks to the 'ricer special'
CFLAGS
>
> As I noted, "-l" in MAKEOPTS takes care of the load explosion very nicely.

Most likely so. I am not aware of -l in MAKEOPTS before, so what I posted
was my workaround to prevent load explosion. Thanks to your very useful
tip, I now no longer have to worry about load explosion :-)

(I still like doing pre-fetchonly-ing, though. But now for a different main
reason :-)

Rgds,

[-- Attachment #2: Type: text/html, Size: 2805 bytes --]

  reply	other threads:[~2011-11-28  5:14 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-26 15:22 [gentoo-user] emerge -j, make -j and make -l Michael Mol
2011-11-26 15:34 ` Alex Schuster
2011-11-26 15:51   ` Michael Mol
2011-11-26 16:03   ` Stefan G. Weichinger
2011-12-19 19:58     ` Stefan G. Weichinger
2011-12-19 20:05       ` Michael Mol
2011-11-26 15:35 ` Stefan G. Weichinger
2011-11-27  9:27 ` Mick
2011-11-27 10:09   ` Michael Mol
2011-11-27 17:56     ` Pandu Poluan
2011-11-27 20:16       ` Michael Mol
2011-11-27 20:42         ` Michael Mol
2011-11-27 20:51           ` Alex Schuster
2011-11-28  0:42             ` Pandu Poluan
2011-11-27 20:57         ` Alan McKinnon
2011-11-28  1:06         ` Pandu Poluan
2011-11-28  5:30           ` Michael Mol
2011-11-28  5:55             ` Pandu Poluan
2011-11-27 23:21       ` Neil Bothwick
2011-11-28  0:54         ` Pandu Poluan
2011-11-28  1:10           ` [gentoo-user] " Jack Byer
2011-11-28  1:35             ` Dale
2011-11-28  2:16               ` Pandu Poluan
2011-11-28  7:02                 ` Dale
2011-11-28  4:34           ` [gentoo-user] " Michael Mol
2011-11-28  5:13             ` Pandu Poluan [this message]
2011-11-28  5:27               ` Michael Mol
2011-11-28  9:27             ` Neil Bothwick
2011-11-28 13:36               ` Pandu Poluan
2011-11-28 16:36               ` Stefan G. Weichinger
2011-11-29 11:08                 ` Neil Bothwick
2011-11-29 13:47                   ` Stefan G. Weichinger
2011-11-29 15:39                     ` Neil Bothwick
2011-11-29 18:50                       ` Stefan G. Weichinger
2011-11-28  4:30         ` Michael Mol
2011-11-27 10:39   ` covici
2011-11-27 10:52     ` Michael Mol
2011-11-27 10:58     ` Dale
2011-11-27 14:47       ` covici
2011-11-27 15:02         ` Dale
2011-11-27 15:25           ` covici
2011-11-27 17:26 ` Michael Hampicke
2011-11-27 17:46   ` Pandu Poluan
2011-11-27 22:07 ` Mark Knecht
2011-11-27 23:13   ` Dale
2011-11-28  4:28   ` Michael Mol
2011-11-28  5:26     ` Pandu Poluan
2011-11-28  9:27       ` Neil Bothwick
2011-11-28 10:22         ` Pandu Poluan
2011-11-28 13:03           ` Jorge Martínez López
2011-11-28 13:26             ` Pandu Poluan
2011-11-28 18:51       ` Michael Mol
2011-11-28 18:54         ` Michael Mol
2011-11-28 23:53         ` Michael Mol
2011-12-10  4:35           ` Michael Mol
2011-12-27 15:16             ` Michael Mol

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA2qdGVy5=Va6vz54GVi-BatH2wQ9b5sDoZt+s35U77Xi2B14g@mail.gmail.com' \
    --to=pandu@poluan.info \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox