* [PATCH] x86 kconfig: Add recommendation to enable paravirt spinlock
@ 2013-10-21 16:05 Raghavendra K T
2013-10-21 16:30 ` Konrad Rzeszutek Wilk
2013-10-26 13:50 ` [tip:core/locking] x86/locking/kconfig: Update paravirt spinlock Kconfig description tip-bot for Raghavendra K T
0 siblings, 2 replies; 3+ messages in thread
From: Raghavendra K T @ 2013-10-21 16:05 UTC (permalink / raw)
To: mingo, hpa, x86, gleb, pbonzini, tglx
Cc: konrad.wilk, linux, linux-kernel, kvm, Raghavendra K T
Since paravirt spinlock optimization are in 3.12 kernel, we have
very good performance benefit for paravirtualized KVM / Xen kernel.
Also we no longer suffer from 5% side effect on native kernel.
Signed-off-by: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
---
Would like to thank Sander for spotting and suggesting this.
pvspinlock benefit on KVM link: https://lkml.org/lkml/2013/8/6/178
Attilio's tests on native kernel impact:
http://blog.xen.org/index.php/2012/05/11/benchmarking-the-new-pv-ticketlock-implementation/
arch/x86/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index f67e839..4ba9d32 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -638,10 +638,10 @@ config PARAVIRT_SPINLOCKS
spinlock implementation with something virtualization-friendly
(for example, block the virtual CPU rather than spinning).
- Unfortunately the downside is an up to 5% performance hit on
- native kernels, with various workloads.
+ It has minimal impact on native kernels and gives nice performance
+ benefit for paravirtualized KVM / Xen kernels.
- If you are unsure how to answer this question, answer N.
+ If you are unsure how to answer this question, answer Y.
source "arch/x86/xen/Kconfig"
--
1.7.11.7
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] x86 kconfig: Add recommendation to enable paravirt spinlock
2013-10-21 16:05 [PATCH] x86 kconfig: Add recommendation to enable paravirt spinlock Raghavendra K T
@ 2013-10-21 16:30 ` Konrad Rzeszutek Wilk
2013-10-26 13:50 ` [tip:core/locking] x86/locking/kconfig: Update paravirt spinlock Kconfig description tip-bot for Raghavendra K T
1 sibling, 0 replies; 3+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-10-21 16:30 UTC (permalink / raw)
To: Raghavendra K T
Cc: mingo, hpa, x86, gleb, pbonzini, tglx, linux, linux-kernel, kvm
On Mon, Oct 21, 2013 at 09:35:08PM +0530, Raghavendra K T wrote:
> Since paravirt spinlock optimization are in 3.12 kernel, we have
> very good performance benefit for paravirtualized KVM / Xen kernel.
> Also we no longer suffer from 5% side effect on native kernel.
Yeey!
>
> Signed-off-by: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
> ---
> Would like to thank Sander for spotting and suggesting this.
> pvspinlock benefit on KVM link: https://lkml.org/lkml/2013/8/6/178
>
> Attilio's tests on native kernel impact:
> http://blog.xen.org/index.php/2012/05/11/benchmarking-the-new-pv-ticketlock-implementation/
>
> arch/x86/Kconfig | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> index f67e839..4ba9d32 100644
> --- a/arch/x86/Kconfig
> +++ b/arch/x86/Kconfig
> @@ -638,10 +638,10 @@ config PARAVIRT_SPINLOCKS
> spinlock implementation with something virtualization-friendly
> (for example, block the virtual CPU rather than spinning).
>
> - Unfortunately the downside is an up to 5% performance hit on
> - native kernels, with various workloads.
> + It has minimal impact on native kernels and gives nice performance
> + benefit for paravirtualized KVM / Xen kernels.
>
> - If you are unsure how to answer this question, answer N.
> + If you are unsure how to answer this question, answer Y.
>
> source "arch/x86/xen/Kconfig"
>
> --
> 1.7.11.7
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:core/locking] x86/locking/kconfig: Update paravirt spinlock Kconfig description
2013-10-21 16:05 [PATCH] x86 kconfig: Add recommendation to enable paravirt spinlock Raghavendra K T
2013-10-21 16:30 ` Konrad Rzeszutek Wilk
@ 2013-10-26 13:50 ` tip-bot for Raghavendra K T
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Raghavendra K T @ 2013-10-26 13:50 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, hpa, mingo, konrad.wilk, a.p.zijlstra, torvalds,
gleb, raghavendra.kt, akpm, pbonzini, tglx, linux
Commit-ID: 4c4e4f61368164f326fe59e2156c70d7faa72c17
Gitweb: http://git.kernel.org/tip/4c4e4f61368164f326fe59e2156c70d7faa72c17
Author: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
AuthorDate: Mon, 21 Oct 2013 21:35:08 +0530
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Sat, 26 Oct 2013 12:23:22 +0200
x86/locking/kconfig: Update paravirt spinlock Kconfig description
Since the paravirt spinlock optimizations went into the v3.12 kernel
we have a very good performance benefit for paravirtualized KVM / Xen
kernels. Also we no longer suffer from 5% side effect on native
kernel that is mentioned in the Kconfig entry.
So update the Kconfig entry accordingly.
pvspinlock benefit on KVM link:
https://lkml.org/lkml/2013/8/6/178
Attilio's tests on native kernel impact:
http://blog.xen.org/index.php/2012/05/11/benchmarking-the-new-pv-ticketlock-implementation/
Signed-off-by: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
Cc: <konrad.wilk@oracle.com>
Cc: <linux@eikelenboom.it>
Cc: <gleb@redhat.com>
Cc: <pbonzini@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1382371508-3843-1-git-send-email-raghavendra.kt@linux.vnet.ibm.com
[ Updated the changelog. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
arch/x86/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index ee2fb9d..a92572d 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -638,10 +638,10 @@ config PARAVIRT_SPINLOCKS
spinlock implementation with something virtualization-friendly
(for example, block the virtual CPU rather than spinning).
- Unfortunately the downside is an up to 5% performance hit on
- native kernels, with various workloads.
+ It has a minimal impact on native kernels and gives a nice performance
+ benefit on paravirtualized KVM / Xen kernels.
- If you are unsure how to answer this question, answer N.
+ If you are unsure how to answer this question, answer Y.
source "arch/x86/xen/Kconfig"
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-26 13:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-21 16:05 [PATCH] x86 kconfig: Add recommendation to enable paravirt spinlock Raghavendra K T
2013-10-21 16:30 ` Konrad Rzeszutek Wilk
2013-10-26 13:50 ` [tip:core/locking] x86/locking/kconfig: Update paravirt spinlock Kconfig description tip-bot for Raghavendra K T
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).