Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Nov 2017 21:41:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 223831] [patch] swap_pager.c to release multiple swap blocks at a time
Message-ID:  <bug-223831-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223831

            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@FreeBSD.org
          Reporter: ota@j.email.ne.jp
          Keywords: patch

Created attachment 188225
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D188225&action=
=3Dedit
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.

--=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-223831-8>