• Dirk Müller's avatar
    lib/raid6: skip benchmark of non-chosen xor_syndrome functions · 38640c48
    Dirk Müller authored
    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>
    38640c48
algos.c 6.17 KB