* [PATCH] x86/speculation: Revert turning on STIBP all the time
@ 2018-11-21 20:00 Tim Chen
2018-11-21 20:51 ` Jiri Kosina
0 siblings, 1 reply; 4+ messages in thread
From: Tim Chen @ 2018-11-21 20:00 UTC (permalink / raw)
To: Jiri Kosina, Thomas Gleixner
Cc: Tim Chen, Linus Torvalds, Tom Lendacky, Ingo Molnar,
Peter Zijlstra, Josh Poimboeuf, Andrea Arcangeli, David Woodhouse,
Andi Kleen, Dave Hansen, Casey Schaufler, Asit Mallick,
Arjan van de Ven, Jon Masters, Waiman Long, Greg KH, Dave Stewart,
linux-kernel, x86, stable
Commit 53c613fe "x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation"
turns on STIBP all the time.
This causes large performance regression in many workloads.
One case is perlbench in the SpecInt Rate 2006 test suite which shows a
21% reduction in throughput.
There're also other reports of drop in performance on Python and PHP benchmarks:
https://www.phoronix.com/scan.php?page=article&item=linux-420-bisect&num=2
STIBP on all the time should not be the default option.
Turn off STIBP all the time for now till STIBP can be applied on
a per task basis.
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
---
arch/x86/kernel/cpu/bugs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c
index c37e66e..21a8f39 100644
--- a/arch/x86/kernel/cpu/bugs.c
+++ b/arch/x86/kernel/cpu/bugs.c
@@ -332,7 +332,7 @@ static bool stibp_needed(void)
if (!boot_cpu_has(X86_FEATURE_STIBP))
return false;
- return true;
+ return false;
}
static void update_stibp_msr(void *info)
--
2.9.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] x86/speculation: Revert turning on STIBP all the time
2018-11-21 20:00 [PATCH] x86/speculation: Revert turning on STIBP all the time Tim Chen
@ 2018-11-21 20:51 ` Jiri Kosina
2018-11-21 21:02 ` Linus Torvalds
2018-11-22 6:58 ` Greg KH
0 siblings, 2 replies; 4+ messages in thread
From: Jiri Kosina @ 2018-11-21 20:51 UTC (permalink / raw)
To: Tim Chen
Cc: Thomas Gleixner, Linus Torvalds, Tom Lendacky, Ingo Molnar,
Peter Zijlstra, Josh Poimboeuf, Andrea Arcangeli, David Woodhouse,
Andi Kleen, Dave Hansen, Casey Schaufler, Asit Mallick,
Arjan van de Ven, Jon Masters, Waiman Long, Greg KH, Dave Stewart,
linux-kernel, x86, stable
On Wed, 21 Nov 2018, Tim Chen wrote:
> Commit 53c613fe "x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation"
> turns on STIBP all the time.
>
> This causes large performance regression in many workloads.
>
> One case is perlbench in the SpecInt Rate 2006 test suite which shows a
> 21% reduction in throughput.
> There're also other reports of drop in performance on Python and PHP benchmarks:
> https://www.phoronix.com/scan.php?page=article&item=linux-420-bisect&num=2
>
> STIBP on all the time should not be the default option.
>
> Turn off STIBP all the time for now till STIBP can be applied on
> a per task basis.
>
> Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
> ---
> arch/x86/kernel/cpu/bugs.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c
> index c37e66e..21a8f39 100644
> --- a/arch/x86/kernel/cpu/bugs.c
> +++ b/arch/x86/kernel/cpu/bugs.c
> @@ -332,7 +332,7 @@ static bool stibp_needed(void)
> if (!boot_cpu_has(X86_FEATURE_STIBP))
> return false;
>
> - return true;
> + return false;
> }
For -stable, which actually makes it to production, I already asked Greg
to drop it.
For -rc, I don't think we need to do this at this moment, given the
prctl+seccomp fixup is basically ready, do we?
Thanks,
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] x86/speculation: Revert turning on STIBP all the time
2018-11-21 20:51 ` Jiri Kosina
@ 2018-11-21 21:02 ` Linus Torvalds
2018-11-22 6:58 ` Greg KH
1 sibling, 0 replies; 4+ messages in thread
From: Linus Torvalds @ 2018-11-21 21:02 UTC (permalink / raw)
To: Jiri Kosina
Cc: Tim Chen, Thomas Gleixner, thomas.lendacky, Ingo Molnar,
Peter Zijlstra, Josh Poimboeuf, Andrea Arcangeli, David Woodhouse,
Andi Kleen, dave.hansen, Casey Schaufler, Mallick, Asit K,
Van De Ven, Arjan, jcm, longman9394, Greg KH, david.c.stewart,
Linux List Kernel Mailing, the arch/x86 maintainers, stable
On Wed, Nov 21, 2018 at 12:51 PM Jiri Kosina <jikos@kernel.org> wrote:
>
> For -rc, I don't think we need to do this at this moment, given the
> prctl+seccomp fixup is basically ready, do we?
Agreed.
Linus
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] x86/speculation: Revert turning on STIBP all the time
2018-11-21 20:51 ` Jiri Kosina
2018-11-21 21:02 ` Linus Torvalds
@ 2018-11-22 6:58 ` Greg KH
1 sibling, 0 replies; 4+ messages in thread
From: Greg KH @ 2018-11-22 6:58 UTC (permalink / raw)
To: Jiri Kosina
Cc: Tim Chen, Thomas Gleixner, Linus Torvalds, Tom Lendacky,
Ingo Molnar, Peter Zijlstra, Josh Poimboeuf, Andrea Arcangeli,
David Woodhouse, Andi Kleen, Dave Hansen, Casey Schaufler,
Asit Mallick, Arjan van de Ven, Jon Masters, Waiman Long,
Dave Stewart, linux-kernel, x86, stable
On Wed, Nov 21, 2018 at 09:51:19PM +0100, Jiri Kosina wrote:
> On Wed, 21 Nov 2018, Tim Chen wrote:
>
> > Commit 53c613fe "x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation"
> > turns on STIBP all the time.
> >
> > This causes large performance regression in many workloads.
> >
> > One case is perlbench in the SpecInt Rate 2006 test suite which shows a
> > 21% reduction in throughput.
> > There're also other reports of drop in performance on Python and PHP benchmarks:
> > https://www.phoronix.com/scan.php?page=article&item=linux-420-bisect&num=2
> >
> > STIBP on all the time should not be the default option.
> >
> > Turn off STIBP all the time for now till STIBP can be applied on
> > a per task basis.
> >
> > Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
> > ---
> > arch/x86/kernel/cpu/bugs.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c
> > index c37e66e..21a8f39 100644
> > --- a/arch/x86/kernel/cpu/bugs.c
> > +++ b/arch/x86/kernel/cpu/bugs.c
> > @@ -332,7 +332,7 @@ static bool stibp_needed(void)
> > if (!boot_cpu_has(X86_FEATURE_STIBP))
> > return false;
> >
> > - return true;
> > + return false;
> > }
>
> For -stable, which actually makes it to production, I already asked Greg
> to drop it.
It's in the latest stable -rc releases, and if all goes well, they will
be released tomorrow.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-11-22 7:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-21 20:00 [PATCH] x86/speculation: Revert turning on STIBP all the time Tim Chen
2018-11-21 20:51 ` Jiri Kosina
2018-11-21 21:02 ` Linus Torvalds
2018-11-22 6:58 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox