[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170122230205.GD73160@ast-mbp.thefacebook.com>
Date: Sun, 22 Jan 2017 15:02:06 -0800
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Daniel Mack <daniel@...que.org>
Cc: ast@...com, dh.herrmann@...il.com, daniel@...earbox.net,
netdev@...r.kernel.org, davem@...emloft.net
Subject: Re: [PATCH v4 3/3] samples/bpf: add lpm-trie benchmark
On Sat, Jan 21, 2017 at 05:26:13PM +0100, Daniel Mack wrote:
> From: David Herrmann <dh.herrmann@...il.com>
>
> 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 <dh.herrmann@...il.com>
> Reviewed-by: Daniel Mack <daniel@...que.org>
Acked-by: Alexei Starovoitov <ast@...nel.org>
Thank you for all the hard work you've put into these patches.
All looks great to me.
Powered by blists - more mailing lists