summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pager.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1998-02-23 08:22:48 +0000
committerdyson <dyson@FreeBSD.org>1998-02-23 08:22:48 +0000
commitc4e82fbab0e2810b076cfdd1462d5c086e1c442b (patch)
tree32edadf5a10589c683a222e603fe1062a64fbfb1 /sys/vm/vm_pager.c
parentb77de226503076b55efebae9b92333cd8c2535d9 (diff)
downloadFreeBSD-src-c4e82fbab0e2810b076cfdd1462d5c086e1c442b.zip
FreeBSD-src-c4e82fbab0e2810b076cfdd1462d5c086e1c442b.tar.gz
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.)
Diffstat (limited to 'sys/vm/vm_pager.c')
-rw-r--r--sys/vm/vm_pager.c8
1 files changed, 4 insertions, 4 deletions
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);
OpenPOWER on IntegriCloud