From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#27284: [PATCH 1/8] build: Factorize module compilation in (guix build compile). Date: Sun, 22 Oct 2017 19:51:14 -0700 Message-ID: <87r2tuvaot.fsf@gnu.org> References: <87poamv2i7.fsf@gnu.org> <20171020160557.27096-1-ludo@gnu.org> <20171020160557.27096-2-ludo@gnu.org> <87efpu5142.fsf@gmail.com> <87a80iws1q.fsf@gnu.org> <20171022164216.5fdf9f55@centurylink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6SqV-000824-59 for bug-guix@gnu.org; Sun, 22 Oct 2017 22:52:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6SqQ-0005nO-9n for bug-guix@gnu.org; Sun, 22 Oct 2017 22:52:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47779) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e6SqQ-0005nA-5n for bug-guix@gnu.org; Sun, 22 Oct 2017 22:52:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20171022164216.5fdf9f55@centurylink.net> (Eric Bavier's message of "Sun, 22 Oct 2017 16:42:16 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Eric Bavier Cc: 27284@debbugs.gnu.org, Maxim Cournoyer Heya, Eric Bavier skribis: > And from NEWS for the 4.2 release: > > * The amount of parallelism can be determined by querying MAKEFLAGS, even= when > the job server is enabled (previously MAKEFLAGS would always contain on= ly > "-j", with no number, when job server was enabled). Thanks for digging! I didn=E2=80=99t expect such things to ever change. > It Would Be Nice if the functionality worked for older versions of make > that people might have on their systems. With the patch I posted, Scheme compilation would always use one thread per core, which is what it currently does in =E2=80=98master=E2=80=99. That=E2=80=99s in argument in favor of the lazy in me: it=E2=80=99s an impr= ovement for people using a reasonably recent system, and it=E2=80=99s not a regression = for the others! :-) WDYT? > Using the jobserver directly would require quite a bit of work for the > current patch set, but I wonder if there is another way to determine > the -jN parameter for make<4.2 that we could use. Maybe simply > polling the jobserver fds at the start? AIUI the job server does not reveal how many jobs are allowed. It merely grants you an execution token. Or did you have something else in mind? Thanks, Ludo=E2=80=99.