Module Name: src Committed By: para Date: Sun Jan 29 12:37:01 UTC 2012
Modified Files: src/sys/uvm: uvm_km.c Log Message: size kmem_arena more sanely for small memory machines To generate a diff of this commit: cvs rdiff -u -r1.112 -r1.113 src/sys/uvm/uvm_km.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/uvm/uvm_km.c diff -u src/sys/uvm/uvm_km.c:1.112 src/sys/uvm/uvm_km.c:1.113 --- src/sys/uvm/uvm_km.c:1.112 Fri Jan 27 19:48:41 2012 +++ src/sys/uvm/uvm_km.c Sun Jan 29 12:37:01 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_km.c,v 1.112 2012/01/27 19:48:41 para Exp $ */ +/* $NetBSD: uvm_km.c,v 1.113 2012/01/29 12:37:01 para Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -120,7 +120,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uvm_km.c,v 1.112 2012/01/27 19:48:41 para Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_km.c,v 1.113 2012/01/29 12:37:01 para Exp $"); #include "opt_uvmhist.h" @@ -168,7 +168,7 @@ uvm_km_bootstrap(vaddr_t start, vaddr_t vaddr_t base = VM_MIN_KERNEL_ADDRESS; kmemsize = MIN(((((vsize_t)(end - start)) / 3) * 2), - ((((vsize_t)uvmexp.npages) * PAGE_SIZE) / 3)); + ((((vsize_t)uvmexp.npages) * PAGE_SIZE))); kmemsize = round_page(kmemsize); /*