[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190702065955.165738-1-irogers@google.com>
Date: Mon, 1 Jul 2019 23:59:48 -0700
From: Ian Rogers <irogers@...gle.com>
To: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung@...nel.org>,
linux-kernel@...r.kernel.org
Cc: Kan Liang <kan.liang@...ux.intel.com>,
Stephane Eranian <eranian@...gle.com>,
Ian Rogers <irogers@...gle.com>
Subject: [PATCH 0/7] Optimize cgroup context switch
Organize per-CPU perf event groups by cgroup then by group/insertion index.
To support cgroup hierarchies, a set of iterators is needed in
visit_groups_merge. To make this unbounded, use a per-CPU allocated
buffer. To make the set of iterators fast, use a min-heap ordered by
the group index.
These patches include a caching algorithm that avoids a search for the
first event in a group by Kan Liang <kan.liang@...ux.intel.com> and the
set of patches as a whole have benefitted from conversation with him.
Ian Rogers (7):
perf: propagate perf_install_in_context errors up
perf/cgroup: order events in RB tree by cgroup id
perf: order iterators for visit_groups_merge into a min-heap
perf: avoid a bounded set of visit_groups_merge iterators
perf: cache perf_event_groups_first for cgroups
perf: avoid double checking CPU and cgroup
perf: rename visit_groups_merge to ctx_groups_sched_in
include/linux/perf_event.h | 8 +
kernel/events/core.c | 511 +++++++++++++++++++++++++++++--------
2 files changed, 414 insertions(+), 105 deletions(-)
--
2.22.0.410.gd8fdbe21b5-goog
Powered by blists - more mailing lists