From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Status of FST and mount times
Date: Thu, 15 Feb 2018 02:15:36 +0000 (UTC) [thread overview]
Message-ID: <pan$4ce4f$f90ad4b5$3f1cd3cd$26789d16@cox.net> (raw)
In-Reply-To: 0c3fb0bb-6fd1-67f6-1c74-3ee98ae15303@gmx.com
Qu Wenruo posted on Thu, 15 Feb 2018 09:42:27 +0800 as excerpted:
> The easiest way to get a basic idea of how large your extent tree is
> using debug tree:
>
> # btrfs-debug-tree -r -t extent <device>
>
> You would get something like:
> btrfs-progs v4.15 extent tree key (EXTENT_TREE ROOT_ITEM 0) 30539776
> level 0 <<<
> total bytes 10737418240 bytes used 393216 uuid
> 651fcf0c-0ffd-4351-9721-84b1615f02e0
>
> That level is would give you some basic idea of the size of your extent
> tree.
>
> For level 0, it could contains about 400 items for average.
> For level 1, it could contains up to 197K items.
> ...
> For leven n, it could contains up to 400 * 493 ^ (n - 1) items.
> ( n <= 7 )
So for level 2 (which I see on a couple of mine here, ran it out of
curiosity):
400 * 493 ^ (2 - 1) = 400 * 493 = 197200
197K for both level 1 and level 2? Doesn't look correct.
Perhaps you meant a simple power of n, instead of (n-1)? That would
yield ~97M for level 2, and would yield the given numbers for levels 0
and 1 as well, whereby using n-1 for level 0 yields less than a single
entry, and 400 for level 1.
Or the given numbers were for level 1 and 2, with level 0 not holding
anything, not levels 0 and 1. But that wouldn't jive with your level 0
example, which I would assume could never happen if it couldn't hold even
a single entry.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2018-02-15 2:18 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 [this message]
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
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='pan$4ce4f$f90ad4b5$3f1cd3cd$26789d16@cox.net' \
--to=1i5t5.duncan@cox.net \
--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).