Linux NFS development
 help / color / mirror / Atom feed
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Tavis Barr <tb62@columbia.edu>,  nfs@lists.sourceforge.net
Subject: Re: [Fwd: Re: NFS-HOWTO]
Date: 19 Mar 2002 20:20:32 +0100	[thread overview]
Message-ID: <shsit7smkjj.fsf@charged.uio.no> (raw)
In-Reply-To: <shsn0x4mm2h.fsf@charged.uio.no>

>>>>> " " == Trond Myklebust <trond.myklebust@fys.uio.no> writes:

    >> Is it the inode number, or some field within the inode?  *This
    >> was supposedly a 2.5 fix item; the issue is that mtime does not
    >> have a granularity finer than one second.  What subsystem does
    >> the fix go into?  The VFS layer?  Has there been any work done
    >> on it?

     > Neil was talking about fixing this in 2.5.x (it is after all a
     > server issue). The problem is that several filesystems
     > (i.e. most notably ext2/ext3) don't have the space in their
     > on-disk inodes for <1s time resolution.  There are some ideas
     > floating around on how to get around this, but I do not believe
     > that concensus has yet been achieved...

Perhaps I should expand a little on this. The changes are twofold:

   - Change the VFS structures to support 64-bit (a|c|m)time values.
     This is not really a big deal, and nothing is stopping us from
     doing it today...

   - Changes to the individual filesystems so that they can save and
     retrieve the extra 96 bits (== 32 bits * (mtime + atime + ctime))
     as part of the on-disk metadata.
     This is non-trivial, since a lot of these filesystems have not
     got much padding left in their inodes (particularly once acls
     etc. have grabbed their share of real-estate). Even finding 32
     free bits is a real problem for ext[23]...

One solution might be to only keep the full 64-bit data in the VFS
inode cache, and to zero the low 32-bits whenever we have to reload
the metadata from the disk.
That means that each time the file falls out of cache, then the mtime
would appear to change on the client (which might then proceed to
invalidate its data cache). Not entirely satisfactory, but probably
better than nothing...

Cheers,
  Trond

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2002-03-19 19:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-19 18:18 [Fwd: Re: NFS-HOWTO] Tavis Barr
2002-03-19 18:47 ` Trond Myklebust
2002-03-19 19:20   ` Trond Myklebust [this message]
2002-03-19 23:06     ` Ragnar Kjørstad

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=shsit7smkjj.fsf@charged.uio.no \
    --to=trond.myklebust@fys.uio.no \
    --cc=nfs@lists.sourceforge.net \
    --cc=tb62@columbia.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