All of lore.kernel.org
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Chuck Lever <chuck.lever@oracle.com>,
	Jon Smirl <jonsmirl@gmail.com>,
	linux-fsdevel@vger.kernel.org, Jan Kara <jack@suse.cz>
Subject: Re: Beagle and logging inotify events
Date: Wed, 14 Nov 2007 14:38:05 -0500	[thread overview]
Message-ID: <20071114193805.GN14254@fieldses.org> (raw)
In-Reply-To: <20071114193245.GE3966@webber.adilger.int>

On Wed, Nov 14, 2007 at 12:32:45PM -0700, Andreas Dilger wrote:
> On Nov 14, 2007  11:32 -0500, Chuck Lever wrote:
> > I disagree: we don't need a "bullet-proof" log.  We can get a significant 
> > performance improvement even with a permanent dnotify log implemented in 
> > user-space.  We already have well-defined fallback behavior if such a log 
> > is missing or incomplete.
> >
> > The problem with a permanent inotify log is that it can become unmanageably 
> > enormous, and a performance problem to boot.  Recording at that level of 
> > detail makes it more likely that the logger won't be able to keep up with 
> > file system activity.
> >
> > A lightweight solution gets us most of the way there, is simple to 
> > implement, and doesn't introduce many new issues.  As long as it can tell 
> > us precisely where the holes are, it shouldn't be a problem.
> 
> Jan Kara is working on a patch for ext4 which would store a recursive
> timestamp for each directory that gives the latest time that a file in
> that directory was modified.  ZFS has a similar mechanism by virtue of
> doing full-tree updates during COW of all the metadata blocks and storing
> the most recent transaction number in each block.  I suspect btrfs could
> do the same thing easily.
> 
> That would allow recursive-descent filesystem traversal to be much more
> efficient because whole chunks of the filesystem tree can be ignored during
> scans.

The problem is that people may not be happy with the random behavior of
hardlinks, right?

--b.

  reply	other threads:[~2007-11-14 19:38 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-14  0:04 Beagle and logging inotify events Jon Smirl
2007-11-14 13:29 ` Chuck Lever
2007-11-14 13:44   ` Jon Smirl
2007-11-14 14:41     ` Chuck Lever
2007-11-14 15:01       ` Jon Smirl
2007-11-14 16:32         ` Chuck Lever
2007-11-14 17:46           ` Jon Smirl
2007-11-14 19:32           ` Andreas Dilger
2007-11-14 19:38             ` J. Bruce Fields [this message]
2007-11-15 19:59               ` Jan Kara
2007-11-15 20:14                 ` J. Bruce Fields
2007-11-15 20:14                 ` Jon Smirl
2007-11-14 15:30     ` Andi Kleen
2007-11-14 19:09       ` J. Bruce Fields
2007-11-14 19:22         ` Jon Smirl
2007-11-14 19:30           ` J. Bruce Fields

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=20071114193805.GN14254@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=chuck.lever@oracle.com \
    --cc=jack@suse.cz \
    --cc=jonsmirl@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.