summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2004-08-24 07:16:13 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2004-08-24 07:16:13 +0000
commit812ca80d226fb5904d2bf97a15b1d199001d7fea (patch)
tree177ada528034f1bffb0937d612d69d63f6079215 /sys
parentaceaac64e40c56b9f872b85aeb20121124662df8 (diff)
change physmem divisor to 256. divide by page size was wrong. this does
what i intended all along, without contrived arithmetic screw up. from discussions with mickey and deraadt
Diffstat (limited to 'sys')
-rw-r--r--sys/uvm/uvm_km.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_km.c b/sys/uvm/uvm_km.c
index b5dc9471727..69d36e16eae 100644
--- a/sys/uvm/uvm_km.c
+++ b/sys/uvm/uvm_km.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_km.c,v 1.43 2004/08/24 03:58:14 tedu Exp $ */
+/* $OpenBSD: uvm_km.c,v 1.44 2004/08/24 07:16:12 tedu Exp $ */
/* $NetBSD: uvm_km.c,v 1.42 2001/01/14 02:10:01 thorpej Exp $ */
/*
@@ -959,7 +959,7 @@ uvm_km_page_init(void)
if (!uvm_km_pages_lowat) {
/* based on physmem, calculate a good value here */
- uvm_km_pages_lowat = physmem / (PAGE_SIZE / 16);
+ uvm_km_pages_lowat = physmem / 256;
if (uvm_km_pages_lowat < 128)
uvm_km_pages_lowat = 128;
}