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

2017-01-22 Thread Alexei Starovoitov
On Sat, Jan 21, 2017 at 05:26:13PM +0100, Daniel Mack wrote: > From: David Herrmann > > 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 In

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

2017-01-21 Thread Daniel Mack
From: David Herrmann 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 t