From e4c01a324522cec2879a3f95a917b6434020498a Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Wed, 3 Jun 2009 21:30:21 +0000 Subject: add kern.bufcachepercent sysctl to allow adjusting the buffer cache size on a running system. ok art@, oga@ --- sys/arch/hppa/hppa/machdep.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'sys/arch/hppa') diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c index 58188d3c89d..f7c0af3f823 100644 --- a/sys/arch/hppa/hppa/machdep.c +++ b/sys/arch/hppa/hppa/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.171 2009/02/14 18:51:03 kettenis Exp $ */ +/* $OpenBSD: machdep.c,v 1.172 2009/06/03 21:30:19 beck Exp $ */ /* * Copyright (c) 1999-2003 Michael Shalayeff @@ -653,12 +653,6 @@ cpu_startup(void) 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; - /* * Allocate a submap for exec arguments. This map effectively * limits the number of processes exec'ing at any time. -- cgit v1.2.3