summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2006-04-25 08:31:01 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2006-04-25 08:31:01 +0000
commit7a89d172fba6f6e473f9c74d299b100f3b5c45d4 (patch)
tree738f3b4b7d574136150848d5480802cd9b080fc7 /sys/uvm
parente9f4ab4d8205121a8c4e54afa3a19ea7135a632f (diff)
limit pool backend preallocation to 2048 pages max (which only affects >2g physmem); miod@ toby@ ok
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_km.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/uvm/uvm_km.c b/sys/uvm/uvm_km.c
index 53ba23aa740..0a0c0c79258 100644
--- a/sys/uvm/uvm_km.c
+++ b/sys/uvm/uvm_km.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_km.c,v 1.49 2006/03/06 19:11:03 mickey Exp $ */
+/* $OpenBSD: uvm_km.c,v 1.50 2006/04/25 08:31:00 mickey Exp $ */
/* $NetBSD: uvm_km.c,v 1.42 2001/01/14 02:10:01 thorpej Exp $ */
/*
@@ -962,6 +962,8 @@ uvm_km_page_init(void)
if (!uvm_km_pages_lowat) {
/* based on physmem, calculate a good value here */
uvm_km_pages_lowat = physmem / 256;
+ if (uvm_km_pages_lowat > 2048)
+ uvm_km_pages_lowat = 2048;
if (uvm_km_pages_lowat < 128)
uvm_km_pages_lowat = 128;
}