diff options
| author | 2011-06-05 19:41:04 +0000 | |
|---|---|---|
| committer | 2011-06-05 19:41:04 +0000 | |
| commit | f46f5a9008c12965427302b104ee94bcd5d82d66 (patch) | |
| tree | 8720f0cebe58539de1f078557a75eb3dddd003e1 /sys/kern/vfs_bio.c | |
| parent | reduce unneccessary differences; ok kettenis (diff) | |
| download | wireguard-openbsd-f46f5a9008c12965427302b104ee94bcd5d82d66.tar.xz wireguard-openbsd-f46f5a9008c12965427302b104ee94bcd5d82d66.zip | |
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); /* |
