diff options
author | dyson <dyson@FreeBSD.org> | 1998-02-23 08:22:48 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1998-02-23 08:22:48 +0000 |
commit | c4e82fbab0e2810b076cfdd1462d5c086e1c442b (patch) | |
tree | 32edadf5a10589c683a222e603fe1062a64fbfb1 /sys/vm/swap_pager.h | |
parent | b77de226503076b55efebae9b92333cd8c2535d9 (diff) | |
download | FreeBSD-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/swap_pager.h')
-rw-r--r-- | sys/vm/swap_pager.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/vm/swap_pager.h b/sys/vm/swap_pager.h index 9681b5e..0fa5845 100644 --- a/sys/vm/swap_pager.h +++ b/sys/vm/swap_pager.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: @(#)swap_pager.h 7.1 (Berkeley) 12/5/90 - * $Id$ + * $Id: swap_pager.h,v 1.18 1997/02/22 09:48:08 peter Exp $ */ /* @@ -55,7 +55,10 @@ * Above problem has been fixed, now we support 16 pages per block. Unused * space is recovered by the swap pager now... */ +#if !defined(SWB_NPAGES) #define SWB_NPAGES 8 +#endif + struct swblock { unsigned short swb_valid; /* bitmask for valid pages */ unsigned short swb_locked; /* block locked */ |