All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leo Unbekandt <leo.unbek@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: BTRFS deadlock when OOM killed processes using the file system
Date: Wed, 19 Aug 2015 17:39:29 +0200	[thread overview]
Message-ID: <55D4A331.7000202@gmail.com> (raw)

Hello everyone,

I've encountered what looks like a nasty bug which occures when the OOM
kills a process and that this process is working with the file system.
I've been able to reproduce this issue using docker, by limiting the
memory limits of process and make them crash when working.

(You can find more information there: my post on Docker bug tracker, but
it seems that it is more a BTRF-related issue
https://github.com/docker/docker/issues/15654#issuecomment-132384763)

Once the processes have been killed, a BTRFS kworker switched in
uninterruptible (state D) IO wait, and the file system is completely
unusable, no way to read or write from it which is pretty critical, in
my case Docker is not usable anymore as btrfs is the used storage backend.

OOM logs: http://pastebin.com/Lb4Gybay (Simple OOM logs)
BTRFS freeze and uninterruptible processes (plus Sysrq-w):
http://pastebin.com/qd1yB8u2

Hoping that I've got enough information, tell me if you need more. Now
I'm able to reproduce quite easily.

Thank you,

--
Leo Unbekandt
@Soulou

~# uname -a
Linux <hostname> 3.19.0-26-generic #28~14.04.1-Ubuntu SMP Wed Aug 12
14:09:17 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

~# btrfs --version
Btrfs v3.12

~# btrfs fi show
Label: none  uuid: c36b7b1d-910e-4af7-b671-b6d437c4b8d5
    Total devices 1 FS bytes used 34.03GiB
    devid    1 size 100.00GiB used 44.04GiB path /dev/dm-0

btrBtrfs v3.12

~# btrfs fi df /var/lib/docker
Data, single: total=35.01GiB, used=31.77GiB
System, DUP: total=8.00MiB, used=16.00KiB
System, single: total=4.00MiB, used=0.00
Metadata, DUP: total=4.50GiB, used=2.25GiB
Metadata, single: total=8.00MiB, used=0.00
unknown, single: total=512.00MiB, used=0.00

~# dmesg.log

http://pastebin.com/S5DvJjxQ



             reply	other threads:[~2015-08-19 15:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-19 15:39 Leo Unbekandt [this message]
2015-08-19 16:20 ` BTRFS deadlock when OOM killed processes using the file system Martin Tippmann

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=55D4A331.7000202@gmail.com \
    --to=leo.unbek@gmail.com \
    --cc=linux-btrfs@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.