public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/15] ptwalk: pagetable walker cleanup
@ 2005-03-09 22:05 Hugh Dickins
  2005-03-09 22:06 ` [PATCH 1/15] ptwalk: p?d_none_or_clear_bad Hugh Dickins
                   ` (15 more replies)
  0 siblings, 16 replies; 20+ messages in thread
From: Hugh Dickins @ 2005-03-09 22:05 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

Here's a cleanup of the pagetable walkers, in common and i386 code,
based on 2.6.11-bk5.  Mainly to make them all go the same simpler way,
so they're easier to follow with less room for error; but also to reduce
the code size and speed it up a little.  These are janitorial changes,
other arches may follow whenever it suits them.

A few patches slice across all the files, most dice them into nests of
functions to focus on: slicing looks confusing where the originals are
following different conventions.  11/15 works around hang from 10/15.

329 fewer source lines; ~3.5KB less kernel text; lmbench shows good
improvement with 2level pagetables (though not yet back to 2.6.10),
and a much less impressive improvement with 3level pagetables:

1*PIII 512MB    2*HT*P4 4GB     2*HT*P4 5GB  
fork exec sh  	fork exec sh  	fork exec sh  
proc proc proc	proc proc proc	proc proc proc
---- ---- ----	---- ---- ----	---- ---- ----
152. 541. 3687	249. 989. 4337	353. 1307 5646 2.6.11-bk5
152. 552. 3706	251. 973. 4344	348. 1310 5546
152. 537. 3689	250. 974. 4332	351. 1307 5556
--------------	--------------	--------------
86.4 438. 3471	199. 865. 4167	334. 1279 5499 2.6.11-bk5 + ptwalk
87.4 413. 3478	198. 910. 4176	333. 1261 5462
87.8 415. 3484	199. 870. 4183	331. 1251 5471
--------------	--------------	--------------
79.6 389. 3418	174. 800. 3981	226. 1095 5170 2.6.10
81.5 381. 3442	166. 807. 3986	226. 1093 5074
81.1 385. 3471	165. 800. 3978	227. 1101 5154

 arch/i386/kernel/vm86.c             |   21 
 arch/i386/mm/ioremap.c              |  112 ++---
 include/asm-generic/4level-fixup.h  |    4 
 include/asm-generic/pgtable-nopmd.h |    5 
 include/asm-generic/pgtable-nopud.h |    5 
 include/asm-generic/pgtable.h       |   69 +++
 mm/memory.c                         |  788 ++++++++++++++----------------------
 mm/mprotect.c                       |  131 ++---
 mm/mremap.c                         |   24 -
 mm/msync.c                          |  201 +++------
 mm/swapfile.c                       |  173 ++-----
 mm/vmalloc.c                        |  246 +++--------
 12 files changed, 725 insertions(+), 1054 deletions(-)

Hugh

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

end of thread, other threads:[~2005-03-10  5:42 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-09 22:05 [PATCH 0/15] ptwalk: pagetable walker cleanup Hugh Dickins
2005-03-09 22:06 ` [PATCH 1/15] ptwalk: p?d_none_or_clear_bad Hugh Dickins
2005-03-09 22:07 ` [PATCH 2/15] ptwalk: change_protection Hugh Dickins
2005-03-09 22:08 ` [PATCH 3/15] ptwalk: sync_page_range Hugh Dickins
2005-03-09 22:08 ` [PATCH 4/15] ptwalk: unuse_mm Hugh Dickins
2005-03-09 22:09 ` [PATCH 5/15] ptwalk: map and unmap_vm_area Hugh Dickins
2005-03-09 22:10 ` [PATCH 6/15] ptwalk: ioremap_page_range Hugh Dickins
2005-03-09 22:10 ` [PATCH 7/15] ptwalk: remap_pfn_range Hugh Dickins
2005-03-09 22:11 ` [PATCH 8/15] ptwalk: zeromap_page_range Hugh Dickins
2005-03-09 22:12 ` [PATCH 9/15] ptwalk: unmap_page_range Hugh Dickins
2005-03-09 22:12 ` [PATCH 10/15] ptwalk: copy_page_range Hugh Dickins
2005-03-09 22:13 ` [PATCH 11/15] ptwalk: copy_pte_range hang Hugh Dickins
2005-03-09 23:25   ` Nick Piggin
2005-03-09 22:14 ` [PATCH 12/15] ptwalk: clear_page_range Hugh Dickins
2005-03-09 22:14 ` [PATCH 13/15] ptwalk: move p?d_none_or_clear_bad Hugh Dickins
2005-03-09 22:15 ` [PATCH 14/15] ptwalk: inline pmd_range and pud_range Hugh Dickins
2005-03-09 22:16 ` [PATCH 15/15] ptwalk: pud and pmd folded Hugh Dickins
2005-03-10  0:39 ` [PATCH 0/15] ptwalk: pagetable walker cleanup Benjamin Herrenschmidt
2005-03-10  1:02   ` David S. Miller
2005-03-10  1:08     ` Benjamin Herrenschmidt

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