From: Jan Kara <jack@suse.cz>
To: Al Boldi <a1426z@gawab.com>
Cc: "Theodore Ts'o" <tytso@mit.edu>, Jan Kara <jack@suse.cz>,
Linux Kernel Developers List <linux-kernel@vger.kernel.org>,
linux-ext4@vger.kernel.org
Subject: Re: [PATCH, RFC] ext3: Update Kconfig description of EXT3_DEFAULTS_TO_ORDERED
Date: Tue, 11 Aug 2009 11:33:16 +0200 [thread overview]
Message-ID: <20090811093316.GA23898@duck.suse.cz> (raw)
In-Reply-To: <200908110649.20277.a1426z@gawab.com>
On Tue 11-08-09 06:49:20, Al Boldi wrote:
> Theodore Ts'o wrote:
> > + "data=ordered" mode can also result in major performance
> > + problems, including seconds-long delays before an fsync()
> > + call returns. For details, see:
> > +
> > + http://ext4.wiki.kernel.org/index.php/Ext3_data_mode_tradeoffs
>
> Why isn't the fsync problem fixable?
Because it's quite deep in the design of JBD: All the modifications done
to a filesystem go to one transactions. When the transaction grows big
enough or old enough, we commit the transaction, which means we write all
the metadata to the journal and all the ordered data to their final
location on disk. If you do fsync(), you have to wait for a transaction
commit with your data to finish, so that you are guaranteed a consistent
state of metadata is on disk. But when there is heavy background writing,
it means there's a lot of data you have to write out and wait for... It's
not easy to work around this - naively, you might want to separate out just
the writes you care about for fsync() but that's not easily possible
because bitmaps and group descriptors are modified by other writes as well.
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
next prev parent reply other threads:[~2009-08-11 11:56 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-10 20:03 Theodore Ts'o
2009-08-10 20:28 ` Jan Kara
2009-08-10 20:55 ` Ric Wheeler
2009-08-11 3:49 ` Al Boldi
2009-08-11 9:33 ` Jan Kara [this message]
2009-08-11 11:41 ` Al Boldi
2009-08-11 13:35 ` What happened to data=guarded? (was: ext3: Update Kconfig description of EXT3_DEFAULTS_TO_ORDERED) Frans Pop
2009-08-11 13:37 ` Chris Mason
2009-08-11 14:54 ` What happened to data=guarded? Frans Pop
2009-08-11 15:29 ` Andi Kleen
2009-08-11 15:34 ` Jan Kara
2009-08-11 18:04 ` Eric Sandeen
2009-08-11 18:57 ` Theodore Tso
2009-08-10 16:42 ` Pavel Machek
2009-08-11 22:00 ` Bernd Eckenfels
2009-08-12 20:37 ` Jan Kara
2009-08-11 19:09 ` Andi Kleen
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=20090811093316.GA23898@duck.suse.cz \
--to=jack@suse.cz \
--cc=a1426z@gawab.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
/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
all inboxes | Powered by JetHome®