From: Josh Poimboeuf <jpoimboe@kernel.org>
To: kernel test robot <yujie.liu@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
oe-lkp@lists.linux.dev, lkp@intel.com,
linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
Daniel Sneddon <daniel.sneddon@linux.intel.com>,
ying.huang@intel.com, feng.tang@intel.com, fengwei.yin@intel.com
Subject: Re: [linus:master] [x86/syscall] 1e3ad78334: will-it-scale.per_process_ops 1.4% improvement
Date: Fri, 19 Apr 2024 00:33:46 -0700 [thread overview]
Message-ID: <20240419073346.xlpx4qaocbo6bhip@treble> (raw)
In-Reply-To: <202404191333.178a0eed-yujie.liu@intel.com>
On Fri, Apr 19, 2024 at 01:49:26PM +0800, kernel test robot wrote:
> Hi Linus,
>
> We noticed that commit 1e3ad78334a6 caused performance fluctuations in
> various micro benchmarks. The perf stat metrics related with branch
> instructions do have noticeable changes, which may be an expected
> result of this commit. We are sending this report to provide these data
> and hope it can be helpful for the awareness of overall impact or any
> further investigation. Thanks.
>
> kernel test robot noticed a 1.4% improvement of will-it-scale.per_process_ops on:
>
> commit: 1e3ad78334a69b36e107232e337f9d693dcc9df2 ("x86/syscall: Don't force use of indirect calls for system calls")
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
Thanks, these are significant regressions.
Since this is on Skylake (with IBRS enabled, presumably) I'd expect that
these regressions are fixed by my "Only harden syscalls when needed"
patch. I'm planning on posting a new version of that tomorrow, but v3
[*] should be good enough to fix it. Could you run these tests on the
same Skylake system with my patch added?
Also it would be helpful to see the same tests on Cascade/Ice Lake, or
some other system for which the 'spectre_v2' sysfs vulnerabilities file
shows "BHI: SW loop". On such a system it shouldn't matter whether my
patch is added as it won't disable Linus' syscall change. But it would
be very helpful to see the performance impact of that combination.
[*] https://lkml.kernel.org/lkml/eda0ec65f4612cc66875aaf76e738643f41fbc01.1713296762.git.jpoimboe@kernel.org
--
Josh
next prev parent reply other threads:[~2024-04-19 7:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-19 5:49 kernel test robot
2024-04-19 7:33 ` Josh Poimboeuf [this message]
2024-04-22 7:41 ` Yujie 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=20240419073346.xlpx4qaocbo6bhip@treble \
--to=jpoimboe@kernel.org \
--cc=daniel.sneddon@linux.intel.com \
--cc=feng.tang@intel.com \
--cc=fengwei.yin@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=oe-lkp@lists.linux.dev \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
--cc=ying.huang@intel.com \
--cc=yujie.liu@intel.com \
/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
all inboxes | Powered by JetHome®