diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-06-05 19:41:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-06-05 19:41:11 +0000 |
commit | 3aa23a86a75820bd20ec62d23fde366e31637be4 (patch) | |
tree | bced57cc983bb7ccbeb834ad28934f221065f7c3 /sys/kern/vfs_bio.c | |
parent | 1bdf3d7e0aba1d3ceccd927c2404a9df58ce9f28 (diff) |
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
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 8 |
1 files changed, 1 insertions, 7 deletions
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); /* |