linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Lots of trouble hanging when rm files with many extents
@ 2013-10-20 14:51 Tomasz Chmielewski
  2013-10-21  3:40 ` John Goerzen
  0 siblings, 1 reply; 8+ messages in thread
From: Tomasz Chmielewski @ 2013-10-20 14:51 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org, jgoerzen

> but I am not sure if that was the right thing to do.  This is
> producing OOM issues and leading to system crashes (including
> eventual panics) with such alarming frequency that I wonder if
> perhaps there is something different about my setup than others.

FYI, I'm seeing similar / random hangs on systems with btrfs,
compress-force=zlib, qgroups enabled. The systems have 32 GB RAM.
Sometimes, I can review old logs (after force reboot) and see OOM,
allocation failures and such.

The scenario there are snapshots, rsync with --inplace flag, which can
fragment files a lot.

I'll do some more tests with lots of extents to see if it's
reproducible here as well.


-- 
Tomasz Chmielewski
http://wpkg.org

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Lots of trouble hanging when rm files with many extents
@ 2013-10-22  9:40 Tomasz Chmielewski
  0 siblings, 0 replies; 8+ messages in thread
From: Tomasz Chmielewski @ 2013-10-22  9:40 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org, jgoerzen

> Another approach could probably be to write a C program that writes
> 20GB to a file, then seeks to random places within it, writing chunks
> of data within them.
> 
> I could probably whip up such a thing if the debuggers need it.

That would be very useful, I guess!

-- 
Tomasz Chmielewski
http://wpkg.org

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Lots of trouble hanging when rm files with many extents
@ 2013-10-21  4:36 Tomasz Chmielewski
  2013-10-21  9:58 ` Duncan
  2013-10-21 13:47 ` John Goerzen
  0 siblings, 2 replies; 8+ messages in thread
From: Tomasz Chmielewski @ 2013-10-21  4:36 UTC (permalink / raw)
  To: jgoerzen, linux-btrfs

> > I'll do some more tests with lots of extents to see if it's
> > reproducible here as well.
> 
> Interestingly, I've generally had qgroups enabled here as well,
> possibly on all of these systems.  Could that be the culprit?

Possibly.

Is there a reliable way to create files with many extents? I've tried
playing with fallocate, but couldn't create files with too many extents
with it.


-- 
Tomasz Chmielewski
http://wpkg.org

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Lots of trouble hanging when rm files with many extents
@ 2013-10-19 23:12 John Goerzen
  0 siblings, 0 replies; 8+ messages in thread
From: John Goerzen @ 2013-10-19 23:12 UTC (permalink / raw)
  To: linux-btrfs

Hello folks,

I reported a bug here:

https://bugzilla.kernel.org/show_bug.cgi?id=63071

but I am not sure if that was the right thing to do.  This is producing OOM
issues and leading to system crashes (including eventual panics) with such
alarming frequency that I wonder if perhaps there is something different
about my setup than others.

In a nutshell, I originally made the mistake of storing a VirtualBox 40G
.vdi file on a btrfs partition (kernel 3.10).  I  managed to copy it to a
file marked chattr +C (I read the wiki *NOW*), but I couldn't delete the
original file -- rm hangs the system.

(I actually have the original file and another made with cp --reflink of it,
while trying to diagnose the issue.  I need to rm both of them)

rm starts out with lots of hard disk activity, then that stops.  I
eventually get the attached kernel BUG, then a little bit later it panics
due to out of memory.

But later I had the virtually identical problem on another system, this one
on just a 5GB file with about 25,000 extents (it was the restoresymtable
from restore(8) from the e2fs dump/restore pair).   That took down my
server, trying to delete it.

I would have expected btrfs to be more resilient by this point.  Any ideas?

Thanks,

John


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

end of thread, other threads:[~2013-10-25 13:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-20 14:51 Lots of trouble hanging when rm files with many extents Tomasz Chmielewski
2013-10-21  3:40 ` John Goerzen
2013-10-25 13:41   ` rm with quotas can cause panic (was Re: Lots of trouble hanging when rm files with many extents) John Goerzen
  -- strict thread matches above, loose matches on Subject: below --
2013-10-22  9:40 Lots of trouble hanging when rm files with many extents Tomasz Chmielewski
2013-10-21  4:36 Tomasz Chmielewski
2013-10-21  9:58 ` Duncan
2013-10-21 13:47 ` John Goerzen
2013-10-19 23:12 John Goerzen

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