public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* Prefetch mmap_sem in ia64_do_page_fault()
@ 2006-03-29  6:54 Christoph Lameter
  2006-03-29  7:11 ` Chen, Kenneth W
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Christoph Lameter @ 2006-03-29  6:54 UTC (permalink / raw)
  To: linux-ia64

Take a hint from an x86_64 optimization by Arjan van de Ven and use it
for ia64.

See http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h©ba9a3b3897561d01e04cd21433746df46548c0

Prefetch the mmap_sem, which is critical for the performance of the page fault
handler. Maybe we can offset the damage done by the kprobes notifier?

Note: mm may be NULL but I guess that is safe. See 
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;hE8f935527372499b714bf4f8e646a68bb0f52e3

Signed-off-by: Christoph Lameter <clameter@sgi.com>

Index: linux-2.6.16/arch/ia64/mm/fault.c
=================================--- linux-2.6.16.orig/arch/ia64/mm/fault.c	2006-03-19 21:53:29.000000000 -0800
+++ linux-2.6.16/arch/ia64/mm/fault.c	2006-03-28 22:44:01.000000000 -0800
@@ -60,6 +60,9 @@ ia64_do_page_fault (unsigned long addres
 	struct siginfo si;
 	unsigned long mask;
 
+	/* mmap_sem is performance critical.... */
+	prefetchw(&mm->mmap_sem);
+
 	/*
 	 * If we're in an interrupt or have no user context, we must not take the fault..
 	 */

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

end of thread, other threads:[~2006-03-30  2:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-29  6:54 Prefetch mmap_sem in ia64_do_page_fault() Christoph Lameter
2006-03-29  7:11 ` Chen, Kenneth W
2006-03-29  7:16 ` Christoph Lameter
2006-03-29  7:31 ` Chen, Kenneth W
2006-03-29  7:44 ` Chen, Kenneth W
2006-03-30  2:06 ` Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox