Re: Mercurial 0.3 vs git benchmarks

Linus Torvalds
2005-04-27T21:37:45Z

On Wed, 27 Apr 2005, Bill Davidsen wrote:
>
> I said much the same in another post, but noatime is not always what I
> really want.

"atime" is really nasty for a filesystem. I don't know if anybody noticed,
but git already uses O_NOATIME to open all the object files, because if
you don't do that, then just looking at a full kernel tree (which has more
than a thousand subdirectories) will cause nasty IO patterns from just
writing back "atime" information for the "tree" objects we looked up.

So you can do (and git does) selective atime updates. It just requires a
small amount of extra care.

> How about a "nojournalatime" option, so the atime would be
> updated at open and close, but not journaled at any other time.

Probably a good idea.

Linus