Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1306743
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC][PATCH 02/12] perf: Fix cgroup event scheduling |
| Date | 2016-01-11 23:10 +0100 |
| Message-ID | <qPSOZ-7w-1@gated-at.bofh.it> (permalink) |
| References | <qPNFD-4Vc-3@gated-at.bofh.it> <qPNFD-4Vc-1@gated-at.bofh.it> <qPQDw-6Sz-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Jan 11, 2016 at 11:43:40AM -0800, Stephane Eranian wrote: > Peter, > > On Mon, Jan 11, 2016 at 8:25 AM, Peter Zijlstra <peterz@infradead.org> wrote: > > There appears to be a problemin __perf_event_task_sched_in() wrt > > cgroup event scheduling. > > > > The normal event scheduling order is: > > > > CPU pinned > > Task pinned > > CPU flexible > > Task flexible > > > > And since perf_cgroup_sched*() only schedules the cpu context, we must > > call this _before_ adding the task events. > > > I understand this but I am trying to understand why cgroup system-wide event > would be treated differently from regular system-wide events w.r.t. task events > here. This patch is about making cgroup events behave similarly to regular system-wide events. > If I do a cgroup flexible and a task pinned, what happens? Look at perf_event_context_sched_in(), it will first remove the cpu-flexible and then install everything: cpu-pinned (skipped, because that would still be present) task-pinned (new) cpu-flexible (re-issue, possibly truncated due to the new pinned events) task-flexible (new)
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[RFC][PATCH 02/12] perf: Fix cgroup event scheduling Peter Zijlstra <peterz@infradead.org> - 2016-01-11 17:40 +0100
Re: [RFC][PATCH 02/12] perf: Fix cgroup event scheduling Stephane Eranian <eranian@google.com> - 2016-01-11 20:50 +0100
Re: [RFC][PATCH 02/12] perf: Fix cgroup event scheduling Peter Zijlstra <peterz@infradead.org> - 2016-01-11 23:10 +0100
csiph-web