From: Timofey Titovets <nefelim4ag@gmail.com>
To: Stefan Priebe - Profihost AG <s.priebe@profihost.ag>
Cc: Henk Slager <eye1tm@gmail.com>,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: speed up big btrfs volumes with ssds
Date: Mon, 4 Sep 2017 23:35:19 +0300 [thread overview]
Message-ID: <CAGqmi76_WpVTfaSNJK4GV=Xsf7KcF_A8EJCbHLFPoPXO-ai4ag@mail.gmail.com> (raw)
In-Reply-To: <05997689-bcdb-d136-a35a-6c0c7beeb1c0@profihost.ag>
2017-09-04 21:32 GMT+03:00 Stefan Priebe - Profihost AG <s.priebe@profihost.ag>:
>> May be you can make work your raid setup faster by:
>> 1. Use Single Profile
>
> I'm already using the raid0 profile - see below:
If i understand correctly, you have a very big data set with random RW
access, so:
I'm saying about single profile for compact writes to one device, that
can make WB cache more effective
Because writes will not spread on several devices and as result that
increase chance that full stripe will be overwriten
That's will just work as raid0 with very big stripe size.
> Data,RAID0: Size:22.57TiB, Used:21.08TiB
> Metadata,RAID0: Size:90.00GiB, Used:82.28GiB
> System,RAID0: Size:64.00MiB, Used:1.53MiB
>
>> 2. Use different stripe size for HW RAID5:
>> i think 16kb will be optimal with 5 devices per raid group
>> That will give you 64kb data stripe and 16kb parity
>> Btrfs raid0 use 64kb as stripe so that can make data access
>> unaligned (or use single profile for btrfs)
>
> That sounds like an interesting idea except for the unaligned writes.
> Will need to test this.
Afaik btrfs also use 64kb for metadata:
https://github.com/torvalds/linux/blob/e26f1bea3b833fb2c16fb5f0a949da1efa219de3/fs/btrfs/extent-tree.c#L6678
>> 3. Use btrfs ssd_spread to decrease RMW cycles.
> Can you explain this?
Long description:
https://www.spinics.net/lists/linux-btrfs/msg67515.html
Short:
that option will change allocator logic.
Allocator will spread writes more aggressively and always try write to
new/empty area.
So in theory that will write new data to new empty chunk, so if you
have much free space that will make some guaranty to not touch old
data, so not do RWM and in theory always do full stripe write.
But if you expect that you array will be near full and you don't want
do defragment on that, that can easy get you enospace error.
> Stefan
That just my IMHO,
Thanks.
--
Have a nice day,
Timofey.
next prev parent reply other threads:[~2017-09-04 20:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-03 18:32 speed up big btrfs volumes with ssds Stefan Priebe - Profihost AG
2017-09-03 19:16 ` Peter Grandi
2017-09-04 10:53 ` Henk Slager
2017-09-04 11:43 ` Peter Grandi
2017-09-04 12:57 ` Stefan Priebe - Profihost AG
2017-09-04 13:28 ` Timofey Titovets
2017-09-04 18:23 ` Peter Grandi
2017-09-04 18:32 ` Stefan Priebe - Profihost AG
2017-09-04 20:35 ` Timofey Titovets [this message]
2017-09-11 9:22 ` Stefan Priebe - Profihost AG
2017-09-04 13:38 ` Russell Coker
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='CAGqmi76_WpVTfaSNJK4GV=Xsf7KcF_A8EJCbHLFPoPXO-ai4ag@mail.gmail.com' \
--to=nefelim4ag@gmail.com \
--cc=eye1tm@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=s.priebe@profihost.ag \
/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).