From: "A. James Lewis" <james@fsck.co.uk>
To: linux-bcache@vger.kernel.org, "Jens-U. Mozdzen" <jmozdzen@nde.ag>
Subject: Re: layering question.
Date: Fri, 07 Aug 2015 15:38:33 +0100 [thread overview]
Message-ID: <55C4C2E9.7020501@fsck.co.uk> (raw)
In-Reply-To: <20150807144344.Horde.5xyJhwIOzk_C5q__CpHL4IV@www3.nde.ag>
That's interesting, are you putting your MD on top of multiple bcache
devices... rather than bcache on top of an MD device... I wonder what
the rationale behind this is?
Also, can anyone give me a summary of how bcache compares with dm-cache?
James
On 07/08/15 13:43, Jens-U. Mozdzen wrote:
> Hi *,
>
> Zitat von Kai Krakow <hurikhan77@gmail.com>:
>> Hi!
>>
>> A. James Lewis <james@fsck.co.uk> schrieb:
>>
>>> The problem is tho... with a very large backing store, I'm not really
>>> happy with a single point of failure in the cache... is there another
>>> way to mirror the cache device?
>>
>> Well, AFAIR there are plans to add such capabilities into bcache
>> itself -
>> read: make it possible to add more than one caching device to a cache
>> set.
>> It will use some sort of hybrid mirror / striping to get the best
>> combination of speed and safety - at least that's what the idea is
>> about. I
>> just don't remember where I've read about it, neither do I know the
>> status
>> of it.
>>
>> If you want to eliminate the single point of failure, you may want to
>> try
>> mdadm with its write-mostly option instead of using bcache. It's
>> slower for
>> writes obviously but gracefully falls back if the SSD fails.
>> Obviously, you
>> can also not benefit from having a huge storage because it's classic
>> RAID-1
>> and thus the smallest member will limit your storage size.
>>
>> Bcache also has countermeasures for a failing caching device but I
>> didn't
>> really look into that yet. You should read the documentation about it in
>> Documentation/bcache.txt (Error Handling). The safest mode to use
>> here is
>> writethrough.
>
> A work of caution here: At least in my layered (kernel 3.18.8)
> situation, the upper layers from time to time run into some sort of
> time-out situation when writing to (bcached) disk. Teh writes abort
> (bad, but tolerable in my circumstances), but on top this makes MD
> mark the current disk faulty, degrading your RAID.
>
> When using "writeback", the likeliness for this to happen is
> relatively small (not more than once every few days), probably because
> the writes to SSD are fairly quick. These hit then have always been on
> the caching device (MD-RAID1 in my case).
>
> When using "writethrough", the likeliness was extremely higher (I've
> seen 2 hits within 6 hours, not later than 28 hours after switching to
> "writethrough") and the hit was on the data device (MD-RAID6 in my case).
>
> Had I only set up RAID5, my data array would have dropped dead then.
>
> After switching back to "writeback", I've had *one* further incident,
> again on the caching device, within 6 days.
>
> I would definitely not call "writethrough" "the safest mode" when
> using MD-RAID for the bcache devices, on kernel 3.18.8.
>
> Regards,
> Jens
>
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-bcache" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-08-07 14:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-04 16:20 layering question A. James Lewis
2015-08-04 17:01 ` Jens-U. Mozdzen
2015-08-04 17:16 ` A. James Lewis
2015-08-05 6:56 ` Jens-U. Mozdzen
2015-08-05 6:28 ` Kai Krakow
2015-08-05 7:04 ` Jens-U. Mozdzen
2015-08-05 23:10 ` Kai Krakow
2015-08-06 0:54 ` A. James Lewis
2015-08-06 23:12 ` Kai Krakow
2015-08-07 12:43 ` Jens-U. Mozdzen
2015-08-07 14:38 ` A. James Lewis [this message]
2015-08-07 15:36 ` Jens-U. Mozdzen
2015-08-07 16:16 ` A. James Lewis
-- strict thread matches above, loose matches on Subject: below --
2015-08-07 16:24 Jens-U. Mozdzen
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=55C4C2E9.7020501@fsck.co.uk \
--to=james@fsck.co.uk \
--cc=jmozdzen@nde.ag \
--cc=linux-bcache@vger.kernel.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.