From: Pavel Machek <pavel@ucw.cz>
To: Jeff Shanab <jshanab@earthlink.net>
Cc: linux-kernel@vger.kernel.org, jack@suse.cz
Subject: Re: Starting a grad project that may change kernel VFS. Early research
Date: Tue, 25 Aug 2009 14:13:56 +0200 [thread overview]
Message-ID: <20090825121356.GF1341@ucw.cz> (raw)
In-Reply-To: <4A93284C.7060604@earthlink.net>
> 2) Second Question. The two part idea.
> I was thinking that a good way to handle this is that it starts with
> a file change in a directory. The directory entry contains a sum already
> for itself and all the subdirs and an adjustment is made immediately to
> that, it should be in the cache. Then we queue up the change to be sent
> to the parent(s?). These queued up events should be a low priority at a
> more human time like 1 second. If a large number of changes come to a
> directory, multiple adjustments hit the queue with the same (directory
> name, inode #?) and early ones are thrown out. So levels above would see
> at most a 1 per second low priority update.
>
> So when you issue a 'du -sh' or use anything that uses stat like
> filelight, it can get the size of all the subdirs without actually
> recursing through them, they have been built up over time.
I'd suggest you look at jack's recursive mtime idea, and then
implement your features on top of that, in userland.
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2009-08-25 12:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-24 23:54 Jeff Shanab
2009-08-25 0:59 ` Bryan Donlan
2009-08-25 1:26 ` Theodore Tso
2009-08-25 12:13 ` Pavel Machek [this message]
2009-08-25 2:05 Jeff Shanab
2009-08-25 3:18 ` Bryan Donlan
2009-08-25 4:23 ` Jeff Shanab
2009-08-25 14:37 ` Bryan Donlan
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=20090825121356.GF1341@ucw.cz \
--to=pavel@ucw.cz \
--cc=jack@suse.cz \
--cc=jshanab@earthlink.net \
--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
all inboxes | Powered by JetHome®