kernel-ark/include
Zachary Amsden a600388d28 [PATCH] x86: ptep_clear optimization
Add a new accessor for PTEs, which passes the full hint from the mmu_gather
struct; this allows architectures with hardware pagetables to optimize away
atomic PTE operations when destroying an address space.  Removing the
locked operation should allow better pipelining of memory access in this
loop.  I measured an average savings of 30-35 cycles per zap_pte_range on
the first 500 destructions on Pentium-M, but I believe the optimization
would win more on older processors which still assert the bus lock on xchg
for an exclusive cacheline.

Update: I made some new measurements, and this saves exactly 26 cycles over
ptep_get_and_clear on Pentium M.  On P4, with a PAE kernel, this saves 180
cycles per ptep_get_and_clear, for a whopping 92160 cycles savings for a
full address space destruction.

pte_clear_full is not yet used, but is provided for future optimizations
(in particular, when running inside of a hypervisor that queues page table
updates, the full hint allows us to avoid queueing unnecessary page table
update for an address space in the process of being destroyed.

This is not a huge win, but it does help a bit, and sets the stage for
further hypervisor optimization of the mm layer on all architectures.

Signed-off-by: Zachary Amsden <zach@vmware.com>
Cc: Christoph Lameter <christoph@lameter.com>
Cc: <linux-mm@kvack.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-05 00:05:48 -07:00
..
acpi /home/lenb/src/to-linus branch 'acpi-2.6.12' 2005-07-29 23:31:17 -04:00
asm-alpha [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-arm [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-arm26 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-cris [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-frv [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-generic [PATCH] x86: ptep_clear optimization 2005-09-05 00:05:48 -07:00
asm-h8300 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-i386 [PATCH] x86: ptep_clear optimization 2005-09-05 00:05:48 -07:00
asm-ia64 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-m32r [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-m68k [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-m68knommu [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-mips [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-parisc [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-powerpc [PATCH] Move all the very similar files to asm-powerpc 2005-08-30 13:32:06 +10:00
asm-ppc [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-ppc64 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-s390 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-sh [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-sh64 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-sparc [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-sparc64 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-um [PATCH] mm: correct _PAGE_FILE comment 2005-09-05 00:05:45 -07:00
asm-v850 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-x86_64 [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
asm-xtensa [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
linux [PATCH] remove hugetlb_clean_stale_pgtable() and fix huge_pte_alloc() 2005-09-05 00:05:46 -07:00
math-emu
media [PATCH] V4L: Miscellaneous fixes 2005-08-01 19:13:59 -07:00
mtd
net /spare/repo/netdev-2.6 branch 'master' 2005-09-01 18:02:01 -04:00
pcmcia [PATCH] pcmcia: fix pcmcia-cs compilation 2005-07-12 16:00:59 -07:00
rdma [PATCH] IB: move include files to include/rdma 2005-08-26 20:37:38 -07:00
rxrpc
scsi [SCSI] fix target scanning oops with fc transport class 2005-08-08 17:14:55 -05:00
sound [ALSA] version 1.0.10rc1 2005-08-30 08:48:35 +02:00
video