xfs
[Top] [All Lists]

Re: [PATCH] mkfs: default to CRC enabled filesystems

To: Linda Walsh <xfs@xxxxxxxxx>
Subject: Re: [PATCH] mkfs: default to CRC enabled filesystems
From: Greg Freemyer <greg.freemyer@xxxxxxxxx>
Date: Thu, 19 Mar 2015 22:44:18 -0400
Cc: Dave Chinner <david@xxxxxxxxxxxxx>, xfs-oss <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=RWgF5wBY8BB7nF8fykZbLIZYy4/xVUbJ3t7T9q1gLnE=; b=KpCx2hE5+kcQHjeFZMw/I61iY1uxoAtf9ROiPbZSSeHwXbMKOy0QQB1qBFKqR0OS3N fF8bmD7R4CO2hWxvGCP0OMDakcp5Exjy5hhUvylYpuu/tz3TVSPCKQiwpXcV8ck4Wskx /UdZMnNCA4LCl+Ol5MsfOlJ81iU9mHF5krZOCBhxKrMh7RlEoRshqxNfNX/fz4GqPOon H+m1WRjsjuFE/TRd+IojvonVB0SVN5Ya7bs9vk1DqYu8PQbZiBQnFnF27BqpHIO1Cj9R A06SvnHyc7dSTB0QI3mJ6W+IEEsVmvK+bb1s0svuZEz0Puyhr+6NNgf5dSxhkdl5jfad 6ztg==
In-reply-to: <550B858D.4030003@xxxxxxxxx>
References: <1426720967-8215-1-git-send-email-david@xxxxxxxxxxxxx> <550B858D.4030003@xxxxxxxxx>
On Thu, Mar 19, 2015 at 10:27 PM, Linda Walsh <xfs@xxxxxxxxx> wrote:
> Dave Chinner wrote:
>>
>> From: Dave Chinner <dchinner@xxxxxxxxxx>
>>
>> It's time to change the mkfs defaults to enable CRCs for all new
>> filesystems.
>
> ---
>         "Sounds good", but what exactly is CRC'ed?
>
> I.e. all data? Or how much data/second would I expect
> to 'need' CRC'ing?

metadata only.

====
>From the man page:

       -m global_metadata_options
              These options specify metadata format options that either
              apply to the entire filesystem or aren't easily characterised
              by a specific functionality group. The valid
              global_metadata_options are:

                   crc=value
                          This is used to create a filesystem which
                          maintains and checks CRC information in all
                          metadata objects on disk. The value is either 0 to
                          disable the feature, or 1 to enable the use of
                          CRCs.

                          CRCs enable enhanced error detection due to
                          hardware issues, whilst the format changes also
                          improves crash recovery algorithms and the ability
                          of various tools to validate and repair metadata
                          corruptions when they are found.  The CRC
                          algorithm used is CRC32c, so the overhead is
                          dependent on CPU architecture as some CPUs have
                          hardware acceleration of this algorithm.
                          Typically the overhead of calculating and checking
                          the CRCs is not noticable in normal operation.

                          By default, mkfs.xfs will not enable metadata
                          CRCs.
====

The purpose of the patch is to drop "not" from the last sentence.

Greg

<Prev in Thread] Current Thread [Next in Thread>