linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jamie Lokier <jamie@shareable.org>
To: Abhijit Paithankar <apaithan@akamai.com>
Cc: linux-fsdevel@vger.kernel.org, Andreas Dilger <adilger@sun.com>
Subject: Re: [RFC PATCH] Filesystem Journal Notifications
Date: Wed, 17 Sep 2008 12:35:22 +0100	[thread overview]
Message-ID: <20080917113522.GB22613@shareable.org> (raw)
In-Reply-To: <20080917000600.GA30388@apaithan-desktop.sanmateo.corp.akamai.com>

Abhijit Paithankar wrote:
> > > One way to do it is to fsync every few operations. However, fsync is
> > > blocking and affects performance.
> > >
> > > The other (more efficient) way is to have the filesystem notify the
> > > application when a transaction/change is written to disk.
> > 
> > Is this more efficient than aio_fsync, and if so, why?
> > 
> > For file writes, aio_fsync seems like a cleaner interface, and if
> > that's not fast enough, it could be made faster - perhaps using code
> > form this patch.  (An aio_fsync_ranges would be even better).
> 
> aio_fsync does not provide any relationship between the metadata
> operations and journal commit. There is no mechanism to track
> operations which made it to the journal and the ones that did not.

Oh, do you mean that aio_fsync tells you all operations have reached
the journal up to the time of aio_fsync, but your notifications say
_which_ operations reach it one at a time, so you can wait on specific
ones without waiting for them all?

If the latter, I agree that what you're doing is good :-)

-- Jamie

      reply	other threads:[~2008-09-17 11:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-12 22:06 [RFC PATCH] Filesystem Journal Notifications Abhijit Paithankar
2008-09-13  9:19 ` Dave Chinner
2008-09-15  2:31 ` Andreas Dilger
2008-09-15  5:39   ` Andreas Dilger
2008-09-15 19:36     ` Abhijit Paithankar
2008-09-15 23:37       ` Andreas Dilger
2008-09-16 23:05         ` Abhijit Paithankar
2008-09-19 20:34           ` Andreas Dilger
2008-09-20 15:51             ` Jamie Lokier
2008-09-20  5:15       ` Jan Kara
2008-09-23 22:26         ` Andreas Dilger
2008-09-15 13:23 ` Jamie Lokier
2008-09-17  0:06   ` Abhijit Paithankar
2008-09-17 11:35     ` Jamie Lokier [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=20080917113522.GB22613@shareable.org \
    --to=jamie@shareable.org \
    --cc=adilger@sun.com \
    --cc=apaithan@akamai.com \
    --cc=linux-fsdevel@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).