From: Edward Shishkin <edward.shishkin@gmail.com>
To: Ivan Shapovalov <intelfx100@gmail.com>
Cc: "Dušan Čolić" <dusanc@gmail.com>,
reiserfs-devel <reiserfs-devel@vger.kernel.org>
Subject: Re: [RFC] [PATCHv2 0/5] reiser4: discard support: initial implementation.
Date: Tue, 06 May 2014 18:43:52 +0200 [thread overview]
Message-ID: <53691148.6060405@gmail.com> (raw)
In-Reply-To: <4205015.az6QQplYXK@intelfx-laptop>
On 05/06/2014 11:56 AM, Ivan Shapovalov wrote:
> Hi Dušan,
>
> On Tuesday 06 May 2014 at 09:09:12, Dušan Čolić wrote:
>> What about trim performance penalty? AFAIK all devices that are below
>> SATA3.1 have pretty long time to execute discard command so if we execute
>> discard at every commit time we could make large stalls to the system. Can
>> we batch them
> This is already happening. Other filesystems issue discard requests directly
> when blocks are deallocated, once per each extent. We delay them until a
> transaction is committed, in hope to be able to merge small extents into large
> ones and issue a lesser count of discard requests.
I would also add that discard extents issued by reiser4 are of the best
quality, because we maintain 2 exemplars of bitmap. Allocation always
happens on the base of working bitmap, where discard extents are still
marked as busy. So we don't "spoil" them..
Edward.
> Any penalties remaining with this approach are inherent; if one can't tolerate
> these, they just should not use "realtime" TRIM, i. e. not pass 'discard'
> mount option.
>
> There is other way around: fstrim utility and FITRIM ioctl, which tells
> filesystem to do a "cleaning sweep" and discard every free block at once. This
> is to be implemented shortly.
>
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-05-06 16:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-06 5:30 [RFC] [PATCHv2 0/5] reiser4: discard support: initial implementation Ivan Shapovalov
2014-05-06 5:30 ` [RFC] [PATCHv2 1/5] reiser4: discard support: make space_allocator's check_blocks() reusable Ivan Shapovalov
2014-05-06 5:30 ` [RFC] [PATCHv2 2/5] reiser4: discard support: initial implementation using extent lists Ivan Shapovalov
2014-05-06 5:30 ` [RFC] [PATCHv2 3/5] reiser4: discard support: enable discard functionality through a mount option Ivan Shapovalov
2014-05-06 5:30 ` [RFC] [PATCHv2 4/5] reiser4: discard support: add assertions to all code written within this feature Ivan Shapovalov
2014-05-06 5:30 ` [RFC] [PATCHv2 5/5] reiser4: discard support: downgrade all reiser4_log() to reiser4_debug() Ivan Shapovalov
[not found] ` <CADW=+3=B7aNyBdKwhHS_r8bMO+ZrjK5WNbdEXVXfGvRP7KQK-g@mail.gmail.com>
2014-05-06 9:56 ` [RFC] [PATCHv2 0/5] reiser4: discard support: initial implementation Ivan Shapovalov
2014-05-06 16:43 ` Edward Shishkin [this message]
2014-05-07 7:17 ` Ivan Shapovalov
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=53691148.6060405@gmail.com \
--to=edward.shishkin@gmail.com \
--cc=dusanc@gmail.com \
--cc=intelfx100@gmail.com \
--cc=reiserfs-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.