From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64E4CC41513 for ; Sat, 29 Jul 2023 08:31:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231174AbjG2Ibj (ORCPT ); Sat, 29 Jul 2023 04:31:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230471AbjG2Ibg (ORCPT ); Sat, 29 Jul 2023 04:31:36 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8E36E448C; Sat, 29 Jul 2023 01:31:35 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 36T8VSM9004422; Sat, 29 Jul 2023 10:31:28 +0200 Date: Sat, 29 Jul 2023 10:31:28 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Zhangjin Wu , arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v3 12/12] selftests/nolibc: speed up some targets with multiple jobs Message-ID: <20230729083128.GM956@1wt.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 29, 2023 at 08:44:32AM +0200, Thomas Weißschuh wrote: > On 2023-07-28 04:35:01+0800, Zhangjin Wu wrote: > > The sysroot install and kernel build targets are time cost, let's use > > -j to parallelize them with multiple jobs. > > > > Signed-off-by: Zhangjin Wu > > --- > > tools/testing/selftests/nolibc/Makefile | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile > > index ad2538ec5eb0..1b45c22f9a94 100644 > > --- a/tools/testing/selftests/nolibc/Makefile > > +++ b/tools/testing/selftests/nolibc/Makefile > > @@ -171,7 +171,7 @@ PHONY = sysroot/$(ARCH)/include > > sysroot/$(ARCH)/include: > > $(Q)rm -rf sysroot/$(ARCH) sysroot/sysroot > > $(QUIET_MKDIR)mkdir -p sysroot > > - $(Q)$(MAKE) -C ../../../include/nolibc ARCH=$(ARCH) OUTPUT=$(CURDIR)/sysroot/ headers_standalone > > + $(Q)$(MAKE) -j$$(nproc) -C ../../../include/nolibc ARCH=$(ARCH) OUTPUT=$(CURDIR)/sysroot/ headers_standalone > > This should already work when the users specify -j on the make command > line themselves. > I'm not a fan of force-enabling it here. Indeed, we must not do that, because some users might for instance prefer to build multiple archs in parallel and benefit from a better parallelism and now they'd end up with too many processes. Willy