Re: [PATCH] perf_events: improve DS/BTS/PEBS buffer allocation

From: H. Peter Anvin
Date: Mon Sep 13 2010 - 16:35:35 EST


On 09/13/2010 12:35 PM, Andi Kleen wrote:
>
> DS supports page tables, but I have some doubts it really
> supports page faults. vmalloc today does page faults.
>

It specifically does not (SDM III 16.4.9.2). In fact, it requires that
the pages be mapped Accessed and Dirty so the hardware doesn't have to
stop and set those bits.

The options thus are vmalloc_sync_all(), which will make Linus unhappy
(since he seems to want to get rid of the thing), or doing fixmap-style
reserved address space which is always consistent because the PDEs are
preallocated and frozen.

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