diff options
| author | Andrew Morton <akpm@zip.com.au> | 2002-07-28 03:13:57 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-07-28 03:13:57 -0700 |
| commit | cbb6e8ecaa8ec7e08ee2b0095236fabb87638742 (patch) | |
| tree | 9ae8f7cb4bb69ad32e315d0908ac83d97e38ef11 /fs/proc | |
| parent | 1a40868e97c4f45b6388593bef1c80b41e0c8845 (diff) | |
[PATCH] use a slab cache for pte_chains
Patch from Bill Irwin.
It removes the custom pte_chain allocator in mm/rmap.c and replaces it
with a slab cache.
"This patch
(1) eliminates the pte_chain_freelist_lock and all contention on it
(2) gives the VM the ability to recover unused pte_chain pages
Anton Blanchard has reported (1) from prior incarnations of this patch.
Craig Kulesa has reported (2) in combination with slab-on-LRU patches.
I've left OOM detection out of this patch entirely as upcoming patches
will do real OOM handling for pte_chains and all the code changed anyway."
Diffstat (limited to 'fs/proc')
| -rw-r--r-- | fs/proc/proc_misc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index a84b41f61ba9..715dcc586ee2 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c @@ -161,8 +161,7 @@ static int meminfo_read_proc(char *page, char **start, off_t off, "Dirty: %8lu kB\n" "Writeback: %8lu kB\n" "PageTables: %8lu kB\n" - "PteChainTot: %8lu kB\n" - "PteChainUsed: %8lu kB\n", + "ReverseMaps: %8lu\n", K(i.totalram), K(i.freeram), K(i.sharedram), @@ -179,8 +178,7 @@ static int meminfo_read_proc(char *page, char **start, off_t off, K(ps.nr_dirty), K(ps.nr_writeback), K(ps.nr_page_table_pages), - K(ps.nr_pte_chain_pages), - ps.used_pte_chains_bytes >> 10 + ps.nr_reverse_maps ); return proc_calc_metrics(page, start, off, count, eof, len); |
