From: Hans van Kranenburg <hans.van.kranenburg@mendix.com>
To: dsterba@suse.cz, Adam Borowski <kilobyte@angband.pl>,
Chris Mason <clm@fb.com>, Josef Bacik <jbacik@fb.com>,
linux-btrfs@vger.kernel.org
Subject: Re: [PATCH v2] btrfs: drop the nossd flag when remounting with -o ssd
Date: Tue, 4 Apr 2017 00:43:57 +0200 [thread overview]
Message-ID: <06cd6e94-1ffa-f6b7-acd2-cc122d2fd5f2@mendix.com> (raw)
In-Reply-To: <20170403122454.GT4781@twin.jikos.cz>
On 04/03/2017 02:24 PM, David Sterba wrote:
> On Fri, Mar 31, 2017 at 10:24:57PM +0200, Hans van Kranenburg wrote:
>>>> Adding the 'nossd_spread' would be good to have, even if it might be
>>>> just a marginal usecase.
>>
>> Please no, don't make it more complex if not needed.
>
> The only use is when ssd,ssd_spread are on and then I'd just want to
> disable ssd_spread, without disabling ssd at the same time.
>
> 1. mount -o ssd,ssd_spread
> 2. mount -o remount,nossd_spread
>
> compared to
>
> 1. mount -o ssd,ssd_spread
> 2. mount -o remount,nossd
> 3. mount -o remount,ssd
>
> I'd vote for adding nossd_spread, as the 'no-' options are common and
> otherwise disabling ssd_spread would be another usage exception.
Yes, 'nossd_spread' would intuitively be the thing to try to get rid of
'ssd_spread' on a mounted fs. But, nossd_spread is not a feature, just
like noautodefrag isn't. nossd *is* a feature, but also a remount
option... :o)
The mount manpage displays the values as a choice between 3 exclusive
options: ssd|nossd|ssd_spread
They're like an increasing level of magic that is being applied:
nossd < ssd < ssd_spread
So, that documentation with the | makes me think: I have to choose
either one. But that's not how it behaves, since some of them can appear
But don't listen to me, I don't know what the best thing is.
>>> Not sure if there's much point. In any case, that's a separate patch.
>>> Should I add one while we're here?
>>
>> Since the whole ssd thing is a bit of a joke actually, I'd rather see it
>> replaces with an option to choose an extent allocator algorithm.
>
> Yeah, SSD is not the shiny new tech anymore, so we'd need something more
> future proof.
>
>> The amount of if statements using this SSD things in btrfs in the kernel
>> can be counted on one hand, and what they actually do is quite
>> questionable (food for another mail thread).
>
> That's right, do you have suggestions for futher SSD optimizations?
> Other than better block alignment, faster flushes and no seek penalty, I
> don't see much else.
Yes, I'd like to start a discussion about that, but not buried in this
thread, and it's not about SSDs, but about a larger filesystem than the
average desktop computer and trade-offs between free space fragmentation
(going ENOSPC when 30 of your 40TiB is in use...) and metadata write
amplification (smaller writes leading to more cow, and, "let's track
extent tree storage inside the extent tree", which causes huge
avalanches of writing and writing and writing metadata with nossd).
And currently it's the ssd options that are influencing this a bit. But,
it doesn't make sense to punish people with a slow rotating drive with
things like having to write 40GiB of metadata when you feed 1 GiB of
data to balance...
But, more about that later, otherwise this is going to look too much
like a rant.
--
Hans van Kranenburg
next prev parent reply other threads:[~2017-04-03 22:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-30 23:01 Cosmetics bug: remounting ssd does not clear nossd Hans van Kranenburg
2017-03-31 15:19 ` [PATCH] btrfs: drop the nossd flag when remounting with -o ssd Adam Borowski
2017-03-31 16:00 ` Hans van Kranenburg
2017-03-31 17:10 ` David Sterba
2017-03-31 20:08 ` [PATCH v2] " Adam Borowski
2017-03-31 20:24 ` Hans van Kranenburg
2017-03-31 20:43 ` Adam Borowski
2017-03-31 20:50 ` Hans van Kranenburg
2017-04-03 12:24 ` David Sterba
2017-04-03 22:43 ` Hans van Kranenburg [this message]
2017-04-10 17:35 ` David Sterba
2017-04-03 12:25 ` David Sterba
2017-04-15 19:12 ` [PATCH] " Hans van Kranenburg
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=06cd6e94-1ffa-f6b7-acd2-cc122d2fd5f2@mendix.com \
--to=hans.van.kranenburg@mendix.com \
--cc=clm@fb.com \
--cc=dsterba@suse.cz \
--cc=jbacik@fb.com \
--cc=kilobyte@angband.pl \
--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).