git: kernel - SWAP CACHE part 10/many - Fix swap space usage cal

看板DFBSD_commit作者時間16年前 (2010/02/06 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 1e5196f08d08b182e431f9490abed276ccc7bfea Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Fri Feb 5 10:13:51 2010 -0800 kernel - SWAP CACHE part 10/many - Fix swap space usage calculation * The code which limits how much swap space the swap cache uses was broken. It was using the current amount of free swap space instead of the total space, causing it to only use 40% of available swap instead of 66% * Fix the calculation and also make it 3/4 (75%) of configured swap. Summary of changes: sys/vm/swap_pager.h | 1 + sys/vm/vm_swap.c | 2 ++ sys/vm/vm_swapcache.c | 19 +++++++++++++++---- 3 files changed, 18 insertions(+), 4 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1e5196f08d08b182e431f9490abed276ccc7bfea -- DragonFly BSD source repository
文章代碼(AID): #1BR6Getf (DFBSD_commit)