Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Chuck Silvers <chs@netbsd.org>
List: source-changes
Date: 03/09/2001 03:02:14
Module Name: syssrc
Committed By: chs
Date: Fri Mar 9 01:02:13 UTC 2001
Modified Files:
basesrc/sbin/sysctl: sysctl.8 sysctl.c
syssrc/sys/kern: vfs_subr.c vfs_vnops.c
syssrc/sys/uvm: uvm_extern.h uvm_meter.c uvm_object.h uvm_page.c
uvm_param.h uvm_pdaemon.c uvm_stat.c uvm_vnode.c
Log Message:
add UBC memory-usage balancing. we track the number of pages in use for
each of the basic types (anonymous data, executable image, cached files)
and prevent the pagedaemon from reusing a given page if that would reduce
the count of that type of page below a sysctl-setable minimum threshold.
the thresholds are controlled via three new sysctl tunables:
vm.anonmin, vm.vnodemin, and vm.vtextmin. these tunables are the
percentages of pageable memory reserved for each usage, and we do not allow
the sum of the minimums to be more than 95% so that there's always some
memory that can be reused.
To generate a diff of this commit:
cvs rdiff -r1.64 -r1.65 basesrc/sbin/sysctl/sysctl.8
cvs rdiff -r1.45 -r1.46 basesrc/sbin/sysctl/sysctl.c
cvs rdiff -r1.146 -r1.147 syssrc/sys/kern/vfs_subr.c
cvs rdiff -r1.45 -r1.46 syssrc/sys/kern/vfs_vnops.c
cvs rdiff -r1.56 -r1.57 syssrc/sys/uvm/uvm_extern.h
cvs rdiff -r1.16 -r1.17 syssrc/sys/uvm/uvm_meter.c
cvs rdiff -r1.10 -r1.11 syssrc/sys/uvm/uvm_object.h
cvs rdiff -r1.50 -r1.51 syssrc/sys/uvm/uvm_page.c
cvs rdiff -r1.4 -r1.5 syssrc/sys/uvm/uvm_param.h
cvs rdiff -r1.29 -r1.30 syssrc/sys/uvm/uvm_pdaemon.c
cvs rdiff -r1.17 -r1.18 syssrc/sys/uvm/uvm_stat.c
cvs rdiff -r1.46 -r1.47 syssrc/sys/uvm/uvm_vnode.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.