[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTin35TXPcs9u3pLfo8QRUmGnftT1DPfswRUVEvJW@mail.gmail.com>
Date: Mon, 13 Sep 2010 17:20:12 +0200
From: Stephane Eranian <eranian@...gle.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Frederic Weisbecker <fweisbec@...il.com>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
linux-kernel@...r.kernel.org, mingo@...e.hu, paulus@...ba.org,
davem@...emloft.net, perfmon2-devel@...ts.sf.net,
eranian@...il.com, robert.richter@....com,
markus.t.metzger@...el.com
Subject: Re: [PATCH] perf_events: improve DS/BTS/PEBS buffer allocation
On Mon, Sep 13, 2010 at 5:16 PM, Peter Zijlstra <peterz@...radead.org> wrote:
> On Mon, 2010-09-13 at 17:13 +0200, Stephane Eranian wrote:
>> > For now I think you can not do this. vmalloc'ed memory can't be safely
>> > accessed from NMIs in x86 because that might fault. And faults from NMIs
>> > are not supported. They cause very bad things: return from fault calls
>> > iret which reenables NMI, so NMI can nest but in the meantime there is
>> > only one NMI stack, so that gets quickly messed up.
>> >
>> What kind of faults are you talking about here? TLB faults?
>
> Page faults. vmalloc pte setup is lazy.
>
Is there a way to not do lazy?
I guess we could do alloc_pages_nodes() if we make sure the
buffer size can be expressed as a page order and not just a page size,
or we are willing to waste memory.
That is the case we the sizes you have chosen today. For DS, we
could round up to one page for now.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists