linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: wcheng@redhat.com
Cc: Hisashi Hifumi <hifumi.hisashi@oss.ntt.co.jp>,
	linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] ext3,4:fdatasync should skip metadata writeout
Date: Thu, 15 Nov 2007 19:53:21 -0800	[thread overview]
Message-ID: <20071115195321.2b802bc0.akpm@linux-foundation.org> (raw)
In-Reply-To: <473D12DC.8090907@redhat.com>

On Thu, 15 Nov 2007 22:47:40 -0500 Wendy Cheng <wcheng@redhat.com> wrote:

> Andrew Morton wrote:
> 
> >On Fri, 16 Nov 2007 11:47:27 +0900 Hisashi Hifumi <hifumi.hisashi@oss.ntt.co.jp> wrote:
> >
> >  
> >
> >>Currently fdatasync is identical to fsync in ext3,4.
> >>I think fdatasync should skip journal flush in data=ordered and data=writeback mode
> >>because this syscall is not required to synchronize the metadata.
> >>    
> >>
> >
> >I suppose so.  Although one wonders what earthly point there is in syncing
> >a file's data if we haven't yet written out the metadata which is required
> >for locating that data.
> >
> >IOW, fdatasync() is only useful if the application knows that it is overwriting
> >already-instantiated blocks.
> >
> >In which case it might as well have used fsync().  For ext2-style filesystems,
> >anyway.
> >
> >hm.  It needs some thought.
> >
> >  
> >
> 
> There are non-trivial amount of performance critical programs, 
> particularly in financial application segment ported from legacy UNIX 
> platforms, know the difference between fsync() and fdatasync(). Those 
> can certainly take advantages of this separation. Don't underestimate 
> the talents of these application programmers.
> 

If they're that good, they'll be using sync_file_range() ;)

  reply	other threads:[~2007-11-16  3:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-16  2:47 [PATCH] ext3,4:fdatasync should skip metadata writeout Hisashi Hifumi
2007-11-16  2:59 ` Andrew Morton
2007-11-16  3:17   ` Jörn Engel
2007-11-16 18:12     ` Bryan Henderson
2007-11-16  3:47   ` Wendy Cheng
2007-11-16  3:53     ` Andrew Morton [this message]
2007-11-20  7:20   ` Hisashi Hifumi
2008-02-04 10:15   ` [RESEND] [PATCH] ext3,4:fdatasync should skip metadata writeout when overwriting Hisashi Hifumi
2008-02-06 16:22     ` Jan Kara
2008-02-07  6:45       ` Hisashi Hifumi
2007-11-16  3:43 ` [PATCH] ext3,4:fdatasync should skip metadata writeout Jörn Engel

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=20071115195321.2b802bc0.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=hifumi.hisashi@oss.ntt.co.jp \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=wcheng@redhat.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;
as well as URLs for NNTP newsgroup(s).