[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 13:01:22 +0100 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20071008) |
Giuseppe Scrivano wrote:
>
> I created four files: `a' and `b' are 150Mb, differently `c' and `d' are
> few Kb. These are the results I get:
>
> $ time ./sha1sum --threads /tmp/test_files/*
> 09e00486b4fb88805f7261fac1dd4c7f0ee7640e /tmp/test_files/a
> 203c0607c7ebff14ecf23b37005a714f2dc19b0b /tmp/test_files/b
> 3f786850e387550fdab836ed7e6dc881de23001b /tmp/test_files/c
> d7c8127a20a396cff08af086a1c695b0636f0c29 /tmp/test_files/d
>
> real 0m1.804s
>
> $ time find /tmp/test_files/* | xargs -n4 -P2 ./sha1sum
> 09e00486b4fb88805f7261fac1dd4c7f0ee7640e /tmp/test_files/a
> 203c0607c7ebff14ecf23b37005a714f2dc19b0b /tmp/test_files/b
> 3f786850e387550fdab836ed7e6dc881de23001b /tmp/test_files/c
> d7c8127a20a396cff08af086a1c695b0636f0c29 /tmp/test_files/d
>
> real 0m3.288s
With -n4 only 1 process would be started.
Could you repeat with -n1 please for comparison.
One would only need to increase -n for large numbers of files.
thanks,
Pádraig.
- 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, 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/20
- Re: [PATCH] md5: accepts a new --threads option, Pádraig Brady, 2009/10/20
- Re: [PATCH] md5: accepts a new --threads option, Jim Meyering, 2009/10/21
- Re: [PATCH] md5: accepts a new --threads option, Pádraig Brady, 2009/10/21
- Re: [PATCH] md5: accepts a new --threads option, Jim Meyering, 2009/10/21
- Re: [PATCH] md5: accepts a new --threads option, Pádraig Brady, 2009/10/21
- Re: [PATCH] md5: accepts a new --threads option, Jim Meyering, 2009/10/21
- Re: [PATCH] md5: accepts a new --threads option, Pádraig Brady, 2009/10/21
RE: [PATCH] md5: accepts a new --threads option, Voelker, Bernhard, 2009/10/21