public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "Oliver Mattos" <oliver.mattos08@imperial.ac.uk>
To: "Seth Huang" <seth.hg@gmail.com>, <linux-btrfs@vger.kernel.org>
Subject: Re: ssd optimised mode
Date: Mon, 23 Feb 2009 09:31:37 -0000	[thread overview]
Message-ID: <3BF870F389974F6AA76880C734BF46D2@laptop> (raw)
In-Reply-To: <200902231117406717229@gmail.com>

Hi,

While this sounds nice in practice, in reality since eraseblocks are 
generally very large, and with hardware based block remapping (FTL), you can 
never be sure which data blocks are at risk when re-writing just one block. 
There is a good chance that rewriting one block of data somewhere will wipe 
out a block of data at a totally different location of the disk.

Since the filesystem has no understanding of the hardware FTL, there isn't 
much that can be done about this at the filesystem level.

The only thing that could be done is metadata mirroring on the same disk, 
but I suspect even that would only marginally improve reliability, since 
both copies of the metadata are likely to be written to storage at nearly 
the same time, they are quite likely to be re-mapped into the same block, 
and then if you loose one, you loose both.

The solution to this is twofold:
1 :- filesystems should be able to detect when a non-atomic write has 
corrupted the filesystem and tell the user - eg. "Filesystem corruption 
found, Likley hardware malfunction detected"  (since with a fs like btrfs, 
when all big software bugs are resolved, the only thing that can cause disk 
corruption are hardware issues)

2 :- Someone who feels this is close to their heart needs to test every big 
brand of SSD and name and shame those where writes are non-atomic - as soon 
as you get this publicised that certain brands of SSD put data at risk, the 
manufacturer will be very fast at resolving it.


----- Original Message ----- 
From: "Seth Huang" <seth.hg@gmail.com>
To: <linux-btrfs@vger.kernel.org>
Sent: Monday, February 23, 2009 3:17 AM
Subject: Re: ssd optimised mode


> On Mon, Feb 23, 2009 at 12:22 PM, Dongjun Shin <djshin90@gmail.com> wrote:
>> A well-designed SSD should survive power cycling and should provide 
>> atomicity
>> of flush operation regardless of the underlying flash operations. I don't 
>> expect
>> that users of SSD have different requirements about atomicity.
>
> A reliable system should be based on the assumption that the underlying 
> parts are unreliable. Therefore, we should do as much as possible to make 
> sure the reliability in our filesystem instead of leaning on the SSDs.
>
> -- 
> Seth Huang
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


  parent reply	other threads:[~2009-02-23  9:31 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-20 11:26 ssd optimised mode srimugunthan dhandapani
2009-02-20 16:01 ` Josef Bacik
2009-02-20 16:30   ` Chris Mason
2009-02-22  1:07     ` Dmitri Nikulin
2009-02-22 17:44       ` Steven Pratt
2009-02-23  1:06         ` Dmitri Nikulin
2009-02-23  1:22           ` Dongjun Shin
2009-02-23  2:33             ` Dmitri Nikulin
2009-02-23  3:15               ` Dongjun Shin
2009-02-23  3:17               ` Seth Huang
2009-02-23  4:01                 ` Dmitri Nikulin
2009-02-23  9:31                 ` Oliver Mattos [this message]
2009-02-23 16:40           ` Martin K. Petersen
2009-02-23 16:48             ` Claudio Martins
2009-02-23 17:23               ` Martin K. Petersen
2009-02-23 14:33       ` Chris Mason
2009-02-24  0:16         ` Dmitri Nikulin
2009-02-24  0:35           ` Dongjun Shin
2009-02-24  2:32           ` Martin K. Petersen
2009-02-24  3:53             ` Dmitri Nikulin
2009-02-24  4:09               ` Dongjun Shin
2009-02-24  4:10               ` Martin K. Petersen
2009-02-24  4:23                 ` Dmitri Nikulin
2009-02-23 22:19       ` Wes Felter

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=3BF870F389974F6AA76880C734BF46D2@laptop \
    --to=oliver.mattos08@imperial.ac.uk \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=seth.hg@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox