All of lore.kernel.org
 help / color / mirror / Atom feed
From: Akira Hayakawa <ruby.wktk@gmail.com>
To: henson@acm.org
Cc: dm-devel@redhat.com
Subject: Re: dm-writeboost: Progress Report
Date: Sun, 19 Jan 2014 10:16:56 +0900	[thread overview]
Message-ID: <52DB2788.40802@gmail.com> (raw)
In-Reply-To: <061401cf10a2$e059ed90$a10dc8b0$@acm.org>

Hi, Paul,

> Would I be incorrect in assuming that this increased write performance comes
> with the trade-off of a greater risk of losing data in the case of power
> failure or crash?
Incorrect. Performance and Robustness are irrelevant if it's designed correctly.
Writeboost's log contains both data blocks (4KB * N) and corresponding metablock (16B for each).
After crash, it can replay the log on the cache device and it guarantees no data lost.
Like the usual block device, those data acked to write barrier (REQ_FUA or REQ_FLUSH) are
guaranteed not to be lost.

FYI,
The worst thing in using writeboost or even other cache softwares is that the cache device
gone out of order (which means it can neither read nor write anymore).
The filesystem doesn't go inconsistent (need not fsck) in that worst situation is writeboost's another characteristic.
Writeboost writes back the dirty data on the cache device in the same order they were written.
Therefore, if the cache device is gone we can at least obtain the filesystem of the moment the last
write-back was done.
Read this article for SSD failure (http://lkcl.net/reports/ssd_analysis.html)
SSDs are very likely to go insane. Use trustworthy SSD is my advice.

Considering these characteristics,
Maybe, we can call dm-writeboost "log-structured write buffer" rather than "log-structured caching".

Thanks for your interest,
Akira

  reply	other threads:[~2014-01-19  1:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-11  7:27 dm-writeboost: Progress Report Akira Hayakawa
2014-01-13 10:09 ` Joe Thornber
2014-01-13 11:46   ` Akira Hayakawa
2014-01-13 15:14     ` Mike Snitzer
2014-01-13 21:03     ` Paul B. Henson
2014-01-19  1:16       ` Akira Hayakawa [this message]
2014-01-14 10:17     ` Joe Thornber
  -- strict thread matches above, loose matches on Subject: below --
2014-05-17 14:44 Akira Hayakawa
2014-05-23 13:14 ` Akira Hayakawa
2013-11-04  5:17 Akira Hayakawa
2013-11-17 11:23 ` Akira Hayakawa

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=52DB2788.40802@gmail.com \
    --to=ruby.wktk@gmail.com \
    --cc=dm-devel@redhat.com \
    --cc=henson@acm.org \
    /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.