[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] md5: accepts a new --threads option
From: |
Pádraig Brady |
Subject: |
Re: [PATCH] md5: accepts a new --threads option |
Date: |
Sun, 18 Oct 2009 00:26:02 +0100 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20071008) |
Pádraig Brady wrote:
> Giuseppe Scrivano wrote:
>> Hello,
>>
>> inspired by the attempt to make `sort' multi-threaded, I added threads
>> support to md5sum and the sha* programs family. It has effect only when
>> multiple files are specified.
>>
>> Any comment?
>
> How does it compare to:
>
> files_per_process=10
> cpus=4
> find files | xargs -n$files_per_process -P$cpus md5sum
>
> I would expect it to be a bit better as file_per_process
> could be very large, thus having less overhead in starting
> processes. Though is the benefit worth the extra implementation
> complexity and new less general interface for users?
Hi James,
I was wondering would it be worth adding the nproc module to xargs
to support -P without any options to use the number of CPUs
as the value.
Hmm, I could see it being useful to specify NCPUs-1 also.
I wonder is there a general external method to determine
the number of CPUs.
cheers,
Pádraig.
- [PATCH] md5: accepts a new --threads option, Giuseppe Scrivano, 2009/10/17
- Re: [PATCH] md5: accepts a new --threads option, Pádraig Brady, 2009/10/17
- Re: [PATCH] md5: accepts a new --threads option,
Pádraig Brady <=
- Re: [PATCH] md5: accepts a new --threads option, Jim Meyering, 2009/10/18
- Re: [PATCH] md5: accepts a new --threads option, Giuseppe Scrivano, 2009/10/18
- Re: [PATCH] md5: accepts a new --threads option, Jim Meyering, 2009/10/18
- Re: [PATCH] md5: accepts a new --threads option, Giuseppe Scrivano, 2009/10/18
- Re: [PATCH] md5: accepts a new --threads option, Jim Meyering, 2009/10/18
- Re: [PATCH] md5: accepts a new --threads option, Giuseppe Scrivano, 2009/10/25
- Re: [PATCH] md5: accepts a new --threads option, Jim Meyering, 2009/10/25
- Re: [PATCH] md5: accepts a new --threads option, Jim Meyering, 2009/10/25
- [PATCH] core-count: A new program to count the number of cpu cores (was: [PATCH] md5: accepts a new --threads option), Giuseppe Scrivano, 2009/10/25
- Re: [PATCH] core-count: A new program to count the number of cpu cores (was: [PATCH] md5: accepts a new --threads option), Pádraig Brady, 2009/10/25