[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dd statistics output
From: |
Pádraig Brady |
Subject: |
Re: dd statistics output |
Date: |
Wed, 16 Jul 2014 23:17:19 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 07/16/2014 11:09 PM, Christian Groessler wrote:
> On 07/16/14 15:42, Pádraig Brady wrote:
>> Note another reason to _not_ apply the patch is that
>> requests to print the statistics can come async through SIGUSR1,
>> and thus increase the chances of inconsistent output.
>
>
> Sorry, I cannot follow. Which inconsistent output are you referring to?
>
> regards,
> chris
It's a bit of an edge case, but if working with 1024 base quantities,
rarely one might get 1000 based statistics as the selector is essentially:
if ((n_written % 1000) && ! (n_written % 1024))
human_opts |= human_base_1024;
So if SIGUSR1 was sent after 1000 blocks were written for example,
then SI stats would be printed rather than IEC.
Yes it's quite the edge case, and not especially problematic I think,
but worth mentioning.
thanks,
Pádraig.