Re: [PATCH/RFC] Shared page tables

From: Dave McCracken
Date: Mon Jan 23 2006 - 20:24:36 EST



--On Tuesday, January 24, 2006 02:11:58 +0100 Andi Kleen <ak@xxxxxxx> wrote:

> Really? That sounds like a quite bad idea because it can easily break
> if something changes in the way virtual memory is laid out (which
> has happened - e.g. movement to 4level page tables on x86-64 and now
> randomized mmaps)
>
> I don't think we should encourage such unportable behaviour.

I haven't looked into how they do it. It could be as simple as mapping the
memory region, then forking all the processes that use it. Or they could
be communicating the mapped address to the other processes dynamically via
some other mechanism. All I know is the memory ends up being mapped at the
same address in all processes.

Or are you saying using the same address is a bad thing even if it's
determined at runtime?

Dave McCracken

-
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/