git: kernel - SWAP CACHE part 22/many - Fix counter overflow introduced in part 21

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Feb 21 18:36:16 PST 2010


commit fdc53cc7c5e423755fd5e68cf77e4cb58ce34679
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Feb 21 18:33:43 2010 -0800

    kernel - SWAP CACHE part 22/many - Fix counter overflow introduced in part 21
    
    * vm_swapcache_inactive_heuristic can overflow, making it extremely negative
      and causing swapcache writing to cease for a long period of time.
    
    * Two-in-one fix.  Check if it is too negative and reset it.  This also
      automatically adjusts the heuristic if the sysop manually changes
      the hysteresis to a smaller value.

Summary of changes:
 sys/vm/vm_swapcache.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fdc53cc7c5e423755fd5e68cf77e4cb58ce34679


-- 
DragonFly BSD source repository





More information about the Commits mailing list