diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2009-06-03 21:30:21 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2009-06-03 21:30:21 +0000 |
commit | e4c01a324522cec2879a3f95a917b6434020498a (patch) | |
tree | ef6db87f8ac740cc6d4f3d0065d284571f6c9e72 /sys/arch/amd64 | |
parent | cffdd398610e708a53403eb903038d25b2ce9319 (diff) |
add kern.bufcachepercent sysctl to allow adjusting the buffer cache
size on a running system.
ok art@, oga@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/machdep.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index d8492b681a0..f3f42876d2f 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.92 2009/06/02 03:04:54 jordan Exp $ */ +/* $OpenBSD: machdep.c,v 1.93 2009/06/03 21:30:19 beck Exp $ */ /* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */ /*- @@ -399,12 +399,6 @@ setup_buffers() */ if (bufpages == 0) bufpages = physmem * bufcachepercent / 100; - - /* Restrict to at most 25% filled kvm */ - if (bufpages > - (VM_MAX_KERNEL_ADDRESS-VM_MIN_KERNEL_ADDRESS) / PAGE_SIZE / 4) - bufpages = (VM_MAX_KERNEL_ADDRESS-VM_MIN_KERNEL_ADDRESS) / - PAGE_SIZE / 4; } /* |