[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cannot specify the number of threads for parsort
From: |
Ole Tange |
Subject: |
Re: Cannot specify the number of threads for parsort |
Date: |
Sat, 11 Feb 2023 00:06:49 +0100 |
On Thu, Feb 9, 2023 at 3:30 PM Mario Roy <marioeroy@gmail.com> wrote:
:
> This is a wish list for allowing one to specify the number of threads via an
> ENVIRONMENT variable that works consistently using parallel or parsort.
> Basically, I want to specify the number of threads for parsort regardless of
> processing files specified via command-line arguments or STDIN.
You can use taskset:
taskset -c 1-5 parallel --number-of-threads
(parsort uses parallel --number-of-threads).
For parallel you might also use PARALLEL=-j5
Can you explain why you need this? To me it seems odd not to use all
the cores you paid for.
/Ole
- Cannot specify the number of threads for parsort, Mario Roy, 2023/02/09
- Re: Cannot specify the number of threads for parsort, Mario Roy, 2023/02/09
- Re: Cannot specify the number of threads for parsort,
Ole Tange <=
- Re: Cannot specify the number of threads for parsort, Ole Tange, 2023/02/16
- Re: Cannot specify the number of threads for parsort, Nigel Stewart, 2023/02/16
- Re: Cannot specify the number of threads for parsort, Mario Roy, 2023/02/17
- Re: Cannot specify the number of threads for parsort, Rob Sargent, 2023/02/17