From: Zygo Blaxell <zblaxell@furryterror.org>
To: Robert White <rwhite@pobox.com>
Cc: Arnaud Kapp <kapp.arno@gmail.com>,
linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: 5 _thousand_ snapshots? even 160? (was: device balance times)
Date: Wed, 22 Oct 2014 00:02:53 -0400 [thread overview]
Message-ID: <20141022040253.GD29401@hungrycats.org> (raw)
In-Reply-To: <54470403.8020904@pobox.com>
[-- Attachment #1: Type: text/plain, Size: 1664 bytes --]
On Tue, Oct 21, 2014 at 06:10:27PM -0700, Robert White wrote:
> That's an unmanageably large and probably pointless number of
> snapshots guys.
>
> I mean 150 is a heck of a lot, and 5000 is almost unfathomable in
> terms of possible usefulness.
>
> Snapshots are cheap but they aren't free.
This could be better documented. Most of the documentation about btrfs
snapshots frankly just says how to make them and how awesome they are.
In small-scale tests they seem cheap--a little more expensive than
mkdir--but on larger scales they can become nightmares.
Things I learned the hard way about ~200 snapshots on a half-TB
filesystem:
btrfs balance cancel/pause take a long time. Like 24+ hours. Not the
entire balance operation--just one block group. Reboot and mount with
skip_balance is a crude but effective way out.
Making new snapshots is cheap. Deleting them is not. btrfs-cleaner
will systematically disassemble each snapshot, sequentially, one extent
(or some similarly tiny fragment) at a time, for more than a week.
fsync() will take several seconds on that filesystem for the entire
time btrfs-cleaner is running. There is no way to pause or stop the
btrfs-cleaner kernel thread and as far as I can tell it's more or less
immune to attempts to limit the amount of I/O bandwidth it demands with
cgroup blkio.weight or ionice. Rebooting won't even stop it--it will
just resume the next time the filesystem is mounted. mkfs and restore
the filesystem from a backup of the original subvolume--it's an order
of magnitude faster even with rsync.
2 or 3 are good numbers for snapshots. 0 or 1 are even better.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2014-10-22 4:02 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-21 18:59 device balance times Tomasz Chmielewski
2014-10-21 20:14 ` Piotr Pawłow
2014-10-21 20:44 ` Arnaud Kapp
2014-10-22 1:10 ` 5 _thousand_ snapshots? even 160? (was: device balance times) Robert White
2014-10-22 4:02 ` Zygo Blaxell [this message]
2014-10-22 4:05 ` Duncan
2014-10-23 20:38 ` 5 _thousand_ snapshots? even 160? Arnaud Kapp
2014-10-22 11:30 ` Austin S Hemmelgarn
2014-10-22 17:32 ` Goffredo Baroncelli
2014-10-22 11:22 ` device balance times Austin S Hemmelgarn
2014-10-22 1:43 ` Chris Murphy
2014-10-22 12:40 ` Piotr Pawłow
2014-10-22 16:59 ` Bob Marley
2014-10-23 7:39 ` Russell Coker
2014-10-23 8:49 ` Duncan
2014-10-23 9:19 ` Miao Xie
2014-10-23 11:39 ` Austin S Hemmelgarn
2014-10-24 1:05 ` Duncan
2014-10-24 2:35 ` Zygo Blaxell
2014-10-24 5:13 ` Duncan
2014-10-24 15:18 ` Zygo Blaxell
2014-10-24 10:58 ` Rich Freeman
2014-10-24 16:07 ` Zygo Blaxell
2014-10-24 19:58 ` Rich Freeman
2014-10-22 16:15 ` Chris Murphy
2014-10-23 2:44 ` Duncan
-- strict thread matches above, loose matches on Subject: below --
2014-10-22 7:14 5 _thousand_ snapshots? even 160? (was: device balance times) Tomasz Chmielewski
2014-10-22 7:41 ` Duncan
2014-10-22 20:08 ` Zygo Blaxell
2014-10-22 20:37 ` Robert White
2014-10-23 3:09 ` Zygo Blaxell
2014-10-23 4:30 ` Chris Murphy
2014-10-23 5:18 ` Robert White
2014-10-23 8:38 ` Duncan
2014-10-23 13:15 ` Zygo Blaxell
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=20141022040253.GD29401@hungrycats.org \
--to=zblaxell@furryterror.org \
--cc=kapp.arno@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=rwhite@pobox.com \
/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.