Messages in this thread | | | Date | Wed, 3 Sep 2003 08:41:34 +0100 | From | Jamie Lokier <> | Subject | Re: x86, ARM, PARISC, PPC, MIPS and Sparc folks please run this |
| |
Russell King wrote: > > > Multiple mappings of the same object rarely occur in my experience, so > > > the resulting performance loss caused by working around the cache and > > > writebuffer is something we can live with. > > > > Multiple *writable* mappings. Don't forget about libc et al. > > I mean in the same group of threads with the same struct mm, not the whole > system.
Larry means that it's perfectly normal for libc to map the same file more than once: you have the code section and the data section.
I don't know if ARM's ELF is like the x86, but on the x86 the final partial page of code or read-only data will be mapped twice, as the latter part of the page can contain writable data. This avoids wasting up to a page's worth of bytes in the ELF file.
-- Jamie
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |