From owner-svn-src-head@FreeBSD.ORG Thu Apr 16 09:33:53 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01038106566B; Thu, 16 Apr 2009 09:33:53 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E3D9B8FC18; Thu, 16 Apr 2009 09:33:52 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n3G9XqXt075496; Thu, 16 Apr 2009 09:33:52 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n3G9Xqrs075495; Thu, 16 Apr 2009 09:33:52 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <200904160933.n3G9Xqrs075495@svn.freebsd.org> From: Konstantin Belousov Date: Thu, 16 Apr 2009 09:33:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r191135 - head/sys/kern X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2009 09:33:53 -0000 Author: kib Date: Thu Apr 16 09:33:52 2009 New Revision: 191135 URL: http://svn.freebsd.org/changeset/base/191135 Log: Export the number of times bufdaemon got help from the normal threads. Modified: head/sys/kern/vfs_bio.c Modified: head/sys/kern/vfs_bio.c ============================================================================== --- head/sys/kern/vfs_bio.c Thu Apr 16 05:52:47 2009 (r191134) +++ head/sys/kern/vfs_bio.c Thu Apr 16 09:33:52 2009 (r191135) @@ -202,6 +202,9 @@ SYSCTL_INT(_vfs, OID_AUTO, getnewbufrest static int flushbufqtarget = 100; SYSCTL_INT(_vfs, OID_AUTO, flushbufqtarget, CTLFLAG_RW, &flushbufqtarget, 0, "Amount of work to do in flushbufqueues when helping bufdaemon"); +static long notbufdflashes; +SYSCTL_LONG(_vfs, OID_AUTO, notbufdflashes, CTLFLAG_RD, ¬bufdflashes, 0, + "Number of dirty buffer flushes done by the bufdaemon helpers"); /* * Wakeup point for bufdaemon, as well as indicator of whether it is already @@ -2281,6 +2284,7 @@ flushbufqueues(struct vnode *lvp, int qu else { bremfree(bp); bwrite(bp); + notbufdflashes++; } vn_finished_write(mp); VOP_UNLOCK(vp, 0);