From 3aa23a86a75820bd20ec62d23fde366e31637be4 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 5 Jun 2011 19:41:11 +0000 Subject: Move the bufcachepercent setting code to MI locations -- set it to 42% for now; that is unlikely to hit some of the remaining starvation bugs. Repair the bufpages calculation too; i386 was doing it ahead of time (incorrectly) and then re-calculating it. ok thib --- sys/arch/i386/i386/machdep.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'sys/arch/i386') diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index 4951ce16a9f..be2d0b94c7f 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.499 2011/06/05 15:00:37 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.500 2011/06/05 19:41:07 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -185,17 +185,6 @@ int cpu_apmhalt = 0; /* sysctl'd to 1 for halt -p hack */ int user_ldt_enable = 0; /* sysctl'd to 1 to enable */ #endif -#ifndef BUFCACHEPERCENT -#define BUFCACHEPERCENT 10 -#endif - -#ifdef BUFPAGES -int bufpages = BUFPAGES; -#else -int bufpages = 0; -#endif -int bufcachepercent = BUFCACHEPERCENT; - struct uvm_constraint_range isa_constraint = { 0x0, 0x00ffffffUL }; struct uvm_constraint_range dma_constraint = { 0x0, 0xffffffffUL }; struct uvm_constraint_range *uvm_md_constraints[] = { -- cgit v1.2.3