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/kern/vfs_bio.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'sys/kern/vfs_bio.c') diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 045577708c5..fb3acc990a7 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.129 2011/04/07 19:07:42 beck Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.130 2011/06/05 19:41:04 deraadt Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /* @@ -114,9 +114,6 @@ long buflowpages; /* bufpages low water mark */ long bufhighpages; /* bufpages high water mark */ long bufbackpages; /* number of pages we back off when asked to shrink */ -/* XXX - should be defined here. */ -extern int bufcachepercent; - vsize_t bufkvm; struct proc *cleanerproc; @@ -194,9 +191,6 @@ bufinit(void) u_int64_t dmapages; struct bqueues *dp; - /* XXX - for now */ - bufhighpages = buflowpages = bufpages = bufcachepercent = bufkvm = 0; - dmapages = uvm_pagecount(&dma_constraint); /* -- cgit v1.2.3