From: Tim Small <tim@buttersideup.com>
To: James Johnston <johnstonj.public@codenest.com>,
'Kent Overstreet' <kent.overstreet@gmail.com>,
'Alasdair Kergon' <agk@redhat.com>,
'Mike Snitzer' <snitzer@redhat.com>
Cc: linux-bcache@vger.kernel.org, dm-devel@redhat.com, dm-crypt@saout.de
Subject: Re: [dm-crypt] bcache gets stuck flushing writeback cache when used in combination with LUKS/dm-crypt and non-default bucket size
Date: Mon, 16 May 2016 17:08:27 +0100 [thread overview]
Message-ID: <5739F07A.5090608@buttersideup.com> (raw)
In-Reply-To: <044401d1a958$ea7ef4e0$bf7cdea0$@codenest.com>
On 08/05/16 19:39, James Johnston wrote:
> I've run into a problem where the bcache writeback cache can't be flushed to
> disk when the backing device is a LUKS / dm-crypt device and the cache set has
> a non-default bucket size. Basically, only a few megabytes will be flushed to
> disk, and then it gets stuck. Stuck means that the bcache writeback task
> thrashes the disk by constantly reading hundreds of MB/second from the cache set
> in an infinite loop, while not actually progressing (dirty_data never decreases
> beyond a certain point).
> [...]
> The situation is basically unrecoverable as far as I can tell: if you attempt
> to detach the cache set then the cache set disk gets thrashed extra-hard
> forever, and it's impossible to actually get the cache set detached. The only
> solution seems to be to back up the data and destroy the volume...
You can boot an older kernel to flush the device without destroying it
(I'm guessing that's because older kernels split down the big requests
which are failing on the 4.4 kernel). Once flushed you could put the
cache into writethrough mode, or use a smaller bucket size.
Tim.
next prev parent reply other threads:[~2016-05-16 16:08 UTC|newest]
Thread overview: 13+ 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-11 1:38 ` Eric Wheeler
[not found] ` <57383C99.6090206@buttersideup.com>
2016-05-16 13:02 ` Tim Small
2016-05-16 13:53 ` Tim Small
2016-05-19 23:15 ` Eric Wheeler
2016-05-18 17:01 ` [dm-crypt] [dm-devel] " James Johnston
2016-05-16 16:08 ` Tim Small [this message]
2016-05-19 23:22 ` [dm-crypt] " Eric Wheeler
2016-05-20 6:59 ` James Johnston
2016-05-20 21:37 ` 'Eric Wheeler'
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-06-01 4:19 ` James Johnston
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=5739F07A.5090608@buttersideup.com \
--to=tim@buttersideup.com \
--cc=agk@redhat.com \
--cc=dm-crypt@saout.de \
--cc=dm-devel@redhat.com \
--cc=johnstonj.public@codenest.com \
--cc=kent.overstreet@gmail.com \
--cc=linux-bcache@vger.kernel.org \
--cc=snitzer@redhat.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