All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ted Ts'o <tytso@mit.edu>
To: Eric Gouriou <egouriou@google.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: [PATCH 1/2] ext4: optimize ext4_ext_convert_to_initialized()
Date: Thu, 27 Oct 2011 11:46:16 -0400	[thread overview]
Message-ID: <20111027154616.GF31921@thunk.org> (raw)
In-Reply-To: <1317020069-16355-1-git-send-email-egouriou@google.com>

On Sun, Sep 25, 2011 at 11:54:28PM -0700, Eric Gouriou wrote:
> This patch introduces a fast path in ext4_ext_convert_to_initialized()
> for the case when the conversion can be performed by transferring
> the newly initialized blocks from the uninitialized extent into
> an adjacent initialized extent. Doing so removes the expensive
> invocations of memmove() which occur during extent insertion and
> the subsequent merge.
> 
> In practice this should be the common case for clients performing
> append writes into files pre-allocated via
> fallocate(FALLOC_FL_KEEP_SIZE). In such a workload performed via
> direct IO and when using a suboptimal implementation of memmove()
> (x86_64 prior to the 2.6.39 rewrite), this patch reduces kernel CPU
> consumption by 32%.
> 
> Two new trace points are added to ext4_ext_convert_to_initialized()
> to offer visibility into its operations. No exit trace point has
> been added due to the multiplicity of return points. This can be
> revisited once the upstream cleanup is backported.
> 
> Signed-off-by: Eric Gouriou <egouriou@google.com>

Thanks, applied.

						- Ted

      parent reply	other threads:[~2011-10-27 15:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-26  6:54 [PATCH 1/2] ext4: optimize ext4_ext_convert_to_initialized() Eric Gouriou
2011-09-26  6:54 ` [PATCH 2/2] ext4: optimize memmmove lengths in extent/index insertions Eric Gouriou
2011-09-26 12:23   ` Dmitry Monakhov
2011-09-26 16:20     ` Eric Gouriou
2011-10-27 15:56   ` Ted Ts'o
2011-10-27 15:46 ` Ted Ts'o [this message]

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=20111027154616.GF31921@thunk.org \
    --to=tytso@mit.edu \
    --cc=egouriou@google.com \
    --cc=linux-ext4@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.