[Bug 223831] [patch] swap_pager.c to release multiple swap blocks at a time
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Nov 23 21:41:47 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223831
Bug ID: 223831
Summary: [patch] swap_pager.c to release multiple swap blocks
at a time
Product: Base System
Version: 11.1-STABLE
Hardware: Any
OS: Any
Status: New
Keywords: patch
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: ota at j.email.ne.jp
Keywords: patch
Created attachment 188225
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=188225&action=edit
release multiple blocks at a time
This allows to release multiple swap blocks via swp_pager_freeswapspace().
For each call, swp_pager_freeswapspace() locks. Releasing multiple
blocks helps to reduce number of locks. If a swblk contains
continuous blocks, it reduces up to SWAP_META_PAGES-1 locks.
This patch covers 2 case: 1. when a process exits and all of its
swap blocks are released and 2. when a process is paged in from
swap space.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list