Date: Wed, 11 Oct 2017 05:22:34 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 221356] [patch] Improve swapon_check_swzone() function in swap_pager.c Message-ID: <bug-221356-8-NLxDQnch8L@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-221356-8@https.bugs.freebsd.org/bugzilla/> References: <bug-221356-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221356 --- Comment #11 from ota@j.email.ne.jp --- Created attachment 187071 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187071&action=edit set vm_swap_enabled=1 after swap zones are initialized This is a proposal and not an complete change. One purpose is set vm_swap_enabled to 1 after swap initialization is completed. Another purpose is to avoid/reduce panic(). Given the change tested with "NO_SWAPPING in vm_pageout()", if we set zones to NULL, we can effectively disable swapping. The catch with this change set is 1st uma_zone_reserve_kva() allocated in KVA for swpctrie_zone won't be freed if 2nd uma_zone_reserve_kva() for swblk_zone fails and tries to recover. I couldn't find proper UMA API to release reserved space. Also, we may not need to check swblk_zone here. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221356-8-NLxDQnch8L>
