diff options
author | phk <phk@FreeBSD.org> | 2003-07-17 21:58:43 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-07-17 21:58:43 +0000 |
commit | a8381d2cc61629f3339ae3e98378fa121d79a558 (patch) | |
tree | 9f10ab66fbc968a1723e93004b07c26294b29311 /sys | |
parent | 65110ffbfb7df72fe495ad0b113e899d173b0378 (diff) | |
download | FreeBSD-src-a8381d2cc61629f3339ae3e98378fa121d79a558.zip FreeBSD-src-a8381d2cc61629f3339ae3e98378fa121d79a558.tar.gz |
Make sure that SWP_NPAGES always has the same value in all source
files, so that SWAP_META_PAGES does not vary either.
swap_pager.c ended up with a value of 16, everybody else 8. Go with
the 16 for now.
This should only have any effect in the "kill processes because we
are out of swap" scenario, where it will make some sort of estimate
of something more precise.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/swap_pager.c | 6 | ||||
-rw-r--r-- | sys/vm/swap_pager.h | 6 |
2 files changed, 5 insertions, 7 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index f6ca7c7..752974c 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -83,12 +83,6 @@ __FBSDID("$FreeBSD$"); #include <sys/sx.h> #include <sys/vmmeter.h> -#ifndef MAX_PAGEOUT_CLUSTER -#define MAX_PAGEOUT_CLUSTER 16 -#endif - -#define SWB_NPAGES MAX_PAGEOUT_CLUSTER - #include "opt_swap.h" #include <vm/vm.h> #include <vm/pmap.h> diff --git a/sys/vm/swap_pager.h b/sys/vm/swap_pager.h index 4a4e051..7c698e5 100644 --- a/sys/vm/swap_pager.h +++ b/sys/vm/swap_pager.h @@ -70,8 +70,12 @@ struct swdevt { * pages per allocation. We recommend you stick with the default of 8. * The 16-page limit is due to the radix code (kern/subr_blist.c). */ +#ifndef MAX_PAGEOUT_CLUSTER +#define MAX_PAGEOUT_CLUSTER 16 +#endif + #if !defined(SWB_NPAGES) -#define SWB_NPAGES 8 +#define SWB_NPAGES MAX_PAGEOUT_CLUSTER #endif /* |