From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id KFbbI7nGUGadngAAA41jLg (envelope-from ) for ; Fri, 24 May 2024 18:56:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id aOnCHbnGUGYyDgEA62LTzQ (envelope-from ) for ; Fri, 24 May 2024 18:56:25 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=NH3FxHIl; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716569785; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=okP4Hc5jhGsgWxl5wUe1rmfaE4lXm1UGQOFpYeFMavI=; b=kc7HKzpSkeXPOaMP5YlrL7N8JSsdug9T09SwE1V60sp57S1HM69uNFv8wxcsSkCGDz80Y6 Txf7SleBduyEHYO8ZNQv2JNAd8t6vjGYEb5OvN1mnx2DyCNdlWnizKCoYffnMNGrm9FKVP Ro+0DO/j0yhQ65kbEb8ad20aLwQAsa2esCpkmacWIe22Hnb+S4aE/uxwUK7L56J9rveoCj WFsvsHjdTdZSWuapzAVtVTDInmBZgouE1gnTf5GuQBYWZRNVEXvvdoR8gOARw2PvMKk46N C2ISFpKyuDIqp/2Dnw9ss56xhQCKj4HaP3AqIuqUa+We682zyHlrfGJPwKnJjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=NH3FxHIl; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716569785; a=rsa-sha256; cv=none; b=hg9ULZ+sjY2aynEYwDE2S1scORi7P52FWgApvc6HBUHNi0CUQHSTGsm8R5PIUNaWfqg3eB JR9OPR8dxAUleMd+BTd5D9g7YPqWCHQsy3/V36hQ+YnLhoFwRxSAZtxlvRKsiwINlU6ArC afKNnkPpq7erTrzyt0wNT3e9wc73f1GhKEYaLUz1oQJ+G5L7hF4TmPRIwJjr7haf1wbhiN +tx+ptB3KL5hjEOKFma9DUE75ep8lRUMHtRdpDfoh5JmFYr6dPTt4oGJYbxXNdZlKyGTW+ DFC60QODCJQnM7h6hr8X+1LMBiA17RFsFMHXz4fu5/yzK3aaYOjlKqVsZ9p51A== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EF8A06D26E for ; Fri, 24 May 2024 18:56:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAYDD-0002ad-D5; Fri, 24 May 2024 12:56:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sAYD1-0002ZK-7E for guix-patches@gnu.org; Fri, 24 May 2024 12:56:00 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sAYD0-0004wm-T1 for guix-patches@gnu.org; Fri, 24 May 2024 12:55:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAYD4-0001c0-Hw; Fri, 24 May 2024 12:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71175] [PATCH] gnu: linux-libre: Parallelize linux-libre module installation Resent-From: Richard Sent Original-Sender: "Debbugs-submit" Resent-CC: leo@famulari.name, me@tobias.gr, w@wmeyer.eu, guix-patches@gnu.org Resent-Date: Fri, 24 May 2024 16:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71175 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71175@debbugs.gnu.org Cc: Richard Sent , Leo Famulari , Tobias Geerinckx-Rice , Wilko Meyer X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Leo Famulari , Tobias Geerinckx-Rice , Wilko Meyer Received: via spool by submit@debbugs.gnu.org id=B.17165697086181 (code B ref -1); Fri, 24 May 2024 16:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 May 2024 16:55:08 +0000 Received: from localhost ([127.0.0.1]:38051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAYCC-0001bd-2a for submit@debbugs.gnu.org; Fri, 24 May 2024 12:55:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:50590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAYCA-0001bX-5p for submit@debbugs.gnu.org; Fri, 24 May 2024 12:55:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sAYC2-0002KL-Nd for guix-patches@gnu.org; Fri, 24 May 2024 12:54:58 -0400 Received: from mail-108-mta145.mxroute.com ([136.175.108.145]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sAYC0-0004ee-Mn for guix-patches@gnu.org; Fri, 24 May 2024 12:54:58 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta145.mxroute.com (ZoneMTA) with ESMTPSA id 18fab86b4d9000efce.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 24 May 2024 16:54:43 +0000 X-Zone-Loop: 885a160273c9a2605963aad569439f32e2017d312429 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=okP4Hc5jhGsgWxl5wUe1rmfaE4lXm1UGQOFpYeFMavI=; b=NH3FxHIlfOBJxVLHJkrJYmhItZ xjCrW+Lmtt1swv6ePu5vcj+YR+LJLbhIChybSw7o8l6cmU37pB5/2OjNCR2ZmphYWxvOHVbFXdCoo Xg+l3zNs/AvrJS24AZ2Pil40zdbKz2qYyZw15GXX5P4XSaxhwyb3PeFOooAceY6GngxqmgcO/o21h kvc2eOil8rerqTxOgTbjU9Ew9bKqWdUFKuB331fCRViCTYnjseW+1Ji/9HICITgJB9wWKaNao4QRm itTWOK2Y9BA8MlhpSAlCam/57SM0dkwISQok+g8OeeZcUUeptd0XQFT1pJybf0yGmNXBDAFm5mWsO 1EcZiTDA==; From: Richard Sent Date: Fri, 24 May 2024 12:49:42 -0400 Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.145; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta145.mxroute.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -5.05 X-Migadu-Queue-Id: EF8A06D26E X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.05 X-TUID: nP3XL/+j4T10 * gnu/packages/linux.scm (make-linux-libre*): Parallelize kernel module installation when possible. Change-Id: I6ee8223d8a4a33f92907498d7f2b95675b2aa940 --- Hi Guix! This patch aims to speed up the kernel build process. Because module installation has a fair amount of CPU activity (GZIP+STRIP), it benefits from additional jobs. On my 32 logical core machine, the install phase of linux-libre went from 45.4 seconds to 9.4 seconds. gnu/packages/linux.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index a9b78a7986..1357be4e86 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1041,7 +1041,7 @@ (define* (make-linux-libre* version gnu-revision source supported-systems (close-port port)) (invoke "make" "oldconfig")))) (replace 'install - (lambda _ + (lambda* (#:key parallel-build? #:allow-other-keys) (let ((moddir (string-append #$output "/lib/modules")) (dtbdir (string-append #$output "/lib/dtbs"))) ;; Install kernel image, kernel configuration and link map. @@ -1056,6 +1056,9 @@ (define* (make-linux-libre* version gnu-revision source supported-systems ;; Install kernel modules (mkdir-p moddir) (invoke "make" + "-j" (if parallel-build? + (number->string (parallel-job-count)) + "1") ;; Disable depmod because the Guix system's module ;; directory is an union of potentially multiple ;; packages. It is not possible to use depmod to base-commit: 9901416233867233192b63fde7f616751127b189 -- 2.41.0