Re: [PATCH] core-count: A new program to count the number of cpu cores (original) (raw)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
From: | Giuseppe Scrivano |
---|---|
Subject: | Re: [PATCH] core-count: A new program to count the number of cpu cores |
Date: | Wed, 28 Oct 2009 00:38:38 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Bruno Haible <address@hidden> writes:
Pádraig Brady wrote: > >> Of course this should only apply if its effect is not externally > >> observable; if I have a very small file B and a very large file A, and I > >> can get > >> > >> $ md5sum --threads A B > >> abcdabcdabcdabcdabcdabcdabcdabcd B > >> 12341234123412341234123412341234 A > >> > >> Then the option would be necessary. > > > > Good point Paolo. > > I think that's another argument for splitting separate files to different > > threads. > > Grr. An argument for not splitting.
Huh? You can make md5sum handle each file in parallel and still present the output in the order given on the command line. To achieve this, each thread will process one file and submit the result to the main thread before exiting. The main thread will collect the results and output the result for argument k only after the results for 1...k-1 have been collected and output.
The implementation of --threads for md5sum, that I posted some days ago, collects data for any file before flush it, still it can be improved to flush immediately when 1..k files are ready.
Cheers, Giuseppe
- Re: [PATCH] core-count: A new program to count the number of cpu cores, (continued)
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Bruno Haible, 2009/10/26
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Giuseppe Scrivano, 2009/10/27
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Paolo Bonzini, 2009/10/27
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Pádraig Brady, 2009/10/27
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Pádraig Brady, 2009/10/27
* Message not available
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Pádraig Brady, 2009/10/27
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Paolo Bonzini, 2009/10/27
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Pádraig Brady, 2009/10/27
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Paolo Bonzini, 2009/10/27
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Bruno Haible, 2009/10/27
* Re: [PATCH] core-count: A new program to count the number of cpu cores,Giuseppe Scrivano <=
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Giuseppe Scrivano, 2009/10/31
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Jim Meyering, 2009/10/31
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Giuseppe Scrivano, 2009/10/31
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Jim Meyering, 2009/10/31
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Pádraig Brady, 2009/10/31
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Giuseppe Scrivano, 2009/10/31
* Re: [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/18
* Re: [PATCH] md5: accepts a new --threads option, Giuseppe Scrivano, 2009/10/18
* Re: [PATCH] md5: accepts a new --threads option, Pádraig Brady, 2009/10/20
- Prev by Date:Re: [PATCH] core-count: A new program to count the number of cpu cores
- Next by Date:Re: enable -Werror for lib/ in coreutils
- Previous by thread:Re: [PATCH] core-count: A new program to count the number of cpu cores
- Next by thread:Re: [PATCH] core-count: A new program to count the number of cpu cores
- Index(es):