From: Tomasz Chmielewski <mangoo@wpkg.org>
To: dsterba@suse.cz
Cc: Josef Bacik <jbacik@fusionio.com>,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: btrfs: qgroup scan failed with -12
Date: Wed, 25 Sep 2013 20:30:14 +0900 [thread overview]
Message-ID: <20130925203014.2153ec6b@wpkg.org> (raw)
In-Reply-To: <20130925101124.GT6810@suse.cz>
On Wed, 25 Sep 2013 12:11:24 +0200
David Sterba <dsterba@suse.cz> wrote:
> On Mon, Sep 23, 2013 at 01:43:48PM -0400, Josef Bacik wrote:
> > I've done that with a patch in bugzilla, hopefully that will fix
> > it. I've not had time to try and reproduce myself, but I assume if
> > you do something like create a random file, then create 100000
> > snapshots and then defrag it will probably hit the same problem.
> > Thanks,
>
> The patch looks ok.
>
> I've tried to reproduce it with 100k subvolumes but was not lucky to
> hit the allocation failure.
For me, it was quite easy (i.e. every few days) to hang the server with
32 GB RAM with the following:
- BackupPC running,
- fs mounted with noatime,compress-force=zlib
- extended inode refs enabled,
- skinny metadata extent refs enabled,
- qgroups enabled.
For those unfamiliar, BackupPC is a backup program.
It works by rsyncing data from (possibly many) remote systems.
Then, it "deduplicates" identical files, by hardlinking the files to
identical ones in its pool.
As a result, a system running BackupPC will have lots of files
(multiple revisions of backups, from many systems) with lots of
hardlinks.
Additionally, once per night, BackupPC scans its pool of hardlinked
files to find the ones with no hardlinks (meaning, file is unused, can
be removed); typically, the process takes many hours to finish.
I believe this is when my system with btrfs was hanging.
BackupPC doesn't use any specific btrfs features, like snapshots.
With the above, my system was hanging regularly, every few days.
I've disabled BackupPC and I'm running rsync + btrfs snapshot now - no
hang since then (at least till now). Could be coincidence, but who
knows.
[1] http://backuppc.sourceforge.net
--
Tomasz Chmielewski
http://wpkg.org
prev parent reply other threads:[~2013-09-25 11:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-23 0:43 btrfs: qgroup scan failed with -12 Tomasz Chmielewski
2013-09-23 13:00 ` Wang Shilong
2013-09-23 14:57 ` Josef Bacik
2013-09-23 17:19 ` David Sterba
2013-09-23 17:43 ` Josef Bacik
2013-09-25 10:11 ` David Sterba
2013-09-25 11:30 ` Tomasz Chmielewski [this message]
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=20130925203014.2153ec6b@wpkg.org \
--to=mangoo@wpkg.org \
--cc=dsterba@suse.cz \
--cc=jbacik@fusionio.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.