[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAP-5=fUSYpy97VWLb4nLnkiZ-0D1uP4nnRLhLL3=E6gYWv2UZQ@mail.gmail.com>
Date: Wed, 13 Nov 2019 16:42:55 -0800
From: Ian Rogers <irogers@...gle.com>
To: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
Kees Cook <keescook@...omium.org>,
Catalin Marinas <catalin.marinas@....com>,
Petr Mladek <pmladek@...e.com>,
Mauro Carvalho Chehab <mchehab+samsung@...nel.org>,
Qian Cai <cai@....pw>, Joe Lawrence <joe.lawrence@...hat.com>,
Tetsuo Handa <penguin-kernel@...ove.sakura.ne.jp>,
"Uladzislau Rezki (Sony)" <urezki@...il.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Ard Biesheuvel <ardb@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Kent Overstreet <kent.overstreet@...il.com>,
Gary Hook <Gary.Hook@....com>, Arnd Bergmann <arnd@...db.de>,
Kan Liang <kan.liang@...ux.intel.com>,
LKML <linux-kernel@...r.kernel.org>
Cc: Stephane Eranian <eranian@...gle.com>,
Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH v3 00/10] Optimize cgroup context switch
Apologies, I missed the in-reply-to
<20190724223746.153620-1-irogers@...gle.com>.
Ian
On Wed, Nov 13, 2019 at 4:30 PM Ian Rogers <irogers@...gle.com> wrote:
>
> Avoid iterating over all per-CPU events during cgroup changing context
> switches by organizing events by cgroup.
>
> To make an efficient set of iterators, introduce a min max heap
> utility with test.
>
> These patches include a caching algorithm to improve the search for
> the first event in a group by Kan Liang <kan.liang@...ux.intel.com> as
> well as rebasing hit "optimize event_filter_match during sched_in"
> from https://lkml.org/lkml/2019/8/7/771.
>
> The v2 patch set was modified by Peter Zijlstra in his perf/cgroup
> branch:
> https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
>
> These patches follow Peter's reorganization and his fixes to the
> perf_cpu_context min_heap storage code.
>
> Ian Rogers (8):
> lib: introduce generic min max heap
> perf: Use min_max_heap in visit_groups_merge
> perf: Add per perf_cpu_context min_heap storage
> perf/cgroup: Grow per perf_cpu_context heap storage
> perf/cgroup: Order events in RB tree by cgroup id
> perf: simplify and rename visit_groups_merge
> perf: cache perf_event_groups_first for cgroups
> perf: optimize event_filter_match during sched_in
>
> Kan Liang (1):
> perf/cgroup: Do not switch system-wide events in cgroup switch
>
> Peter Zijlstra (1):
> perf/cgroup: Reorder perf_cgroup_connect()
>
> include/linux/min_max_heap.h | 134 +++++++++
> include/linux/perf_event.h | 14 +
> kernel/events/core.c | 512 ++++++++++++++++++++++++++++-------
> lib/Kconfig.debug | 10 +
> lib/Makefile | 1 +
> lib/test_min_max_heap.c | 194 +++++++++++++
> 6 files changed, 769 insertions(+), 96 deletions(-)
> create mode 100644 include/linux/min_max_heap.h
> create mode 100644 lib/test_min_max_heap.c
>
> --
> 2.24.0.432.g9d3f5f5b63-goog
>
Powered by blists - more mailing lists