From 812ca80d226fb5904d2bf97a15b1d199001d7fea Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 24 Aug 2004 07:16:13 +0000 Subject: 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 --- sys/uvm/uvm_km.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/uvm/uvm_km.c') 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; } -- cgit v1.2.3