From: NeilBrown <neilb@suse.de>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Andi Kleen <andi@firstfloor.org>, Matt Mackall <mpm@selenic.com>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Nanosecond fs timestamp support: sad
Date: Sat, 23 Jul 2011 08:59:15 +1000 [thread overview]
Message-ID: <20110723085915.308ddc02@notabene.brown> (raw)
In-Reply-To: <20110722223158.GC10749@fieldses.org>
On Fri, 22 Jul 2011 18:31:58 -0400 "J. Bruce Fields" <bfields@fieldses.org>
wrote:
> On Fri, Jul 22, 2011 at 06:10:39PM -0400, bfields wrote:
> > On Fri, Jul 22, 2011 at 11:47:32PM +0200, Andi Kleen wrote:
> > > On Fri, Jul 22, 2011 at 04:11:42PM -0500, Matt Mackall wrote:
> > > > On Fri, 2011-07-22 at 22:59 +0200, Andi Kleen wrote:
> > > > > > Indeed. Only usefully exists on ext4 and requires extra system calls.
> > > > >
> > > > > Not sure what you mean? It's in stat(2), just like the timestamps.
> > > >
> > > > I don't see anything that looks like a version or generation number in
> > > > either the man pages, the asm-generic/stat.h, or glibc's asm/stat.h.
> > > > Pointer?
> > >
> > > Hmm you're right. I thought it was in there, but apparently not.
> > > I think it should be added there though. We still have some unused
> > > fields.
> >
> > But last I checked I thought it was only ext4 that actually incremented
> > the i_version on IO, and even then only when given a (non-default) mount
> > option.
> >
> > My notes on what needs to be done there:
> >
> > - collect data to determine whether turning on i_version causes
> > any significant performance regressions.
> > - Last I talked to him, Ted Tso recommended running
> > Bonnie on a local disk, since it does a lot of little
> > writes, which is somewhat of a worst case, as it will
> > generate extra metadata updates for each write.
> > Compare total wall-clock time, number of iops, and
> > number of bytes (using some kind of block tracing).
> > - If there aren't any problems, turn it on by default, and we're
> > done.
>
> (Well,and talk the other filesystem implementors into doing it.)
>
But does anyone apart from NFSv4 actually *want* i_version as opposed to the
more-generally-useful precise timestamps?
If not, we probably should tell NFSv4 to use timestamps and focus on making
them work well.
??
The timestamp used doesn't need to update ever nanosecond. I think if it
were just updated on every userspace->kernel transition (or effective
equivalents inside kernel threads) that would be enough capture all
causality. I wonder how that would be achieved.. I wonder if RCU machinery
could help - doesn't it keep track of when threads schedule ... or something?
NeilBrown
next prev parent reply other threads:[~2011-07-22 22:59 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-21 18:07 Nanosecond fs timestamp support: sad Matt Mackall
2011-07-22 6:01 ` Andi Kleen
2011-07-22 6:33 ` NeilBrown
2011-07-22 19:34 ` Matt Mackall
2011-07-22 20:59 ` Andi Kleen
2011-07-22 21:11 ` Matt Mackall
2011-07-22 21:47 ` Andi Kleen
2011-07-22 22:10 ` J. Bruce Fields
2011-07-22 22:31 ` J. Bruce Fields
2011-07-22 22:59 ` NeilBrown [this message]
2011-07-22 23:06 ` J. Bruce Fields
2011-07-22 23:49 ` J. Bruce Fields
2011-07-23 0:07 ` NeilBrown
2011-07-23 0:07 ` Matt Mackall
2011-07-23 1:38 ` J. Bruce Fields
2011-07-23 2:10 ` Trond Myklebust
2011-07-24 1:56 ` Andi Kleen
2011-07-29 19:49 ` Pavel Machek
2011-07-29 21:37 ` Matt Mackall
2011-07-23 1:13 ` Andreas Dilger
2011-07-25 15:09 ` Paul E. McKenney
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=20110723085915.308ddc02@notabene.brown \
--to=neilb@suse.de \
--cc=andi@firstfloor.org \
--cc=bfields@fieldses.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mpm@selenic.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).