Linux kbuild/kconfig development
 help / color / mirror / Atom feed
From: Nicolas Schier <nicolas@fjasle.eu>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
	Nathan Chancellor <nathan@kernel.org>,
	Nick Terrell <terrelln@fb.com>
Subject: Re: [PATCH] kbuild: modinst: remove the multithread option from zstd compression
Date: Tue, 6 Aug 2024 13:02:08 +0200	[thread overview]
Message-ID: <20240806-macho-uber-chipmunk-5ffd3e@lindesnes> (raw)
In-Reply-To: <20240804033309.890181-1-masahiroy@kernel.org>

On Sun, Aug 04, 2024 at 12:33:07PM +0900, Masahiro Yamada wrote:
> Parallel execution is supported by GNU Make:
> 
>   $ make -j<N> modules_install
> 
> It is questionable to enable multithreading within each zstd process
> by default.
> 
> If you still want to do it, you can use the environment variable:
> 
>   $ ZSTD_NBTHREADS=<N> make modules_install
> 
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
> 
>  scripts/Makefile.modinst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst
> index 0afd75472679..04f5229efa6b 100644
> --- a/scripts/Makefile.modinst
> +++ b/scripts/Makefile.modinst
> @@ -146,7 +146,7 @@ quiet_cmd_gzip = GZIP    $@
>  quiet_cmd_xz = XZ      $@
>        cmd_xz = $(XZ) --check=crc32 --lzma2=dict=1MiB -f $<
>  quiet_cmd_zstd = ZSTD    $@
> -      cmd_zstd = $(ZSTD) -T0 --rm -f -q $<
> +      cmd_zstd = $(ZSTD) --rm -f -q $<
>  
>  $(dst)/%.ko.gz: $(dst)/%.ko FORCE
>  	$(call cmd,gzip)
> -- 
> 2.43.0
> 

Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>


  parent reply	other threads:[~2024-08-06 11:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-04  3:33 [PATCH] kbuild: modinst: remove the multithread option from zstd compression Masahiro Yamada
2024-08-04  6:35 ` Sedat Dilek
2024-08-04 17:12   ` Masahiro Yamada
2024-08-06 11:02 ` Nicolas Schier [this message]
2024-08-24 21:51   ` Sedat Dilek

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=20240806-macho-uber-chipmunk-5ffd3e@lindesnes \
    --to=nicolas@fjasle.eu \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=nathan@kernel.org \
    --cc=terrelln@fb.com \
    /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