Thread (10 messages) 10 messages, 4 authors, 2017-01-23

Re: [PATCH v4 3/3] samples/bpf: add lpm-trie benchmark

From: Alexei Starovoitov <hidden>
Date: 2017-01-22 23:02:11

On Sat, Jan 21, 2017 at 05:26:13PM +0100, Daniel Mack wrote:
From: David Herrmann <redacted>

Extend the map_perf_test_{user,kern}.c infrastructure to stress test
lpm-trie lookups. We hook into the kprobe on sys_gettid() and measure
the latency depending on trie size and lookup count.

On my Intel Haswell i7-6400U, a single gettid() syscall with an empty
bpf program takes roughly 6.5us on my system. Lookups in empty tries
take ~1.8us on first try, ~0.9us on retries. Lookups in tries with 8192
entries take ~7.1us (on the first _and_ any subsequent try).

Signed-off-by: David Herrmann <redacted>
Reviewed-by: Daniel Mack <daniel@zonque.org>
Acked-by: Alexei Starovoitov <ast@kernel.org>

Thank you for all the hard work you've put into these patches.
All looks great to me.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help