public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Muthian Sivathanu <muthian_s@yahoo.com>
To: linux-os@analogic.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: ext3 journal commit performance
Date: Wed, 2 Mar 2005 09:46:37 -0800 (PST)	[thread overview]
Message-ID: <20050302174637.77861.qmail@web53708.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0503021237110.5955@chaos.analogic.com>

> >
> > I have a question on ext3 journal commit code. 
> When a
> > transaction is committed in the ordered mode, ext3
> > first issues the data writes, waits for them to
> > finish, then issues the journal writes, waits for
> them
> > to finish, and then writes out the commit record.
> >
> > It appears that the first wait (for the data
> blocks)
> > is unnecessary because all that is required is
> that
> 
> Wrong. If you perform two buffered writes
> back-to-back
> will you guarantee that they are both on the disk
> when
> the second finishes? Not on your life! They can
> (read will)
> be reordered depending upon the closest seek. So it
> is
> mandatory that one wait to make sure that both
> writes
> occur in order.
> 
> 

Sorry if I was unclear.  I did not say that waiting
for the metadata will guarantee commit of the data as
well.  My point is you can wait for both of them
_together_ after issuing both of them to disk, instead
of serializing them at the issue stage itself.

Muthian

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

  reply	other threads:[~2005-03-02 17:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-02 16:58 ext3 journal commit performance Muthian Sivathanu
2005-03-02 17:41 ` linux-os
2005-03-02 17:46   ` Muthian Sivathanu [this message]
2005-03-02 17:58 ` Andrew Morton
2005-03-02 21:29   ` Andrew Morton

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=20050302174637.77861.qmail@web53708.mail.yahoo.com \
    --to=muthian_s@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-os@analogic.com \
    /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