git: kernel - Refactor swapoff scan code

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Mar 3 00:19:12 PST 2013


commit 427e1a99f84ec99acaaeecf046ac9fb94b9d4443
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Mar 3 00:15:42 2013 -0800

    kernel - Refactor swapoff scan code
    
    * Refactor the scan code to be far more optimal.  The old scan was
      restarting the entire VM object scan on each swap block removed
      from the swap device being turned off.
    
    * Scan twice before giving up to try to catch any elements which
      are in-transition.

Summary of changes:
 sys/vm/swap_pager.c | 96 +++++++++++++++++++++++++++++++++++++++++------------
 sys/vm/vm_swap.c    |  2 +-
 2 files changed, 76 insertions(+), 22 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/427e1a99f84ec99acaaeecf046ac9fb94b9d4443


-- 
DragonFly BSD source repository



More information about the Commits mailing list