From: "Dirk Müller" <dmueller@suse.de>
To: Song Liu <song@kernel.org>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: [PATCH] Skip benchmarking of non-best xor_syndrome functions
Date: Mon, 03 Jan 2022 14:49:43 +0100 [thread overview]
Message-ID: <17479780.g37Zg15fLm@magnolia> (raw)
In-Reply-To: <CAPhsuW7N-_v7ivE6SXphgXiA4An0kruF+W25QrFhO15fkUZYfg@mail.gmail.com>
On Sonntag, 2. Januar 2022 00:49:17 CET Song Liu wrote:
> > For x86_64, this removes 8 out of 18 benchmark loops which each take
> > 16 jiffies, so up to 160 jiffies saved on module load (640ms on a 250HZ
> > kernel).
> How critical is 160 (or 128?) jiffies saving here?
For my usecase, this initialization codepath is just over 50% of the total
runtime of my initrd, so it is significant. this is small initrd for virtual
environments, using however the standard distribution kernel image (which has
benchmarking enabled per Kconfig recommendation).
> If it is critical for some use cases, maybe we can gate the change with a
> CONFIG?
I can't see how it is critical for usecases, because of
* the outcome of the benchmarking is discarded
* there is no configuration or commandline option to manually select a different
xor variant if you as a linux user chose to select a different one based on
manual review of the xor benchmarking results
* benchmarking is recommended to be enabled by default. if you disable it, it
will simply pick the first that works from the static list (which is basically
ordered by hardware features reverse, or by most likely best performance).
I'm happy to have that behind yet another config option if that makes the patch
upstreamable, just let me know and I'll send a new variant.
Greetings,
Dirk
next prev parent reply other threads:[~2022-01-03 13:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-29 22:34 [PATCH] Skip benchmarking of non-best xor_syndrome functions Dirk Müller
2021-12-30 11:33 ` Paul Menzel
2021-12-31 8:35 ` Dirk Müller
2021-12-31 8:53 ` Paul Menzel
2022-01-01 23:49 ` Song Liu
2022-01-03 13:49 ` Dirk Müller [this message]
2022-01-04 17:40 ` Song Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17479780.g37Zg15fLm@magnolia \
--to=dmueller@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=song@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox