Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Adjust previous: set the dealloc soft limit to half...



details:   https://anonhg.NetBSD.org/src/rev/06fe1ab17721
branches:  trunk
changeset: 762258:06fe1ab17721
user:      hannken <hannken%NetBSD.org@localhost>
date:      Fri Feb 18 13:24:40 2011 +0000

description:
Adjust previous: set the dealloc soft limit to half hard limit.

diffstat:

 sys/kern/vfs_wapbl.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r f64d97b91138 -r 06fe1ab17721 sys/kern/vfs_wapbl.c
--- a/sys/kern/vfs_wapbl.c      Fri Feb 18 13:08:41 2011 +0000
+++ b/sys/kern/vfs_wapbl.c      Fri Feb 18 13:24:40 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_wapbl.c,v 1.41 2011/02/16 19:43:05 hannken Exp $   */
+/*     $NetBSD: vfs_wapbl.c,v 1.42 2011/02/18 13:24:40 hannken Exp $   */
 
 /*-
  * Copyright (c) 2003, 2008, 2009 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #define WAPBL_INTERNAL
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.41 2011/02/16 19:43:05 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.42 2011/02/18 13:24:40 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/bitops.h>
@@ -852,8 +852,7 @@
                  ((wl->wl_bufcount + (lockcount * 10)) >
                   wl->wl_bufcount_max / 2) ||
                  (wapbl_transaction_len(wl) > wl->wl_circ_size / 2) ||
-                 (wl->wl_dealloccnt >=
-                  (wl->wl_dealloclim - (wl->wl_dealloclim >> 8)));
+                 (wl->wl_dealloccnt >= (wl->wl_dealloclim / 2));
        mutex_exit(&wl->wl_mtx);
 
        if (doflush) {



Home | Main Index | Thread Index | Old Index