From: "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
To: "Ellis H. Wilson III" <ellisw@panasas.com>, linux-btrfs@vger.kernel.org
Subject: Re: Status of FST and mount times
Date: Thu, 15 Feb 2018 12:57:17 -0500 [thread overview]
Message-ID: <2d653ebf-11b0-2163-a223-609420423a5b@gmail.com> (raw)
In-Reply-To: <39aa2851-2c0a-d6c4-6ccf-d364c4aacbf4@panasas.com>
On 2018-02-15 11:58, Ellis H. Wilson III wrote:
> On 02/15/2018 11:51 AM, Austin S. Hemmelgarn wrote:
>> There are scaling performance issues with directory listings on BTRFS
>> for directories with more than a few thousand files, but they're not
>> well documented (most people don't hit them because most applications
>> are designed around the expectation that directory listings will be
>> slow in big directories), and I would not expect them to be much of an
>> issue unless you're dealing with tens of thousands of files and
>> particularly slow storage.
>
> Understood -- thanks. Then plan is to keep it to around 1k entries per
> directory. We've done some fairly concrete testing here to find the
> fall-off point for dirent caching in BTRFS, and the sweet-spot between
> having a large number of small directories cached vs. a few massive
> directories cached. ~1k seems most palatable for our use-case and
> directory tree structure.
Yeah, in my own experience this starts to get noticeable on slower
storage around about 4k or more entries in a directory, but it ends up
depending on the hardware to a certain extent and the rest of the system
as well (something Samba does seems to make it significantly worse than
listing locally for example, while NFS seems to be only be worse because
of network latency).
>
>> I've only ever lost a BTRFS volume to a power failure _once_ in the
>> multiple years I've been using it, and that ended up being because the
>> power failure trashed the storage device pretty severely (it was
>> super-cheap flash storage). I do know however that there are people
>> who have had much worse results than me.
>
> Good to know. We'll be running power-fail testing over the next couple
> months. I'm waiting for some hardware to arrive presently. We'll
> power-cycle fairly large filesystems a few thousand times before we deem
> it safe to ship. If there are latent bugs in BTRFS still w.r.t.
> power-fail, I can guarantee we'll trip over them...
Most of my own experience regarding power failures with BTRFS is on
SSD's. We actually use it on the embedded systems we build where I
work, and a lot of our customers don't have the most reliable mains
power (or they're too lazy to shut off the computer properly before
flipping the main breaker for the machine to power it off for the
evening), so some of our systems may see power failures on an almost
daily basis. Despite that, we've never had issues with BTRFS not
recovering by itself, though we do have a very read-heavy workload with
very infrequent writes, so that may be part of why it's worked so well
for us.
next prev parent reply other threads:[~2018-02-15 17:57 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-14 16:00 Status of FST and mount times Ellis H. Wilson III
2018-02-14 17:08 ` Nikolay Borisov
2018-02-14 17:21 ` Ellis H. Wilson III
2018-02-15 1:42 ` Qu Wenruo
2018-02-15 2:15 ` Duncan
2018-02-15 3:49 ` Qu Wenruo
2018-02-15 11:12 ` Hans van Kranenburg
2018-02-15 16:30 ` Ellis H. Wilson III
2018-02-16 1:55 ` Qu Wenruo
2018-02-16 14:12 ` Ellis H. Wilson III
2018-02-16 14:20 ` Hans van Kranenburg
2018-02-16 14:42 ` Ellis H. Wilson III
2018-02-16 14:55 ` Ellis H. Wilson III
2018-02-17 0:59 ` Qu Wenruo
2018-02-20 14:59 ` Ellis H. Wilson III
2018-02-20 15:41 ` Austin S. Hemmelgarn
2018-02-21 1:49 ` Qu Wenruo
2018-02-21 14:49 ` Ellis H. Wilson III
2018-02-21 15:03 ` Hans van Kranenburg
2018-02-21 15:19 ` Ellis H. Wilson III
2018-02-21 15:56 ` Hans van Kranenburg
2018-02-22 12:41 ` Austin S. Hemmelgarn
2018-02-21 21:27 ` E V
2018-02-22 0:53 ` Qu Wenruo
2018-02-15 5:54 ` Chris Murphy
2018-02-14 23:24 ` Duncan
2018-02-15 15:42 ` Ellis H. Wilson III
2018-02-15 16:51 ` Austin S. Hemmelgarn
2018-02-15 16:58 ` Ellis H. Wilson III
2018-02-15 17:57 ` Austin S. Hemmelgarn [this message]
2018-02-15 6:14 ` Chris Murphy
2018-02-15 16:45 ` Ellis H. Wilson III
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=2d653ebf-11b0-2163-a223-609420423a5b@gmail.com \
--to=ahferroin7@gmail.com \
--cc=ellisw@panasas.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 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).