Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 38640c48 authored by Dirk Müller's avatar Dirk Müller Committed by Song Liu
Browse files

lib/raid6: skip benchmark of non-chosen xor_syndrome functions

In commit fe5cbc6e

 ("md/raid6 algorithms: delta syndrome functions")
a xor_syndrome() benchmarking was added also to the raid6_choose_gen()
function. However, the results of that benchmarking were intentionally
discarded and did not influence the choice. It picked the
xor_syndrome() variant related to the best performing gen_syndrome().

Reduce runtime of raid6_choose_gen() without modifying its outcome by
only benchmarking the xor_syndrome() of the best gen_syndrome() variant.

For a HZ=250 x86_64 system with avx2 and without avx512 this removes
5 out of 6 xor() benchmarks, saving 340ms of raid6 initialization time.

Signed-off-by: default avatarDirk Müller <dmueller@suse.de>
Signed-off-by: default avatarSong Liu <song@kernel.org>
parent dd3dc5f4
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment