Date: Tue, 17 Oct 2017 04:09:50 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 223059] [patch] consider skipped 2 pages in sw_nblks and add size check before blist_alloc Message-ID: <bug-223059-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223059 Bug ID: 223059 Summary: [patch] consider skipped 2 pages in sw_nblks and add size check before blist_alloc Product: Base System Version: 11.0-STABLE Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: ota@j.email.ne.jp Keywords: patch Created attachment 187229 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D187229&action= =3Dedit sw_nblks offset by 2 As also noted in the patch, swaponsomething() skips the first 2 pages. Subtract these 2 pages from sw_nblcks as well as from swap_pager_avail and swap_total to keep track the correct numbers. Given sw_used and sw_nblcks now keeps track of correct pages, we can use these to check remaining pages blist_alloc(). This improves situation where some of swap devices are filled. --=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-223059-8>