From: Thomas Gleixner <tglx@linutronix.de>
To: Waiman Long <Waiman.Long@hp.com>
Cc: Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
Peter Zijlstra <peterz@infradead.org>,
linux-arch@vger.kernel.org, x86@kernel.org,
linux-kernel@vger.kernel.org,
virtualization@lists.linux-foundation.org,
xen-devel@lists.xenproject.org, kvm@vger.kernel.org,
Paolo Bonzini <paolo.bonzini@gmail.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Boris Ostrovsky <boris.ostrovsky@oracle.com>,
"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
Rik van Riel <riel@redhat.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>,
David Vrabel <david.vrabel@citrix.com>,
Oleg Nesterov <oleg@redhat.com>,
Scott J Norton <scott.norton@hp.com>,
Douglas Hatch <doug.hatch@hp.com>
Subject: Re: [PATCH v13 10/11] pvqspinlock, x86: Enable PV qspinlock for KVM
Date: Wed, 3 Dec 2014 01:40:53 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.11.1412030115100.16275@nanos> (raw)
In-Reply-To: <1414613951-32532-11-git-send-email-Waiman.Long@hp.com>
On Wed, 29 Oct 2014, Waiman Long wrote:
> AIM7 XFS Disk Test (no overcommit)
> kernel JPM Real Time Sys Time Usr Time
> ----- --- --------- -------- --------
> PV ticketlock 2542373 7.08 98.95 5.44
> PV qspinlock 2549575 7.06 98.63 5.40
> unfairlock 2616279 6.91 97.05 5.42
>
> AIM7 XFS Disk Test (200% overcommit)
> kernel JPM Real Time Sys Time Usr Time
> ----- --- --------- -------- --------
> PV ticketlock 644468 27.93 415.22 6.33
> PV qspinlock 645624 27.88 419.84 0.39
That number is made up by what? ----------------------------^^^^
> unfairlock 695518 25.88 377.40 4.09
>
> AIM7 EXT4 Disk Test (no overcommit)
> kernel JPM Real Time Sys Time Usr Time
> ----- --- --------- -------- --------
> PV ticketlock 1995565 9.02 103.67 5.76
> PV qspinlock 2011173 8.95 102.15 5.40
> unfairlock 2066590 8.71 98.13 5.46
>
> AIM7 EXT4 Disk Test (200% overcommit)
> kernel JPM Real Time Sys Time Usr Time
> ----- --- --------- -------- --------
> PV ticketlock 478341 37.63 495.81 30.78
> PV qspinlock 474058 37.97 475.74 30.95
> unfairlock 560224 32.13 398.43 26.27
>
> For the AIM7 disk workload, both PV ticketlock and qspinlock have
> about the same performance. The unfairlock performs slightly better
> than the PV lock.
Slightly?
Taking the PV locks, which are basically the same for the existing
ticket locks and your new fangled qlocks as a reference then the so
called 'unfair locks' which are just the native locks w/o the PV
nonsense are fundamentally better up to a whopping 18% in the
ext4/200% overcommit case. See below.
> EBIZZY-m Test (no overcommit)
> kernel Rec/s Real Time Sys Time Usr Time
> ----- ----- --------- -------- --------
> PV ticketlock 3255 10.00 60.65 3.62
> PV qspinlock 3318 10.00 54.27 3.60
> unfairlock 2833 10.00 26.66 3.09
>
> EBIZZY-m Test (200% overcommit)
> kernel Rec/s Real Time Sys Time Usr Time
> ----- ----- --------- -------- --------
> PV ticketlock 841 10.00 71.03 2.37
> PV qspinlock 834 10.00 68.27 2.39
> unfairlock 865 10.00 27.08 1.51
>
> futextest (no overcommit)
> kernel kops/s
> ----- ------
> PV ticketlock 11523
> PV qspinlock 12328
> unfairlock 9478
>
> futextest (200% overcommit)
> kernel kops/s
> ----- ------
> PV ticketlock 7276
> PV qspinlock 7095
> unfairlock 5614
>
> The ebizzy and futextest have much higher spinlock contention than
> the AIM7 disk workload. In this case, the unfairlock performs worse
> than both the PV ticketlock and qspinlock. The performance of the 2
> PV locks are comparable.
While I can see that the PV lock stuff performs 13% better for the
ebizzy no overcommit case, what about the very interresting numbers
for the same test with 200% overcommit?
The regular lock has a slightly better performance, but significantly
less sys/usr time. How do you explain that?
'Lies, damned lies and statistics' comes to my mind.
Thanks,
tglx
next prev parent reply other threads:[~2014-12-03 0:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-29 20:19 [PATCH v13 00/11] qspinlock: a 4-byte queue spinlock with PV support Waiman Long
2014-10-29 20:19 ` [PATCH v13 01/11] qspinlock: A simple generic 4-byte queue spinlock Waiman Long
2014-10-29 20:19 ` [PATCH v13 02/11] qspinlock, x86: Enable x86-64 to use " Waiman Long
2014-10-29 20:19 ` [PATCH v13 03/11] qspinlock: Add pending bit Waiman Long
2014-10-29 20:19 ` [PATCH v13 04/11] qspinlock: Extract out code snippets for the next patch Waiman Long
2014-10-29 20:19 ` [PATCH v13 05/11] qspinlock: Optimize for smaller NR_CPUS Waiman Long
2014-10-29 20:19 ` [PATCH v13 06/11] qspinlock: Use a simple write to grab the lock Waiman Long
2014-10-29 20:19 ` [PATCH v13 07/11] qspinlock: Revert to test-and-set on hypervisors Waiman Long
2014-10-29 20:19 ` [PATCH v13 08/11] qspinlock, x86: Rename paravirt_ticketlocks_enabled Waiman Long
2014-10-29 20:19 ` [PATCH v13 09/11] pvqspinlock, x86: Add para-virtualization support Waiman Long
2014-11-03 10:35 ` Peter Zijlstra
2014-11-03 21:17 ` Waiman Long
2014-12-01 16:40 ` Konrad Rzeszutek Wilk
2014-10-29 20:19 ` [PATCH v13 10/11] pvqspinlock, x86: Enable PV qspinlock for KVM Waiman Long
2014-12-02 19:10 ` Konrad Rzeszutek Wilk
2014-12-03 0:40 ` Thomas Gleixner [this message]
2014-10-29 20:19 ` [PATCH v13 11/11] pvqspinlock, x86: Enable PV qspinlock for XEN Waiman Long
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=alpine.DEB.2.11.1412030115100.16275@nanos \
--to=tglx@linutronix.de \
--cc=Waiman.Long@hp.com \
--cc=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=doug.hatch@hp.com \
--cc=hpa@zytor.com \
--cc=konrad.wilk@oracle.com \
--cc=kvm@vger.kernel.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=oleg@redhat.com \
--cc=paolo.bonzini@gmail.com \
--cc=paulmck@linux.vnet.ibm.com \
--cc=peterz@infradead.org \
--cc=raghavendra.kt@linux.vnet.ibm.com \
--cc=riel@redhat.com \
--cc=scott.norton@hp.com \
--cc=torvalds@linux-foundation.org \
--cc=virtualization@lists.linux-foundation.org \
--cc=x86@kernel.org \
--cc=xen-devel@lists.xenproject.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
all inboxes | Powered by JetHome®