From d4d9221d2a33e598530c0061631bad0ac70dca05 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 11 Jan 2017 11:02:32 -0800 Subject: [PATCH] kernel - Change vm.swapcache.use_chflags default to 0 * Change the vm.swapcache.use_chflags default to 0, meaning that swapcache will generally cache everything it sees if enabled. Can be set back to 1 by the sysop when more sophisticated operation is desired. --- sys/vm/vm_swapcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/vm_swapcache.c b/sys/vm/vm_swapcache.c index 6ec02676e4..8fd3e6e584 100644 --- a/sys/vm/vm_swapcache.c +++ b/sys/vm/vm_swapcache.c @@ -102,7 +102,7 @@ static int vm_swapcache_meta_enable = 0; static int vm_swapcache_maxswappct = 75; static int vm_swapcache_hysteresis; static int vm_swapcache_min_hysteresis; -int vm_swapcache_use_chflags = 1; /* require chflags cache */ +int vm_swapcache_use_chflags = 0; /* require chflags cache */ static int64_t vm_swapcache_minburst = 10000000LL; /* 10MB */ static int64_t vm_swapcache_curburst = 4000000000LL; /* 4G after boot */ static int64_t vm_swapcache_maxburst = 2000000000LL; /* 2G nominal max */ -- 2.11.4.GIT