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=3D221356 --- Comment #11 from ota@j.email.ne.jp --- Created attachment 187071 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D187071&action= =3Dedit set vm_swap_enabled=3D1 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 comple= ted. 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 K= VA for swpctrie_zone won't be freed if 2nd uma_zone_reserve_kva() for swblk_zo= ne fails and tries to recover. I couldn't find proper UMA API to release rese= rved space. Also, we may not need to check swblk_zone here. --=20 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>