From c4e82fbab0e2810b076cfdd1462d5c086e1c442b Mon Sep 17 00:00:00 2001 From: dyson Date: Mon, 23 Feb 1998 08:22:48 +0000 Subject: Significantly improve the efficiency of the swap pager, which appears to have declined due to code-rot over time. The swap pager rundown code has been clean-up, and unneeded wakeups removed. Lots of splbio's are changed to splvm's. Also, set the dynamic tunables for the pageout daemon to be more sane for larger systems (thereby decreasing the daemon overheadla.) --- sys/vm/vm_pager.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/vm/vm_pager.c') diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c index 41f0297..bdb3dae 100644 --- a/sys/vm/vm_pager.c +++ b/sys/vm/vm_pager.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_pager.c,v 1.33 1998/02/04 22:33:57 eivind Exp $ + * $Id: vm_pager.c,v 1.34 1998/02/06 12:14:29 eivind Exp $ */ /* @@ -274,7 +274,7 @@ getpbuf() int s; struct buf *bp; - s = splbio(); + s = splvm(); /* get a bp from the swap buffer header pool */ while ((bp = TAILQ_FIRST(&bswlist)) == NULL) { bswneeded = 1; @@ -296,7 +296,7 @@ trypbuf() int s; struct buf *bp; - s = splbio(); + s = splvm(); if ((bp = TAILQ_FIRST(&bswlist)) == NULL) { splx(s); return NULL; @@ -318,7 +318,7 @@ relpbuf(bp) { int s; - s = splbio(); + s = splvm(); if (bp->b_rcred != NOCRED) { crfree(bp->b_rcred); -- cgit v1.1