From: David Sterba <dave@jikos.cz>
To: Olivier Bonvalet <btrfs.list@daevel.fr>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Frozen transaction
Date: Tue, 9 Oct 2012 11:52:05 +0200 [thread overview]
Message-ID: <20121009095205.GL4405@twin.jikos.cz> (raw)
In-Reply-To: <5073D44C.7000601@daevel.fr>
On Tue, Oct 09, 2012 at 09:37:48AM +0200, Olivier Bonvalet wrote:
> on one system I have a "frozen transaction" since more than 24 hours,
> without any IO.
> I can't umount the partition, delete a snapshot or write anything.
> I try to reboot the system, but the problem is still present.
The processes could point at the cleaner deadlock, though I'm not
completely sure without looking at the process stacks (/proc/PID/stack).
If the problem persists accross reboots, how long after mount does it
take to get to this state? Cleaner usually kicks in after the 30 second
transaction commit period, so this should be easy to verify if it's
immediate or if it requires some load to get into the dead state.
> The partition is mounted with this options :
> # mount | grep btrfs
> /dev/mapper/vg--sofia-backup on /backup type btrfs
> (rw,noatime,compress-force=zlib,nossd)
So you don't mount with autodefrag, hmm. The deadlock I had in mind
is more likely with autodefrag but also requires umount.
> The disk is near full :
> # btrfs fi df /backup/
> Data: total=482.68GB, used=480.89GB
Quite full.
> System, DUP: total=32.00MB, used=72.00KB
> System: total=4.00MB, used=0.00
> Metadata, DUP: total=10.12GB, used=8.82GB
>
> But one of the last actions was the removing of some big subvolumes (near
> 50GB).
Given the amount of free space left, this creates high pressure on data
writes and makes the deadlock more likely.
> There is no error in logs, the frozen transaction was started from a 3.5*
> kernel (from GIT), and the system is now running on a 3.6.1 kernel
> (vanilla).
>
> Is there something I can do to solve that problem ?
No, there's a patch sent out in order to fix the deadlocks but it's
unfortunatelly still unmerged.
david
next prev parent reply other threads:[~2012-10-09 9:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-09 7:37 Frozen transaction Olivier Bonvalet
2012-10-09 9:52 ` David Sterba [this message]
2012-10-09 10:07 ` Olivier Bonvalet
2012-10-09 12:32 ` David Sterba
2012-10-09 13:49 ` [solved] " Olivier Bonvalet
2012-10-09 14:07 ` David Sterba
2012-10-09 14:12 ` Olivier Bonvalet
2012-10-09 14:55 ` David Sterba
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=20121009095205.GL4405@twin.jikos.cz \
--to=dave@jikos.cz \
--cc=btrfs.list@daevel.fr \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).