From owner-freebsd-current@FreeBSD.ORG Tue Dec 27 16:49:43 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9B1216A422 for ; Tue, 27 Dec 2005 16:49:43 +0000 (GMT) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id C13C743D46 for ; Tue, 27 Dec 2005 16:49:42 +0000 (GMT) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by freebsd.czest.pl (8.12.10/8.12.9) with ESMTP id jBRGqaPx053296 for ; Tue, 27 Dec 2005 16:52:37 GMT (envelope-from dunstan@freebsd.czest.pl) Received: (from dunstan@localhost) by freebsd.czest.pl (8.13.4/8.12.9/Submit) id jBRGqai3053295 for freebsd-current@freebsd.org; Tue, 27 Dec 2005 16:52:36 GMT (envelope-from dunstan) Date: Tue, 27 Dec 2005 16:52:35 +0000 From: "Wojciech A. Koszek" To: freebsd-current@freebsd.org Message-ID: <20051227165235.GA53241@FreeBSD.czest.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: [CALL FOR TESTERS] Accounting implemented as separate kernel thread X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 16:49:44 -0000 Hello, There were some problems in our current accounting implementation. These were reported by Richard Todd: http://lists.freebsd.org/pipermail/freebsd-current/2005-December/059149.html I've decided to solve this problem and came up with implementation of John Baldwin's idea: separate kernel thread responsible for acconting. It is created when needed and destroyed when accounting is being disabled. Also handles resume/suspend states. I did some tests and couldn't get a panic. The patch is here: http://freebsd.czest.pl/dunstan/FreeBSD/kern_acct.0.patch It would be probably useful to replace current static SYSCTL_INTs and replace them with SYSCTL_PROC of CTLTYPE_INT type in order to call wakeup() just after configuration value change. Comments are (as always) welcome! -- * Wojciech A. Koszek && dunstan@FreeBSD.czest.pl