Linus Torvalds <torvalds@xxxxxxxx> writes: > It does actually end up forcing the kernel to do more work (it's harder to > re-use a mapped page than it is to reuse one that isn't), and in that > sense, if you have less than <n> GB of RAM and can't just keep it all in > memory at the same time, doing one large mmap is possibly more expensive > than chunking things up. Even if it is a read-only private mapping? Would MAP_SHARED help? - 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