Re: x86, ARM, PARISC, PPC, MIPS and Sparc folks please run this

From: Jamie Lokier
Date: Wed Sep 03 2003 - 02:42:46 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/