summaryrefslogtreecommitdiffstats
path: root/sys/vm/swap_pager.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-07-17 21:58:43 +0000
committerphk <phk@FreeBSD.org>2003-07-17 21:58:43 +0000
commita8381d2cc61629f3339ae3e98378fa121d79a558 (patch)
tree9f10ab66fbc968a1723e93004b07c26294b29311 /sys/vm/swap_pager.h
parent65110ffbfb7df72fe495ad0b113e899d173b0378 (diff)
downloadFreeBSD-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/vm/swap_pager.h')
-rw-r--r--sys/vm/swap_pager.h6
1 files changed, 5 insertions, 1 deletions
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
/*
OpenPOWER on IntegriCloud