linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: btrfs subvolume snapshot hung in btrfs_commit_transaction
@ 2010-12-12  3:43 Ian! D. Allen
  2010-12-12  8:14 ` Ian! D. Allen
  0 siblings, 1 reply; 12+ messages in thread
From: Ian! D. Allen @ 2010-12-12  3:43 UTC (permalink / raw)
  To: linux-btrfs

This is a second try to post this follow-up, with the dmesg log info
deleted.  What is the size/length limit on this mailing list?

On Thu, Dec 09, 2010 at 02:46:39PM -0500, Ian! D. Allen wrote:
> Hello developers - Last chance to get more details on this btrfs hang
> (below) before I reboot the machine.  Anything I can do to gather
> more data?

Too late.  The machine eventually hung and had to be rebooted.  I've saved
that hung btrfs disk partition (185GB) if anyone wants to contact me to
examine it further.

I put in a larger disk (250GB), set up a partition for btrfs, and ran
the same continuous snapshotting test.  It got up to creating snapshot
150 and then btrfs hung again.  So the bug is repeatable and makes btrfs
0.19 on Ubuntu 10.10 unusable.

# ps laxgww | awk '$10 ~ /D/ {print }'
0     0  3723 28355  35   -   6224   332 btrfs_ DN+  pts/7      0:00 btrfs subvolume snapshot /mnt/sdb1/snap000150 /mnt/sdb1/snap000151
1     0 27334     2  20   0      0     0 wait_f D    ?          0:02 [btrfs-transacti]

I ran an "ls" on the root of the btrfs partition and it hung, too,
as does anything trying to access anything in that partition:

0   777 10005  3732  20   0  21856   692 vfs_re D    pts/11     0:00 ls -abp --color=auto /mnt/sdb1

Here are the blocked process WCHANs:

# ps -o wchan 3723 27334 10005 
WCHAN
btrfs_commit_transaction
wait_for_commit
vfs_readdir

Here is what appeared in /var/log/kernel.log regarding the above processes:

2010-12-11T10:47:32.583745-05:00 linux kernel: [43201.070404] INFO: task btrfs-transacti:27334 blocked for more than 120 seconds.

[... 175 more related dmesg lines deleted ... ]

-- 
| Ian! D. Allen  -  idallen@idallen.ca  -  Ottawa, Ontario, Canada
| Home Page: http://idallen.com/   Contact Improv: http://contactimprov.ca/
| College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/
| Defend digital freedom:  http://eff.org/  and have fun:  http://fools.ca/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* btrfs subvolume snapshot hung in btrfs_commit_transaction
@ 2010-12-08 14:01 Ian! D. Allen
  2010-12-09 19:46 ` Ian! D. Allen
  0 siblings, 1 reply; 12+ messages in thread
From: Ian! D. Allen @ 2010-12-08 14:01 UTC (permalink / raw)
  To: linux-btrfs

I've been exercising btrfs doing a continuous loop of:

    - delete an old snapshot to keep disk space about the same
    - create snapshot from previous snapshot
    - rsync root into new snapshot

I have room for 150 snapshots on disk.  I delete the oldest, create
the newest, do the rsync into the newest, repeat.  It hung today on
snapshot 564:

$ ps uww 24575
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root     24575  0.0  0.0   6224   332 pts/10   DN   07:35   0:00 btrfs subvolume snapshot /mnt/sde1/snap564 /mnt/sde1/snap565

$ ps lww 24575
F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
4     0 24575 27716  35   -   6224   332 btrfs_ DN   pts/10     0:00 btrfs subvolume snapshot /mnt/sde1/snap564 /mnt/sde1/snap565

$ ps -o wchan 24575
WCHAN
btrfs_commit_transaction

No messages in "dmesg" or kernel log.  Anyone want me to run some other
debug tests to find out what is wrong?  Anything that tries to access
anything inside the btrfs file system /dev/sde1 hangs uninterruptably:

1     0  1863     2  20   0      0     0 wait_f D    ?          0:29 [btrfs-transacti]
4     0  4933  4925  20   0  26524  2864 lookup D+   pts/10     0:02 /bin/bash
1   777 27995  7318  20   0  26576  1784 vfs_re D+   pts/52     0:00 bash
0   777 29395  7284  20   0  21856   688 vfs_re D    pts/51     0:00 ls -abp --color=auto /mnt/sde1
0   777 29510  7284  20   0  21856   692 vfs_re D    pts/51     0:00 /bin/ls /mnt/sde1

$ ps -o wchan 1863
WCHAN
wait_for_commit

$ ps -o wchan 27995
WCHAN
vfs_readdir

-- 
| Ian! D. Allen  -  idallen@idallen.ca  -  Ottawa, Ontario, Canada
| Home Page: http://idallen.com/   Contact Improv: http://contactimprov.ca/
| College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/
| Defend digital freedom:  http://eff.org/  and have fun:  http://fools.ca/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-01-21  2:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-12  3:43 btrfs subvolume snapshot hung in btrfs_commit_transaction Ian! D. Allen
2010-12-12  8:14 ` Ian! D. Allen
2010-12-12  9:45   ` btrfs subvolume list fails to show all snapshots Ian! D. Allen
2010-12-13  8:47     ` Li Zefan
2011-01-20 23:01       ` Ian! D. Allen
2011-01-21  2:03         ` Li Zefan
2010-12-14  2:23   ` btrfs subvolume snapshot hung in btrfs_commit_transaction Ian! D. Allen
2010-12-17  1:47     ` Chris Mason
2010-12-17  4:45       ` Ian! D. Allen
2010-12-17 14:52         ` Chris Mason
  -- strict thread matches above, loose matches on Subject: below --
2010-12-08 14:01 Ian! D. Allen
2010-12-09 19:46 ` Ian! D. Allen

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).