[<prev] [next>] [day] [month] [year] [list]
Message-Id: <4C2A1F9F02000078000089DE@vpn.id2.novell.com>
Date: Tue, 29 Jun 2010 15:30:22 +0100
From: "Jan Beulich" <JBeulich@...ell.com>
To: <mingo@...e.hu>, <tglx@...utronix.de>, <hpa@...or.com>
Cc: <jeremy.fitzhardinge@...rix.com>,
"Ky Srinivasan" <KSrinivasan@...ell.com>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH 0/4, v2] x86: enlightenment for ticket spin locks
With the pv-ops based spinlocks reportedly having measurable overhead
on native execution, and with them also not easily fit (at least) fully
virtualized Xen guests, this patch series introduces a replacement
mechanism based on alternative instruction patching, and then uses it
for fully virtualized Xen guests. While coded to be orthogonal to
pv-ops, it really isn't, and it shouldn't be difficult to make pv-ops guests
use this in place of pv-ops spin locks.
The only additional overhead this introduces for native execution is
(in the optional fourth patch) the writing of the owning CPU in the
lock acquire paths. If this is considered a problem but the patch
otherwise is deemed useful, even that code could be eliminated for
native execution (by further alternative instruction patching).
(1) base implementation
(2) Xen implementation
(3) [optional] eliminate NOPs in unlock path (introduced in (1))
(4) [optional] improve behavior on Xen by yielding earlier in
certain cases
Signed-off-by: Jan Beulich <jbeulich@...ell.com>
Cc: Jeremy Fitzhardinge <jeremy.fitzhardinge@...rix.com>
Cc: KY Srinivasan <ksrinivasan@...ell.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists