Optimize cgroup context switch
Status from this message: The following commit has been merged into the perf/core branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest6 patches 7 repliesApplied
- v510 patches 0 repliesSuperseded
- v410 patches 1 replySuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 10 patches | 26 replies | Superseded | |
| v2 | 7 patches | 1 reply | Applied | |
| v1 | 7 patches | 11 replies | Superseded |
Patches in v6 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | perf/cgroup: Reorder perf_cgroup_connect()kernel/ | +8 | 2 replies | |
| 2/6 | lib: introduce generic min-heapinclude/ lib/ lib/ +1 more | +340 | 2 replies | |
| 3/6 | perf: Use min_heap in visit_groups_mergekernel/ | +54 | 1 reply | |
| 4/6 | perf: Add per perf_cpu_context min_heap storageinclude/ kernel/ | +44 | 0 replies | |
| 5/6 | perf/cgroup: Grow per perf_cpu_context heap storagekernel/ | +47 | 0 replies | |
| 6/6 | perf/cgroup: Order events in RB tree by cgroup idkernel/ | +87 | 0 replies |
Reviews trailers per patch
None of the 6 patches has a Reviewed-by or Acked-by.
| Patch | Peter Zijlstra (Intel) |
|---|---|
| 1/6 | |
| 2/6 | Based-on-work-by |
| 3/6 | Based-on-work-by |
| 4/6 | Based-on-work-by |
| 5/6 | Based-on-work-by |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v6 0/6] Optimize cgroup context switch
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.
The v6 patch reduces the patch set by 4 patches, it updates the cgroup id and fixes part of the min_heap rename from v5.
The v5 patch set renames min_max_heap to min_heap as suggested by Peter Zijlstra, it also addresses comments around preferring __always_inline over inline.
The v4 patch set addresses review comments on the v3 patch set by Peter Zijlstra.
These patches include a caching algorithm to improve the search for the first event in a group by Kan Liang <[email protected]> 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 (5):
lib: introduce generic min-heap
perf: Use min_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
Peter Zijlstra (1):
perf/cgroup: Reorder perf_cgroup_connect()
include/linux/min_heap.h | 135 ++++++++++++++++++++ include/linux/perf_event.h | 7 ++ kernel/events/core.c | 251 +++++++++++++++++++++++++++++++------ lib/Kconfig.debug | 10 ++ lib/Makefile | 1 + lib/test_min_heap.c | 194 ++++++++++++++++++++++++++++ 6 files changed, 563 insertions(+), 35 deletions(-) create mode 100644 include/linux/min_heap.h create mode 100644 lib/test_min_heap.c
Signature · 1 line
2.25.0.265.gbab2e86ba0-goog