Re: [patch] do_no_pfn

From: Jes Sorensen
Date: Tue Jun 20 2006 - 04:40:06 EST


Andi Kleen wrote:
> On Tuesday 20 June 2006 10:01, Jes Sorensen wrote:
>> We could fake the pages by giving them a struct page, but it really
>> makes no point as you say.
>
> I think it would be better if you gave them struct pages instead
> of messing up core vm with such strange hooks.
>
> Or alternatively code this in a different way. There are drivers
> who map IO memory into user space without needing hacks like that.
> Usually they just tweak the page tables directly on mmap.

Please go back and read the old threads on this for all the details,
I would miss half the points if I was to try and restate it all from
memory.

Doing this at mmap time does not work, you want NUMA node locality.
It has to be done through first touch mappings.

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