diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-04-19 22:52:34 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-04-19 22:52:34 +0000 |
commit | 9bc570a1a157252d3dde353d2da5ccfd24665616 (patch) | |
tree | 88a9ac63023de5d94546a8e9129d1c3ecfe7a66b /sys/uvm/uvm_extern.h | |
parent | dd55ffea5bfb74d9d44db416eb54a9c0b02fdd3a (diff) |
introduce a new km_page allocator that gets pages from kernel_map using
an interrupt safe thread.
use this as the new backend for mbpool and mclpool, eliminating the mb_map.
introduce a sysctl kern.maxclusters which controls the limit of clusters
allocated.
testing by many people, works everywhere but m68k. ok deraadt@
this essentially deprecates the NMBCLUSTERS option, don't use it.
this should reduce pressure on the kmem_map and the uvm reserve of static
map entries.
Diffstat (limited to 'sys/uvm/uvm_extern.h')
-rw-r--r-- | sys/uvm/uvm_extern.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/uvm/uvm_extern.h b/sys/uvm/uvm_extern.h index f1eb2cf02f0..d20e6d25639 100644 --- a/sys/uvm/uvm_extern.h +++ b/sys/uvm/uvm_extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_extern.h,v 1.50 2003/08/10 00:04:50 miod Exp $ */ +/* $OpenBSD: uvm_extern.h,v 1.51 2004/04/19 22:52:33 tedu Exp $ */ /* $NetBSD: uvm_extern.h,v 1.57 2001/03/09 01:02:12 chs Exp $ */ /* @@ -511,6 +511,8 @@ void uvm_km_free_poolpage1(vm_map_t, vaddr_t); #define uvm_km_alloc_poolpage(waitok) uvm_km_alloc_poolpage1(kmem_map, \ uvmexp.kmem_object, (waitok)) #define uvm_km_free_poolpage(addr) uvm_km_free_poolpage1(kmem_map, (addr)) +void *uvm_km_getpage(void); +void uvm_km_putpage(void *); /* uvm_map.c */ int uvm_map(vm_map_t, vaddr_t *, vsize_t, |