Re: Page Colouring (was: 2.6.0 Huge pages not working as expected)

From: Rusty Russell
Date: Mon Dec 29 2003 - 21:08:28 EST


On Mon, 29 Dec 2003 02:23:19 -0800
William Lee Irwin III <wli@xxxxxxxxxxxxxx> wrote:

> The fact merely elevating PAGE_SIZE breaks numerous things makes me
> rather suspicious of claims that minimalistic patches can do likewise.

Can you give an example?

One approach is to simply present a larger page size to userspace w/
getpagesize(). This does break ELF programs which have been laid out assuming
the old page size (presumably they try to mprotect the read-only sections).
On PPC, the ELF ABI already insists on a 64k boundary between such sections,
and maybe for others you could simply round appropriately and pray, or do
fine-grained protections (ie. on real pagesize) for that one case.

Rusty.
--
there are those who do and those who hang on and you don't see too
many doers quoting their contemporaries. -- Larry McVoy
-
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/