From: Martin Steigerwald <Martin@lichtvoll.de>
To: linux-btrfs@vger.kernel.org
Cc: Mitch Harder <mitch.harder@sabayonlinux.org>
Subject: Re: Varying Leafsize and Nodesize in Btrfs
Date: Fri, 12 Oct 2012 12:32:55 +0200 [thread overview]
Message-ID: <201210121232.55415.Martin@lichtvoll.de> (raw)
In-Reply-To: <CAKcLGm_MKEdTiHFBd-b-v2sN5gJmgFRqsykzWRXTVqUw4O6Acw@mail.gmail.com>
Am Donnerstag, 30. August 2012 schrieb Mitch Harder:
> I've been trying out different leafsize/nodesize settings by
> benchmarking some typical operations.
>
> These changes had more impact than I expected. Using a
> leafsize/nodesize of either 8192 or 16384 provided a noticeable
> improvement in my limited testing.
>
> These results are similar to some that Chris Mason has already
> reported: https://oss.oracle.com/~mason/blocksizes/
>
> I noticed that metadata allocation was more efficient with bigger
> block sizes. My data was git kernel sources, which will utilize
> btrfs' inlining. This may have tilted the scales.
>
> Read operations seemed to benefit the most. Write operations seemed
> to get punished when the leafsize/nodesize was increased to 64K.
>
> Are there any known downsides to using a leafsize/nodesize bigger than
> the default 4096?
>
>
> Time (seconds) to finish 7 simultaneous copy operations on a set of
> Linux kernel git sources.
>
> Leafsize/
> Nodesize Time (Std Dev%)
> 4096 124.7 (1.25%)
> 8192 115.2 (0.69%)
> 16384 114.8 (0.53%)
> 65536 130.5 (0.3%)
Thanks for your testing, Mitch.
I would be interested in results for 32768 bytes as well.
Why?
It improves until 16384 bytes but then it gets worse with 65536 bytes. It
would be interesting to know whether it improves for 32768 or already gets
worse with that value :)
Ciao,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
next prev parent reply other threads:[~2012-10-12 10:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-30 15:18 Varying Leafsize and Nodesize in Btrfs Mitch Harder
2012-08-30 16:25 ` Josef Bacik
2012-08-30 21:34 ` Martin Steigerwald
2012-08-30 21:50 ` Josef Bacik
2012-08-31 0:01 ` Chris Mason
2012-08-31 5:02 ` Roman Mamedov
2012-10-11 17:58 ` Phillip Susi
2012-10-12 10:32 ` Martin Steigerwald [this message]
2012-10-12 12:52 ` Martin Steigerwald
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=201210121232.55415.Martin@lichtvoll.de \
--to=martin@lichtvoll.de \
--cc=linux-btrfs@vger.kernel.org \
--cc=mitch.harder@sabayonlinux.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).