Skip to content

Objpool performance improvements

Andrii Nakryiko bpf linux-mm linux-trace-kernel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2objpool: enable inlining objpool_push() and objpool_pop() operationsinclude/linux/objpool.h lib/objpool.c+99 -1025 replies
2/2objpool: cache nr_possible_cpus() and avoid caching nr_cpu_idsinclude/linux/objpool.h lib/objpool.c+9 -91 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Objpool performance improvements

Improve objpool (used heavily in kretprobe hot path) performance with two improvements:
- inlining performance critical objpool_push()/objpool_pop() operations;
- avoiding re-calculating relatively expensive nr_possible_cpus().

These opportunities were found when benchmarking and profiling kprobes and kretprobes with BPF-based benchmarks. See individual patches for details and results.

Andrii Nakryiko (2):
objpool: enable inlining objpool_push() and objpool_pop() operations
objpool: cache nr_possible_cpus() and avoid caching nr_cpu_ids

 include/linux/objpool.h | 105 +++++++++++++++++++++++++++++++++++--
 lib/objpool.c           | 112 +++-------------------------------------
 2 files changed, 107 insertions(+), 110 deletions(-)
Signature · 1 line
2.43.0