Module Name: src Committed By: joerg Date: Sat Apr 11 19:24:13 UTC 2015
Modified Files: src/sys/uvm: files.uvm uvm_page.c Log Message: Allow changing the per-cpu emergency page reservation via kernel config. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/uvm/files.uvm cvs rdiff -u -r1.186 -r1.187 src/sys/uvm/uvm_page.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/files.uvm diff -u src/sys/uvm/files.uvm:1.22 src/sys/uvm/files.uvm:1.23 --- src/sys/uvm/files.uvm:1.22 Fri Oct 10 09:01:01 2014 +++ src/sys/uvm/files.uvm Sat Apr 11 19:24:13 2015 @@ -1,10 +1,10 @@ -# $NetBSD: files.uvm,v 1.22 2014/10/10 09:01:01 uebayasi Exp $ +# $NetBSD: files.uvm,v 1.23 2015/04/11 19:24:13 joerg Exp $ # # UVM options # defflag opt_uvmhist.h UVMHIST UVMHIST_PRINT: KERNHIST -defflag opt_uvm.h USE_TOPDOWN_VM UVMMAP_COUNTERS +defflag opt_uvm.h USE_TOPDOWN_VM UVMMAP_COUNTERS UVM_RESERVED_PAGES_PER_CPU defflag opt_vmswap.h VMSWAP defflag opt_readahead.h READAHEAD_STATS defflag opt_ubc.h UBC_STATS Index: src/sys/uvm/uvm_page.c diff -u src/sys/uvm/uvm_page.c:1.186 src/sys/uvm/uvm_page.c:1.187 --- src/sys/uvm/uvm_page.c:1.186 Fri Sep 5 05:36:21 2014 +++ src/sys/uvm/uvm_page.c Sat Apr 11 19:24:13 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_page.c,v 1.186 2014/09/05 05:36:21 matt Exp $ */ +/* $NetBSD: uvm_page.c,v 1.187 2015/04/11 19:24:13 joerg Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -66,9 +66,10 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.186 2014/09/05 05:36:21 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.187 2015/04/11 19:24:13 joerg Exp $"); #include "opt_ddb.h" +#include "opt_uvm.h" #include "opt_uvmhist.h" #include "opt_readahead.h" @@ -107,7 +108,10 @@ bool vm_page_zero_enable = false; /* * number of pages per-CPU to reserve for the kernel. */ -int vm_page_reserve_kernel = 5; +#ifndef UVM_RESERVED_PAGES_PER_CPU +#define UVM_RESERVED_PAGES_PER_CPU 5 +#endif +int vm_page_reserve_kernel = UVM_RESERVED_PAGES_PER_CPU; /* * physical memory size;