From: Jan Kara <jack@suse.cz>
To: Alexander Larsson <alexl@redhat.com>
Cc: eparis@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: Issues with using fanotify for a filesystem indexer
Date: Fri, 3 Apr 2009 11:33:16 +0200 [thread overview]
Message-ID: <20090403093316.GA18569@duck.suse.cz> (raw)
In-Reply-To: <1238741043.31635.2.camel@fatty>
On Fri 03-04-09 08:44:03, Alexander Larsson wrote:
> On Thu, 2009-04-02 at 21:52 +0200, Jan Kara wrote:
> > On Thu 02-04-09 19:15:37, Alexander Larsson wrote:
> > > Ah, I see. The indexer sets the flag.
> > > I see some issues. First of all, writing the flag/mtime to disk seems
> > > like a bad idea. It'll cause a lot of writing when the indexer recurses
> > > throught the filesystem, similar to atimes. But, if you're not
> >
> > There's some cost but it's not nearly as bad as with atimes.
> True, its not as bad as atimes. But it still does some writes, and
> writes seem to affect i/o performance more than low prio reads from the
> indexer. I'm very wary about the background indexer process disturbing
> the foreground processes. This is one of the main problems with current
> indexers.
I agree - that's why I have beagle turned off on my system ;)
> > > persisting the flag/mtime then you need to keep all the dentries with
> > > the flag set in memory, which has resource use risks similar to
> > > unbounded event queues.
> > Ah, true - I have implemented just the persistent case and have not
> > thought too much about the non-persistent one. You're right that it won't
> > work because we'd pin memory.
>
> So, where do you persist the flag/time? Is there some availible space in
> the inode for it on ext3/4?
Yes, there's enough space in ext3/ext4 inode. I've already talked about
it with Ted and other fs developers at Plumbers Conf. and they weren't
opposed to such change.
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
prev parent reply other threads:[~2009-04-03 9:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-27 12:47 Issues with using fanotify for a filesystem indexer Alexander Larsson
2009-03-27 13:02 ` Al Viro
2009-03-27 13:47 ` Alexander Larsson
2009-03-28 20:38 ` Alexander Larsson
2009-04-02 14:54 ` Jan Kara
2009-04-02 16:29 ` Alexander Larsson
2009-04-02 16:50 ` Jan Kara
2009-04-02 17:15 ` Alexander Larsson
2009-04-02 19:52 ` Jan Kara
2009-04-03 6:44 ` Alexander Larsson
2009-04-03 9:33 ` Jan Kara [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=20090403093316.GA18569@duck.suse.cz \
--to=jack@suse.cz \
--cc=alexl@redhat.com \
--cc=eparis@redhat.com \
--cc=linux-kernel@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