mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [patch 2/2] x86,pat Convert memtype_lock into an rw_lock.
@ 2010-03-17 19:51 H. Peter Anvin
  2010-03-18  0:19 ` Suresh Siddha
  0 siblings, 1 reply; 8+ messages in thread
From: H. Peter Anvin @ 2010-03-17 19:51 UTC (permalink / raw)
  To: Suresh Siddha, holt
  Cc: Ingo Molnar, Thomas Gleixner, Venkatesh Pallipadi,
	Venkatesh Pallipadi, Linux Kernel Mailing List, x86

[-- Attachment #1: Type: text/plain, Size: 759 bytes --]

Well, as you know :) tglx and I are on the road ... I'll try to get to it on Friday before I take off again.

"Suresh Siddha" <suresh.b.siddha@intel.com> wrote:

>On Mon, 2010-03-15 at 06:21 -0700, holt@sgi.com wrote:
>> Convert the memtype_lock from a spin_lock to an rw_lock.  The first
>> version of my patch had this and it did improve performance for fault
>> in times.  The atomic page flags patch (first in the series) improves
>> things much greater for ram pages.  This patch is to help the other pages.
>> 
>
>Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
>
>X86 folks, can you please queue  both these patches if you don't have
>any objections.
>
>thanks,
>suresh
>

--
Sent from my mobile phone, pardon any lack of formatting.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [patch 0/2] x86,pat: Reduce contention on the memtype_lock -V4
@ 2010-03-24  0:36 holt
  2010-03-24  0:36 ` [patch 2/2] x86,pat Convert memtype_lock into an rw_lock holt
  0 siblings, 1 reply; 8+ messages in thread
From: holt @ 2010-03-24  0:36 UTC (permalink / raw)
  To: Ingo Molnar, H. Peter Anvin, Thomas Gleixner
  Cc: Venkatesh Pallipadi, Venkatesh Pallipadi, Suresh Siddha,
	Linux Kernel Mailing List, x86, Rafael Wysocki


Tracking memtype on x86 uses a single global spin_lock for either reading
or changing the memory type.  This includes changes made to page flags
which is perfectly parallel.

Part one of the patchset makes the page-based tracking use cmpxchg
without a need for a lock.

Part two of the patchset converts the spin_lock into a read/write lock.


To: Ingo Molnar <mingo@redhat.com>
To: H. Peter Anvin <hpa@zytor.com>
To: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Robin Holt <holt@sgi.com>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@gmail.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: x86@kernel.org
Cc: Rafael Wysocki <rjw@novell.com>

---

 arch/x86/include/asm/cacheflush.h |   44 +++++++++++++++++++++-----------------
 arch/x86/mm/pat.c                 |   30 +++++++++----------------
 2 files changed, 36 insertions(+), 38 deletions(-)


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [patch 0/2] x86,pat: Reduce contention on the memtype_lock -V3
@ 2010-03-15 13:21 holt
  2010-03-15 13:21 ` [patch 2/2] x86,pat Convert memtype_lock into an rw_lock holt
  0 siblings, 1 reply; 8+ messages in thread
From: holt @ 2010-03-15 13:21 UTC (permalink / raw)
  To: Ingo Molnar, H. Peter Anvin, Thomas Gleixner
  Cc: Venkatesh Pallipadi, Venkatesh Pallipadi, Suresh Siddha,
	Linux Kernel Mailing List, x86


Tracking memtype on x86 uses a single global spin_lock for either reading
or changing the memory type.  This includes changes made to page flags
which is perfectly parallel.

Part one of the patchset makes the page-based tracking use cmpxchg
without a need for a lock.

Part two of the patchset converts the spin_lock into a read/write lock.


To: Ingo Molnar <mingo@redhat.com>
To: H. Peter Anvin <hpa@zytor.com>
To: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Robin Holt <holt@sgi.com>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@gmail.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: x86@kernel.org

---

 arch/x86/include/asm/cacheflush.h |   44 +++++++++++++++++++++-----------------
 arch/x86/mm/pat.c                 |   28 ++++++++----------------
 2 files changed, 35 insertions(+), 37 deletions(-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-03-24 16:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-17 19:51 [patch 2/2] x86,pat Convert memtype_lock into an rw_lock H. Peter Anvin
2010-03-18  0:19 ` Suresh Siddha
2010-03-24 11:32   ` Peter Zijlstra
2010-03-24 16:12     ` Suresh Siddha
2010-03-24 16:36       ` Peter Zijlstra
  -- strict thread matches above, loose matches on Subject: below --
2010-03-24  0:36 [patch 0/2] x86,pat: Reduce contention on the memtype_lock -V4 holt
2010-03-24  0:36 ` [patch 2/2] x86,pat Convert memtype_lock into an rw_lock holt
2010-03-15 13:21 [patch 0/2] x86,pat: Reduce contention on the memtype_lock -V3 holt
2010-03-15 13:21 ` [patch 2/2] x86,pat Convert memtype_lock into an rw_lock holt
2010-03-17 16:21   ` Suresh Siddha

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®