Thread (20 messages) 20 messages, 6 authors, 2021-02-23

Re: [PATCH v4 bpf-next 6/6] bpf: runqslower: use task local storage

flat view

From: Martin KaFai Lau <hidden>
Date: 2021-02-23 21:35:10
Also in: bpf, lkml

On Mon, Feb 22, 2021 at 05:20:14PM -0800, Song Liu wrote:
Replace hashtab with task local storage in runqslower. This improves the
performance of these BPF programs. The following table summarizes average
runtime of these programs, in nanoseconds:

                          task-local   hash-prealloc   hash-no-prealloc
handle__sched_wakeup             125             340               3124
handle__sched_wakeup_new        2812            1510               2998
handle__sched_switch             151             208                991
Nice!  The required code change is also minimal.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help