summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2004-04-08 19:08:49 +0000
committeralc <alc@FreeBSD.org>2004-04-08 19:08:49 +0000
commite8b438d9b62fb996c6f7d1b0235975f60de0962f (patch)
tree026c61d2aa5552e5c47e376657522e943695fa7c /sys
parent9bd68e030421bb064cda7fb28c9ac4fe5ce9a9d8 (diff)
downloadFreeBSD-src-e8b438d9b62fb996c6f7d1b0235975f60de0962f.zip
FreeBSD-src-e8b438d9b62fb996c6f7d1b0235975f60de0962f.tar.gz
The demise of vm_pager_map_page() in revision 1.93 of vm/vm_pager.c permits
the reduction of the pager map's size by 8M bytes. In other words, eight megabytes of largely wasted KVA are returned to the kernel map for use elsewhere.
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_init.c4
-rw-r--r--sys/vm/vm_pager.c3
-rw-r--r--sys/vm/vm_pager.h1
3 files changed, 2 insertions, 6 deletions
diff --git a/sys/vm/vm_init.c b/sys/vm/vm_init.c
index 65df1a9..282dd5c 100644
--- a/sys/vm/vm_init.c
+++ b/sys/vm/vm_init.c
@@ -185,12 +185,12 @@ again:
panic("startup: table size inconsistency");
clean_map = kmem_suballoc(kernel_map, &kmi->clean_sva, &kmi->clean_eva,
- (nbuf*BKVASIZE) + (nswbuf*MAXPHYS) + pager_map_size);
+ (nbuf*BKVASIZE) + (nswbuf*MAXPHYS));
buffer_map = kmem_suballoc(clean_map, &kmi->buffer_sva,
&kmi->buffer_eva, (nbuf*BKVASIZE));
buffer_map->system_map = 1;
pager_map = kmem_suballoc(clean_map, &kmi->pager_sva, &kmi->pager_eva,
- (nswbuf*MAXPHYS) + pager_map_size);
+ (nswbuf*MAXPHYS));
pager_map->system_map = 1;
exec_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr,
(16*(ARG_MAX+(PAGE_SIZE*3))));
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c
index 09280fb..b6fa7a6 100644
--- a/sys/vm/vm_pager.c
+++ b/sys/vm/vm_pager.c
@@ -176,9 +176,6 @@ int npagers = sizeof(pagertab) / sizeof(pagertab[0]);
* cleaning requests (NPENDINGIO == 64) * the maximum swap cluster size
* (MAXPHYS == 64k) if you want to get the most efficiency.
*/
-#define PAGER_MAP_SIZE (8 * 1024 * 1024)
-
-int pager_map_size = PAGER_MAP_SIZE;
vm_map_t pager_map;
static int bswneeded;
static vm_offset_t swapbkva; /* swap buffers kva */
diff --git a/sys/vm/vm_pager.h b/sys/vm/vm_pager.h
index b2f6c1b..6b30f80 100644
--- a/sys/vm/vm_pager.h
+++ b/sys/vm/vm_pager.h
@@ -91,7 +91,6 @@ MALLOC_DECLARE(M_VMPGDATA);
#endif
extern vm_map_t pager_map;
-extern int pager_map_size;
extern struct pagerops *pagertab[];
extern struct mtx pbuf_mtx;
OpenPOWER on IntegriCloud