diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-07-17 21:58:43 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-07-17 21:58:43 +0000 |
commit | 116b3c2af91ad8890535a01f3c906a97824a5b61 (patch) | |
tree | 9f10ab66fbc968a1723e93004b07c26294b29311 /sys/vm/swap_pager.h | |
parent | 5146af6d82f05eaf348e2bf7cbcd7f4f42bcb679 (diff) | |
download | src-116b3c2af91ad8890535a01f3c906a97824a5b61.tar.gz src-116b3c2af91ad8890535a01f3c906a97824a5b61.zip |
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.
Notes
Notes:
svn path=/head/; revision=117702
Diffstat (limited to 'sys/vm/swap_pager.h')
-rw-r--r-- | sys/vm/swap_pager.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/vm/swap_pager.h b/sys/vm/swap_pager.h index 4a4e0517c48d..7c698e5ba4ee 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 /* |