From: Josef Bacik <jbacik@fusionio.com>
To: Wendy Cheng <s.wendy.cheng@gmail.com>
Cc: "kreijack@inwind.it" <kreijack@inwind.it>,
Josef Bacik <JBacik@fusionio.com>,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH] Btrfs-progs: detect if the disk we are formatting is a ssd V2
Date: Mon, 23 Jul 2012 08:46:20 -0400 [thread overview]
Message-ID: <20120723124620.GI2118@localhost.localdomain> (raw)
In-Reply-To: <CABgxfbFUQn0F4LDpUH=xcmwL_YTGK4HbU2-z0+3iW5uk=+xp_A@mail.gmail.com>
On Fri, Jul 20, 2012 at 04:38:59PM -0600, Wendy Cheng wrote:
> On Fri, Jul 20, 2012 at 12:36 PM, Goffredo Baroncelli
> <kreijack@libero.it> wrote:
> > On 07/20/2012 09:15 PM, Josef Bacik wrote:
> >> SSD's do not gain anything by having metadata DUP turned on. The underlying
> >> file system that is a part of all SSD's could easily map duplicate metadat
> >
> > If I understood correctly you are stating that because an SSD *might*
> > "eliminates the benefit of duplicating the metadata" mkfs.btrfs *must*
> > remove _silently_ this behaviour on all SSD ?
> >
> > To me it seems too strong; or almost it should be documented in the man
> > page and/or issuing a warning during the format process.
>
> I'll have to second this .. this is my first time looking into btrfs -
> do feel free to correct me if my reading is not correct.
>
> Based on https://btrfs.wiki.kernel.org/index.php/Glossary, I assume
> the DUP is a flag to ask for meta-data duplication within the same
> device entity. This implies whenever an FS (meta-data) block is
> updated, the duplicated FS block needs to be modified as well (true
> ?). So within a conventional SSD firmware implementation, it is true
> that both FS blocks could end up in the same SSD block that get erased
> and re-allocated together. Similar thing could happen with disks that
> have embedded de-duplication feature turned on.
>
> However, this should have been a task for the admin (or whoever types
> this mkfs command). It is not a filesystem's job to assume how the
> firmware works and silently ignore the DUP request, *unless* there is
> a standard specification clearly describes linux devices that claim to
> be not "rotational" should behave this way.
>
The admin can still use -m dup if he wants the added possiblity of protection,
this just makes the default not dup. Thanks,
Josef
next prev parent reply other threads:[~2012-07-23 12:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-20 19:15 [PATCH] Btrfs-progs: detect if the disk we are formatting is a ssd V2 Josef Bacik
2012-07-20 19:36 ` Goffredo Baroncelli
2012-07-20 22:38 ` Wendy Cheng
2012-07-23 12:46 ` Josef Bacik [this message]
2012-07-23 17:01 ` Goffredo Baroncelli
2012-07-23 17:06 ` Josef Bacik
-- strict thread matches above, loose matches on Subject: below --
2012-07-23 17:22 Josef Bacik
2012-11-01 13:51 Josef Bacik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120723124620.GI2118@localhost.localdomain \
--to=jbacik@fusionio.com \
--cc=kreijack@inwind.it \
--cc=linux-btrfs@vger.kernel.org \
--cc=s.wendy.cheng@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.