[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131119134508.GN3866@twins.programming.kicks-ass.net>
Date: Tue, 19 Nov 2013 14:45:08 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Ingo Molnar <mingo@...nel.org>
Cc: David Ahern <dsahern@...il.com>,
Namhyung Kim <namhyung@...nel.org>,
Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
linux-kernel@...r.kernel.org, jolsa@...hat.com,
Frederic Weisbecker <fweisbec@...il.com>,
Mike Galbraith <efault@....de>,
Stephane Eranian <eranian@...gle.com>
Subject: Re: [PATCH 4/5] perf record: mmap output file - v5
On Tue, Nov 19, 2013 at 02:13:04PM +0100, Ingo Molnar wrote:
>
> * Peter Zijlstra <peterz@...radead.org> wrote:
>
> > On Tue, Nov 19, 2013 at 12:48:10PM +0100, Peter Zijlstra wrote:
> > > And that does indeed seem to side-step the perf sw pagefault event, but
> > > that is arguably a perf bug.
> >
> > To clarify; mm/memory.c:handle_mm_fault() is where the VM counts its
> > generic PGFAULT event, but our perf sw event is in the arch fault
> > handler.
> >
> > So they count different but related things.
>
> I think that assymetry was intended: we didn't want to count
> 'synchronous' pagefaults like get_user_pages() or mlock() bringing in
> pages, only asynchronous/real ones, or so.
OK, I couldn't remember.
Anyway, I don't want to hold up this patch set, and the speedup in the
'normal' case is nice.
The only reason I reacted was because the changelog mentioned avoiding a
feedback loop -- so I obviously had to point out that it didn't do such
a thing, it only changed the details of the loop.
I'm fairly certain this particular problem is unavoidable, no matter
what the mechanism used, you can always create feedback.
At some point people will just have to know wtf they're doing. Also, I
don't think anything really bad happens, at worst we'll just drop a
bunch of events because the output cannot keep up for obvious reasons.
--
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