From: Marc MERLIN <marc@merlins.org>
To: Duncan <1i5t5.duncan@cox.net>,
Nazar Mokrynskyi <nazar@mokrynskyi.com>,
Alexander Fougner <fougner89@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Major HDD performance degradation on btrfs receive
Date: Tue, 23 Feb 2016 09:26:35 -0800 [thread overview]
Message-ID: <20160223172635.GI22487@merlins.org> (raw)
In-Reply-To: <CAGGqMYS=O=zzZE2pK=Stx6OwrZn1Fz59oYBS+jbSHfu4Ovv68Q@mail.gmail.com> <04df0eaf-9dc8-b9fa-05cb-020507940bed@mokrynskyi.com> <pan$9ab32$bee891f3$832766e9$6d69ce8@cox.net>
Well, since we're on the topic, my backup server btrfs FS has become so
slow that it hangs my system a few seconds here and there and causes
some of my cron jobs to fail.
I'm going to re-create it for a 3 time (in 3 years), adding bcache this
time, but clearly there is a good chance that this filesystem is indeed
going to crap performance wise because all it does is receive btrfs
receive and rsync backups, with snapshot rotations (daily snapshots, and
they expire after a couple of weeks).
I'm currently doing a very slow defrag to see if it'll help (looks like
it's going to take days).
I'm doing this:
for i in dir1 dir2 debian32 debian64 ubuntu dir4 ; do echo $i; time btrfs fi defragment -v -r $i; done
But, just to be clear, is there a way I missed to see how fragmented my
filesystem is without running filefrag on millions of files and parsing
the output?
Label: 'dshelf2' uuid: d4a51178-c1e6-4219-95ab-5c5864695bfd
Total devices 1 FS bytes used 4.25TiB
devid 1 size 7.28TiB used 4.44TiB path /dev/mapper/dshelf2
btrfs fi df /mnt/btrfs_pool2/
Data, single: total=4.29TiB, used=4.18TiB
System, DUP: total=64.00MiB, used=512.00KiB
Metadata, DUP: total=77.50GiB, used=73.31GiB
GlobalReserve, single: total=512.00MiB, used=31.22MiB
Currently, it's btrfs on top of dmcrpyt on top of swraid5
Since I'm about to recreate this after a very slow backup/restore
process, if you have suggestions on how I could better build this
(outside of using a 4.4 kernel this time), they would be appreciated.
Also, should I try running defragment -r from cron from time to time?
Thanks,
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901
next prev parent reply other threads:[~2016-02-23 17:27 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-22 19:58 Major HDD performance degradation on btrfs receive Nazar Mokrynskyi
2016-02-22 23:30 ` Duncan
2016-02-23 17:26 ` Marc MERLIN [this message]
2016-02-23 17:34 ` Marc MERLIN
2016-02-23 18:01 ` Lionel Bouton
2016-02-23 18:30 ` Marc MERLIN
2016-02-23 20:35 ` Lionel Bouton
2016-02-24 10:01 ` Patrik Lundquist
2016-02-23 16:55 ` Nazar Mokrynskyi
2016-02-23 17:05 ` Alexander Fougner
2016-02-23 17:18 ` Nazar Mokrynskyi
2016-02-23 17:29 ` Alexander Fougner
2016-02-23 17:34 ` Nazar Mokrynskyi
2016-02-23 18:09 ` Austin S. Hemmelgarn
2016-02-23 17:44 ` Nazar Mokrynskyi
2016-02-24 22:32 ` Henk Slager
2016-02-24 22:46 ` Nazar Mokrynskyi
[not found] ` <ce805cd7-422c-ab6a-fbf8-18a304aa640d@mokrynskyi.com>
2016-02-25 1:04 ` Henk Slager
2016-03-15 0:47 ` Nazar Mokrynskyi
2016-03-15 23:11 ` Henk Slager
2016-03-16 3:37 ` Nazar Mokrynskyi
2016-03-16 4:18 ` Chris Murphy
2016-03-16 4:23 ` Nazar Mokrynskyi
2016-03-16 6:51 ` Chris Murphy
2016-03-16 11:53 ` Austin S. Hemmelgarn
2016-03-16 20:58 ` Chris Murphy
2016-03-16 4:22 ` Chris Murphy
2016-03-17 7:00 ` Duncan
2016-03-18 14:22 ` Nazar Mokrynskyi
2016-05-27 1:57 ` Nazar Mokrynskyi
-- strict thread matches above, loose matches on Subject: below --
2016-02-22 19:39 Nazar Mokrynskyi
2016-02-16 4:44 Nazar Mokrynskyi
2016-02-16 9:10 ` Duncan
2016-02-18 18:19 ` Henk Slager
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=20160223172635.GI22487@merlins.org \
--to=marc@merlins.org \
--cc=1i5t5.duncan@cox.net \
--cc=fougner89@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=nazar@mokrynskyi.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 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).