Re: RFT: updatedb "morning after" problem [was: Re: -mm merge plans for 2.6.23]

From: Al Viro
Date: Thu Jul 26 2007 - 06:21:01 EST


On Thu, Jul 26, 2007 at 11:40:24AM +0200, Ingo Molnar wrote:
> below is an updatedb hack that sets vfs_cache_pressure down to 0 during
> an updatedb run. Could someone who is affected by the 'morning after'
> problem give it a try? If this works then we can think about any other
> measures ...

BTW, I really wonder how much pain could be avoided if updatedb recorded
mtime of directories and checked it. I.e. instead of just doing blind
find(1), walk the stored directory tree comparing timestamps with those
in filesystem. If directory mtime has not changed, don't bother rereading
it and just go for (stored) subdirectories. If it has changed - reread the
sucker. If we have a match for stored subdirectory of changed directory,
check inumber; if it doesn't match, consider the entire subtree as new
one. AFAICS, that could eliminate quite a bit of IO...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/