From: Tim Small <tim@buttersideup.com>
To: Eric Wheeler <bcache@lists.ewheeler.net>,
James Johnston <johnstonj.public@codenest.com>
Cc: linux-bcache@vger.kernel.org
Subject: Re: bcache gets stuck flushing writeback cache when used in combination with LUKS/dm-crypt and non-default bucket size
Date: Sun, 15 May 2016 10:08:41 +0100 [thread overview]
Message-ID: <57383C99.6090206@buttersideup.com> (raw)
In-Reply-To: <alpine.LRH.2.11.1605101816240.22680@mx.ewheeler.net>
Hello,
I've just hit the same bug in production, as it happens on a similar config:
. 4.5.1 (Debian backports kernel)
. bcache with 2M bucket (Intel DC S3500), with dm-crypt layered on top
of the backing device (4x 8TB RAID5).
I'm reducing the cc list, as I think this is bcache specific.
On 11/05/16 02:38, Eric Wheeler wrote:
> You might try LUKS atop of bcache instead of under it. This might be
> better for privacy too, otherwise your cached data is unencrypted.
I chose the same config as James, because the SSD has hardware
encryption (whereas the hard drives don't), and it'd be nice if cache
reads didn't get the extra CPU overhead/latency since the workload is
read-heavy, and cache hit should be pretty high (and the CPU doesn't
have AES-NI).
>> # Make cache set on second drive
>> # IMPORTANT: Problem does not occur if I omit --bucket parameter.
>> make-bcache --bucket 2M -C /dev/sdb
>
> 2MB is quite large, maybe it exceeds the 256-bvec limit.
In my case I followed the instructions in the make-bcache manual page
which say:
"The bucket size is intended to be equal to the size of your SSD's erase
blocks"
A bit of research suggested an erase block size of either 2M or 4M for
the SSD I was using. Is this manual page incorrect?
> Ming Lei's patch got in to 4.6 yet, but try this:
> https://lkml.org/lkml/2016/4/5/1046
>
> and maybe Shaohua Li's patch too:
> http://www.spinics.net/lists/raid/msg51830.html
I'll give them both a go...
Perhaps there should probably be a bcache wiki hosted on kernel.org to
cover this sort of stuff, as the bcache docs seem to be a bit lacking
currently?
Tim.
next prev parent reply other threads:[~2016-05-15 9:46 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-08 18:39 [dm-crypt] bcache gets stuck flushing writeback cache when used in combination with LUKS/dm-crypt and non-default bucket size James Johnston
2016-05-08 18:39 ` James Johnston
2016-05-11 1:38 ` [dm-crypt] " Eric Wheeler
2016-05-11 1:38 ` Eric Wheeler
2016-05-15 9:08 ` Tim Small [this message]
2016-05-16 13:02 ` [dm-crypt] " Tim Small
2016-05-16 13:02 ` Tim Small
2016-05-16 13:53 ` [dm-crypt] " Tim Small
2016-05-16 13:53 ` Tim Small
2016-05-19 23:15 ` [dm-crypt] " Eric Wheeler
2016-05-19 23:15 ` Eric Wheeler
2016-05-18 17:01 ` [dm-crypt] [dm-devel] " James Johnston
2016-05-18 17:01 ` James Johnston
2016-05-16 16:08 ` [dm-crypt] " Tim Small
2016-05-16 16:08 ` Tim Small
2016-05-19 23:22 ` [dm-crypt] " Eric Wheeler
2016-05-19 23:22 ` Eric Wheeler
2016-05-20 6:59 ` [dm-crypt] " James Johnston
2016-05-20 6:59 ` James Johnston
2016-05-20 21:37 ` [dm-crypt] " 'Eric Wheeler'
2016-05-20 21:37 ` 'Eric Wheeler'
2016-05-22 4:26 ` [dm-crypt] " James Johnston
2016-05-22 4:26 ` James Johnston
2016-05-27 14:47 ` [dm-crypt] [PATCH] dm-crypt: Fix error with too large bios (was: bcache gets stuck flushing writeback cache when used in combination with LUKS/dm-crypt and non-default bucket size) Mikulas Patocka
2016-05-27 14:47 ` Mikulas Patocka
2016-06-01 4:19 ` [dm-crypt] " James Johnston
2016-06-01 4:19 ` James Johnston
2016-05-20 20:22 ` bcache gets stuck flushing writeback cache when used in combination with LUKS/dm-crypt and non-default bucket size Eric Wheeler
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=57383C99.6090206@buttersideup.com \
--to=tim@buttersideup.com \
--cc=bcache@lists.ewheeler.net \
--cc=johnstonj.public@codenest.com \
--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.