[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201102141625.GX2594@hirez.programming.kicks-ass.net>
Date: Mon, 2 Nov 2020 15:16:25 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Andi Kleen <ak@...ux.intel.com>
Cc: Jiri Olsa <jolsa@...hat.com>, mingo@...nel.org, acme@...nel.org,
mark.rutland@....com, alexander.shishkin@...ux.intel.com,
namhyung@...nel.org, linux-kernel@...r.kernel.org,
eranian@...gle.com
Subject: Re: [PATCH v2 0/4] perf: Fix perf_event_attr::exclusive rotation
On Sun, Nov 01, 2020 at 07:52:38PM -0800, Andi Kleen wrote:
> The main motivation is actually that the "multiple groups" algorithm
> in perf doesn't work all that great: it has quite a few cases where it
> starves groups or makes the wrong decisions. That is because it is very
> difficult (likely NP complete) problem and the kernel takes a lot
> of short cuts to avoid spending too much time on it.
The event scheduling should be starvation free, except in the presence
of pinned events.
If you can show starvation without pinned events, it's a bug.
It will also always do equal or better than exclusive mode wrt PMU
utilization. Again, if it doesn't it's a bug.
Please provide concrete examples for these two cases, or stop spreading
FUD like this.
Powered by blists - more mailing lists