From: Hugh Dickins <hugh@veritas.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 0/15] ptwalk: pagetable walker cleanup
Date: Wed, 9 Mar 2005 22:05:35 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.4.61.0503092201070.6070@goblin.wat.veritas.com> (raw)
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
next reply other threads:[~2005-03-09 22:10 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-09 22:05 Hugh Dickins [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.61.0503092201070.6070@goblin.wat.veritas.com \
--to=hugh@veritas.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome