Re: [RFC] [PATCH] Relative lazy atime
From: Josef Sipek
Date: Thu Aug 03 2006 - 02:43:07 EST
On Wed, Aug 02, 2006 at 11:29:45PM -0700, Valerie Henson wrote:
> My friend Akkana followed my advice to use noatime on one of her
> machines, but discovered that mutt was unusable because it always
> thought that new messages had arrived since the last time it had
> checked a folder (mbox format). I thought this was a bummer, so I
> wrote a "relative lazy atime" patch which only updates the atime if
> the old atime was less than the ctime or mtime. This is not the same
> as the lazy atime patch of yore, which maintained a list of inodes
> with dirty atimes and wrote them out on unmount.
This also happens to be useful for file systems such as Unionfs and (from
what I hear) ocfs2 where atime updates can be costly at times.
> Patch below. Current version (plus test program) is at:
Looks fine IMHO.
Josef "Jeff" Sipek.
I'm somewhere between geek and normal.
- Linus Torvalds
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/