linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin LaHaise <bcrl@kvack.org>
To: Andreas Dilger <adilger@dilger.ca>
Cc: Ext4 Developers List <linux-ext4@vger.kernel.org>
Subject: Re: high write latency bug in ext3 / jbd in 3.4
Date: Mon, 13 Jan 2014 16:16:10 -0500	[thread overview]
Message-ID: <20140113211610.GE1214@kvack.org> (raw)
In-Reply-To: <99F82313-71DA-43E6-A071-05507183D481@dilger.ca>

On Mon, Jan 13, 2014 at 02:01:08PM -0700, Andreas Dilger wrote:
> Not to be flippant, but is there any reason NOT to just mount the
> filesystem with ext4?  There are a large number of improvements in
> the ext4 code that don't require on-disk format changes (e.g. delayed
> allocation, multi-block allocation, etc) if there is a concern about
> being able to downgrade to an ext3-type mount in case of problems.

I'm leaning towards doing this.  The main reason for not doing so was 
primarily that a few of the tweaks that I had been made to ext3 would 
have to be ported to ext4.  Thankfully, I think we're still in an early 
enough stage of release that I should be able to do so.  The changes 
are pretty specific, mostly allocator tweaks to improve the on-disk 
layout for our specific use-case.

> There are further improvements in ext4 that can be used on upgraded
> ext3 filesystems if the feature bit is enabled (in particular extent
> mapped files).  However, extent mapped files are not accessible under
> ext3, so it makes sense to run with ext4 w/o any new features for a
> while until you are sure it is working for you.

I had hoped to use ext4, but the recommended fsck after changing the 
various feature bits is a non-starter during our upgrade process (a 22 
minute outage isn't acceptable).

> Using delalloc, mballoc, and extents can reduce application visible
> read, write, and unlink latency significantly, because the blocks are
> being allocated and freed in contiguous chunks after the file is
> written from userspace.
> 
> We've been discussing deleting the ext3 code in favour of ext4 for
> a while already, and newer Fedora and RHEL kernels are using the
> ext4 code to mount ext2- and ext3-formatted filesystems for a while
> already.

That is reassuring to hear.  I'll give it a try and see what happens.

		-ben

> Cheers, Andreas
> 
> 
> 
> 
> 



-- 
"Thought is the essence of where you are now."

  reply	other threads:[~2014-01-13 21:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-13 20:13 high write latency bug in ext3 / jbd in 3.4 Benjamin LaHaise
2014-01-13 21:01 ` Andreas Dilger
2014-01-13 21:16   ` Benjamin LaHaise [this message]
2014-01-13 21:39     ` Eric Sandeen
2014-01-13 22:52     ` Theodore Ts'o
2014-01-14  0:55       ` Andreas Dilger
2014-01-14  1:01         ` Eric Sandeen
2014-01-14  1:21       ` Benjamin LaHaise
2014-01-14  3:52         ` Theodore Ts'o
2014-01-27 23:55 ` Jan Kara
2014-01-28 16:06   ` Benjamin LaHaise

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=20140113211610.GE1214@kvack.org \
    --to=bcrl@kvack.org \
    --cc=adilger@dilger.ca \
    --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 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).