diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2007-06-01 20:10:05 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2007-06-01 20:10:05 +0000 |
commit | 1a1c57591214c6a148bc0cce5c8e5876309d7c4a (patch) | |
tree | 60782b11d1ce8e9ad47a2198f013e0e6fe125a0c /sys | |
parent | 52453b1048ccfb9b2007e908a2a13698d3b35719 (diff) |
set hiwat mark for some of the more popular pools to reduce bouncing
ok art bob
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/pmap.c | 3 | ||||
-rw-r--r-- | sys/uvm/uvm_amap.c | 3 | ||||
-rw-r--r-- | sys/uvm/uvm_map.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c index 11eeef8d37c..6cebc329fed 100644 --- a/sys/arch/amd64/amd64/pmap.c +++ b/sys/arch/amd64/amd64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.26 2007/05/29 02:37:04 art Exp $ */ +/* $OpenBSD: pmap.c,v 1.27 2007/06/01 20:10:04 tedu Exp $ */ /* $NetBSD: pmap.c,v 1.3 2003/05/08 18:13:13 thorpej Exp $ */ /* @@ -768,6 +768,7 @@ pmap_bootstrap(vaddr_t kva_start, paddr_t max_pa) &pool_allocator_nointr); pool_init(&pmap_pv_pool, sizeof(struct pv_entry), 0, 0, 0, "pvpl", &pool_allocator_nointr); + pool_sethiwat(&pmap_pv_pool, 32 * 1024); /* * initialize the PDE pool and cache. diff --git a/sys/uvm/uvm_amap.c b/sys/uvm/uvm_amap.c index 8bb30dc1c59..4c14ffd1998 100644 --- a/sys/uvm/uvm_amap.c +++ b/sys/uvm/uvm_amap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_amap.c,v 1.37 2007/05/31 21:20:30 thib Exp $ */ +/* $OpenBSD: uvm_amap.c,v 1.38 2007/06/01 20:10:04 tedu Exp $ */ /* $NetBSD: uvm_amap.c,v 1.27 2000/11/25 06:27:59 chs Exp $ */ /* @@ -155,6 +155,7 @@ amap_init(void) */ pool_init(&uvm_amap_pool, sizeof(struct vm_amap), 0, 0, 0, "amappl", &pool_allocator_nointr); + pool_sethiwat(&uvm_amap_pool, 4096); } /* diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c index 17101f593e2..070010c2fce 100644 --- a/sys/uvm/uvm_map.c +++ b/sys/uvm/uvm_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.c,v 1.93 2007/05/31 21:20:30 thib Exp $ */ +/* $OpenBSD: uvm_map.c,v 1.94 2007/06/01 20:10:04 tedu Exp $ */ /* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */ /* @@ -563,6 +563,7 @@ uvm_map_init(void) 0, 0, 0, "vmmpepl", &pool_allocator_nointr); pool_init(&uvm_map_entry_kmem_pool, sizeof(struct vm_map_entry), 0, 0, 0, "vmmpekpl", NULL); + pool_sethiwat(&uvm_map_entry_pool, 8192); } /* |