Junio C Hamano <junkio@xxxxxxx> wrote: > I doubt it -- sliding mmap() in the current git, while is a good > change overall for handling really huge repos, would most likely > perform poorer than the fixed mmap() in 1.4.4 series on > platforms with slow mmap(), most notably on MacOS X. > > It _might_ be possible that turning some sliding mmap() calls > into pread() makes it perform better on MacOS X. > > I wonder what happens it git is compiled with NO_MMAP there... So I ran three trials, v1.5.0-rc4-26-gcc46a74 with and without NO_MMAP against v1.4.4.4 on a freshly repacked git.git. v150-mmap: 3.33 real 3.12 user 0.05 sys 3.32 real 3.12 user 0.05 sys 3.34 real 3.12 user 0.05 sys v150-nommap: 3.46 real 3.13 user 0.16 sys 3.43 real 3.13 user 0.16 sys 3.46 real 3.13 user 0.16 sys v1444-mmap: 3.30 real 3.09 user 0.05 sys 3.30 real 3.09 user 0.05 sys 3.25 real 3.09 user 0.04 sys CFLAGS="-O2"; the above timings are three representative samples out of 10 runs each, all hot cache. Clearly the sliding mmap window isn't hurting us in this case by very much, and NO_MMAP really isn't helping matters at all. -- Shawn. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html